1 ################################################################################
5 ################################################################################
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
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
24 ATTR_INSTALL_TARGET_OPTS = \
25 prefix=$(TARGET_DIR)/usr \
26 exec_prefix=$(TARGET_DIR)/usr \
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
37 ATTR_POST_INSTALL_STAGING_HOOKS += ATTR_FIX_LIBTOOL_LA_LIBDIR
39 $(eval $(autotools-package))