1 ################################################################################
5 ################################################################################
8 ACL_SOURCE
= acl-
$(ACL_VERSION
).src.
tar.gz
9 ACL_SITE
= http
://download.savannah.gnu.org
/releases
/acl
10 ACL_INSTALL_STAGING
= YES
11 ACL_DEPENDENCIES
= attr
12 ACL_CONF_OPTS
= --enable-gettext
=no
13 ACL_LICENSE
= GPLv2
+ (programs
), LGPLv2.1
+ (libraries
)
14 ACL_LICENSE_FILES
= doc
/COPYING doc
/COPYING.LGPL
16 # While the configuration system uses autoconf, the Makefiles are
17 # hand-written and do not use automake. Therefore, we have to hack
18 # around their deficiencies by:
19 # - explicitly passing CFLAGS (LDFLAGS are passed on from configure,
21 # - explicitly passing the installation prefix, not using DESTDIR.
23 ACL_MAKE_ENV
= CFLAGS
="$(TARGET_CFLAGS)"
25 ACL_INSTALL_STAGING_OPTS
= \
26 prefix=$(STAGING_DIR
)/usr \
27 exec_prefix=$(STAGING_DIR
)/usr \
28 PKG_DEVLIB_DIR
=$(STAGING_DIR
)/usr
/lib \
29 install-dev install-lib
31 ACL_INSTALL_TARGET_OPTS
= \
32 prefix=$(TARGET_DIR
)/usr \
33 exec_prefix=$(TARGET_DIR
)/usr \
36 # The libdir variable in libacl.la is empty, so let's fix it. This is
37 # probably due to acl not using automake, and not doing fully the
38 # right thing with libtool.
39 define ACL_FIX_LIBTOOL_LA_LIBDIR
40 $(SED
) "s,libdir=.*,libdir='$(STAGING_DIR)'," \
41 $(STAGING_DIR
)/usr
/lib
/libacl.la
44 ACL_POST_INSTALL_STAGING_HOOKS
+= ACL_FIX_LIBTOOL_LA_LIBDIR
46 HOST_ACL_DEPENDENCIES
= host-attr
47 HOST_ACL_CONF_OPTS
= --enable-gettext
=no
48 HOST_ACL_MAKE_ENV
= CFLAGS
="$(HOST_CFLAGS)"
49 HOST_ACL_INSTALL_OPTS
= \
50 prefix=$(HOST_DIR
)/usr \
51 exec_prefix=$(HOST_DIR
)/usr \
52 PKG_DEVLIB_DIR
=$(HOST_DIR
)/usr
/lib \
53 install-dev install-lib
54 # For the host, libacl.la is correct, no fixup needed.
56 $(eval
$(autotools-package
))
57 $(eval
$(host-autotools-package
))