python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / quota / quota.mk
bloba1e343a388e55fd7e47f5bf50fe579da78150e25
1 ################################################################################
3 # quota
5 ################################################################################
7 QUOTA_VERSION = 4.01
8 QUOTA_SITE = http://downloads.sourceforge.net/project/linuxquota/quota-tools/$(QUOTA_VERSION)
9 QUOTA_DEPENDENCIES = host-gettext
10 QUOTA_AUTORECONF = YES
11 QUOTA_LICENSE = GPLv2+
12 QUOTA_CONF_OPTS = --disable-strip-binaries
14 QUOTA_CFLAGS = $(TARGET_CFLAGS)
16 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
17 QUOTA_DEPENDENCIES += gettext
18 QUOTA_LIBS += -lintl
19 endif
21 ifeq ($(BR2_PACKAGE_E2FSPROGS),y)
22 QUOTA_DEPENDENCIES += e2fsprogs
23 QUOTA_CONF_OPTS += --enable-ext2direct
24 # quote does not use pkg-config to find e2fsprogs, so it does not know it
25 # may require -pthreads in case of static build
26 ifeq ($(BR2_STATIC_LIBS)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
27 QUOTA_LIBS += -pthread
28 endif
29 else
30 QUOTA_CONF_OPTS += --disable-ext2direct
31 endif
33 ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
34 QUOTA_DEPENDENCIES += libtirpc host-pkgconf
35 QUOTA_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`
36 QUOTA_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`
37 endif
39 QUOTA_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(QUOTA_CFLAGS) -D_GNU_SOURCE" LIBS="$(QUOTA_LIBS)"
40 QUOTA_CONF_ENV = \
41 CFLAGS="$(QUOTA_CFLAGS) -D_GNU_SOURCE" LIBS="$(QUOTA_LIBS)"
43 # Package uses autoconf but not automake.
44 QUOTA_INSTALL_TARGET_OPTS = \
45 ROOTDIR=$(TARGET_DIR) \
46 install
48 $(eval $(autotools-package))