1 ################################################################################
5 ################################################################################
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
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
30 QUOTA_CONF_OPTS
+= --disable-ext2direct
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`
39 QUOTA_MAKE_OPTS
= $(TARGET_CONFIGURE_OPTS
) CFLAGS
="$(QUOTA_CFLAGS) -D_GNU_SOURCE" LIBS
="$(QUOTA_LIBS)"
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
) \
48 $(eval
$(autotools-package
))