1 ################################################################################
5 ################################################################################
7 LIBARCHIVE_VERSION = 3.1.2
8 LIBARCHIVE_SITE = http://www.libarchive.org/downloads
9 LIBARCHIVE_INSTALL_STAGING = YES
10 LIBARCHIVE_LICENSE = BSD-2c, BSD-3c
11 LIBARCHIVE_LICENSE_FILES = COPYING
12 LIBARCHIVE_CONF_OPTS = --without-lzma
14 ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDTAR),y)
15 ifeq ($(BR2_STATIC_LIBS),y)
16 LIBARCHIVE_CONF_OPTS += --enable-bsdtar=static
18 LIBARCHIVE_CONF_OPTS += --enable-bsdtar=shared
21 LIBARCHIVE_CONF_OPTS += --disable-bsdtar
24 ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDCPIO),y)
25 ifeq ($(BR2_STATIC_LIBS),y)
26 LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=static
28 LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=shared
31 LIBARCHIVE_CONF_OPTS += --disable-bsdcpio
34 ifeq ($(BR2_PACKAGE_ACL),y)
35 LIBARCHIVE_DEPENDENCIES += acl
37 LIBARCHIVE_CONF_OPTS += --disable-acl
40 ifeq ($(BR2_PACKAGE_ATTR),y)
41 LIBARCHIVE_DEPENDENCIES += attr
43 LIBARCHIVE_CONF_OPTS += --disable-xattr
46 ifeq ($(BR2_PACKAGE_EXPAT),y)
47 LIBARCHIVE_DEPENDENCIES += expat
49 LIBARCHIVE_CONF_OPTS += --without-expat
52 ifeq ($(BR2_PACKAGE_LIBICONV),y)
53 LIBARCHIVE_DEPENDENCIES += libiconv
55 LIBARCHIVE_CONF_OPTS += --without-libiconv-prefix
58 ifeq ($(BR2_PACKAGE_LIBXML2),y)
59 LIBARCHIVE_DEPENDENCIES += libxml2
60 LIBARCHIVE_CONF_ENV += XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config
62 LIBARCHIVE_CONF_OPTS += --without-xml2
65 ifeq ($(BR2_PACKAGE_LZO),y)
66 LIBARCHIVE_DEPENDENCIES += lzo
68 LIBARCHIVE_CONF_OPTS += --without-lzo2
71 ifeq ($(BR2_PACKAGE_NETTLE),y)
72 LIBARCHIVE_DEPENDENCIES += nettle
74 LIBARCHIVE_CONF_OPTS += --without-nettle
77 ifeq ($(BR2_PACKAGE_OPENSSL),y)
78 LIBARCHIVE_DEPENDENCIES += openssl
80 LIBARCHIVE_CONF_OPTS += --without-openssl
83 ifeq ($(BR2_PACKAGE_ZLIB),y)
84 LIBARCHIVE_DEPENDENCIES += zlib
86 LIBARCHIVE_CONF_OPTS += --without-zlib
89 $(eval $(autotools-package))