300f9c9c9d
Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
28 lines
851 B
Makefile
28 lines
851 B
Makefile
#############################################################
|
|
#
|
|
# libarchive (reusable C library for archive formats)
|
|
#
|
|
#############################################################
|
|
LIBARCHIVE_VERSION = 2.8.4
|
|
LIBARCHIVE_SITE = http://libarchive.googlecode.com/files/
|
|
LIBARCHIVE_SOURCE = libarchive-$(LIBARCHIVE_VERSION).tar.gz
|
|
LIBARCHIVE_INSTALL_STAGING = YES
|
|
LIBARCHIVE_INSTALL_TARGET = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
LIBARCHIVE_DEPENDENCIES = zlib
|
|
endif
|
|
|
|
LIBARCHIVE_CONF_OPT = \
|
|
$(if $(BR2_PACKAGE_LIBARCHIVE_BSDTAR),--enable-bsdtar,--disable-bsdtar) \
|
|
$(if $(BR2_PACKAGE_LIBARCHIVE_BSDCPIO),--enable-bsdcpio,--disable-bsdcpio)
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
LIBARCHIVE_DEPENDENCIES += libxml2
|
|
LIBARCHIVE_CONF_ENV += XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config
|
|
else
|
|
LIBARCHIVE_CONF_OPT += --without-xml2
|
|
endif
|
|
|
|
$(eval $(call AUTOTARGETS))
|