a66891b85739c72d210e17d4c51aee29ceacdf40
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / attr / attr.mk
1 ################################################################################
2 #
3 # attr
4 #
5 ################################################################################
6
7 ATTR_VERSION = 2.4.47
8 ATTR_SOURCE = attr-$(ATTR_VERSION).src.tar.gz
9 ATTR_SITE = http://download.savannah.gnu.org/releases/attr
10 ATTR_INSTALL_STAGING = YES
11 ATTR_CONF_OPTS = --enable-gettext=no
12 ATTR_LICENSE = GPLv2+ (programs), LGPLv2.1+ (libraries)
13 ATTR_LICENSE_FILES = doc/COPYING doc/COPYING.LGPL
14
15 # While the configuration system uses autoconf, the Makefiles are
16 # hand-written and do not use automake. Therefore, we have to hack
17 # around their deficiencies by passing installation paths.
18 ATTR_INSTALL_STAGING_OPTS =                     \
19         prefix=$(STAGING_DIR)/usr               \
20         exec_prefix=$(STAGING_DIR)/usr          \
21         PKG_DEVLIB_DIR=$(STAGING_DIR)/usr/lib   \
22         install-dev install-lib
23
24 ATTR_INSTALL_TARGET_OPTS =                      \
25         prefix=$(TARGET_DIR)/usr                \
26         exec_prefix=$(TARGET_DIR)/usr           \
27         install install-lib
28
29 # The libdir variable in libattr.la is empty, so let's fix it. This is
30 # probably due to attr not using automake, and not doing fully the
31 # right thing with libtool.
32 define ATTR_FIX_LIBTOOL_LA_LIBDIR
33         $(SED) "s,libdir=.*,libdir='$(STAGING_DIR)'," \
34                 $(STAGING_DIR)/usr/lib/libattr.la
35 endef
36
37 ATTR_POST_INSTALL_STAGING_HOOKS += ATTR_FIX_LIBTOOL_LA_LIBDIR
38
39 $(eval $(autotools-package))