2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-08-25 16:04:56 +02:00
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# libarchive
|
2009-08-25 16:04:56 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2016-06-23 02:56:15 +02:00
|
|
|
LIBARCHIVE_VERSION = 3.2.1
|
2014-07-31 20:10:32 +02:00
|
|
|
LIBARCHIVE_SITE = http://www.libarchive.org/downloads
|
2009-08-25 16:04:56 +02:00
|
|
|
LIBARCHIVE_INSTALL_STAGING = YES
|
2017-03-30 15:43:38 +02:00
|
|
|
LIBARCHIVE_LICENSE = BSD-2c, BSD-3-Clause
|
2014-07-31 20:10:32 +02:00
|
|
|
LIBARCHIVE_LICENSE_FILES = COPYING
|
2014-08-29 15:39:07 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDTAR),y)
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --enable-bsdtar=static
|
2014-08-29 15:39:07 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --enable-bsdtar=shared
|
2014-08-29 15:39:07 +02:00
|
|
|
endif
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --disable-bsdtar
|
2014-08-29 15:39:07 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDCPIO),y)
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=static
|
2014-08-29 15:39:07 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=shared
|
2014-08-29 15:39:07 +02:00
|
|
|
endif
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --disable-bsdcpio
|
2014-08-29 15:39:07 +02:00
|
|
|
endif
|
2009-08-25 16:04:56 +02:00
|
|
|
|
2016-07-26 14:58:53 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDCAT),y)
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
LIBARCHIVE_CONF_OPTS += --enable-bsdcat=static
|
|
|
|
else
|
|
|
|
LIBARCHIVE_CONF_OPTS += --enable-bsdcat=shared
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
LIBARCHIVE_CONF_OPTS += --disable-bsdcat
|
|
|
|
endif
|
|
|
|
|
2014-07-31 20:10:32 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ACL),y)
|
|
|
|
LIBARCHIVE_DEPENDENCIES += acl
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --disable-acl
|
2009-10-23 09:53:12 +02:00
|
|
|
endif
|
|
|
|
|
2014-07-31 20:10:32 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ATTR),y)
|
|
|
|
LIBARCHIVE_DEPENDENCIES += attr
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --disable-xattr
|
2014-07-31 20:10:32 +02:00
|
|
|
endif
|
|
|
|
|
2016-02-20 15:29:54 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
|
|
LIBARCHIVE_CONF_OPTS += --with-bz2lib
|
|
|
|
LIBARCHIVE_DEPENDENCIES += bzip2
|
|
|
|
else
|
|
|
|
LIBARCHIVE_CONF_OPTS += --without-bz2lib
|
|
|
|
endif
|
|
|
|
|
2014-07-31 20:10:32 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_EXPAT),y)
|
|
|
|
LIBARCHIVE_DEPENDENCIES += expat
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --without-expat
|
2014-07-31 20:10:32 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
LIBARCHIVE_DEPENDENCIES += libiconv
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --without-libiconv-prefix
|
2014-07-31 20:10:32 +02:00
|
|
|
endif
|
2009-10-20 22:31:48 +02:00
|
|
|
|
2011-07-10 19:52:52 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
|
|
LIBARCHIVE_DEPENDENCIES += libxml2
|
|
|
|
LIBARCHIVE_CONF_ENV += XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --without-xml2
|
2011-07-10 19:52:52 +02:00
|
|
|
endif
|
|
|
|
|
2014-07-31 20:10:32 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LZO),y)
|
|
|
|
LIBARCHIVE_DEPENDENCIES += lzo
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --without-lzo2
|
2014-07-31 20:10:32 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_NETTLE),y)
|
|
|
|
LIBARCHIVE_DEPENDENCIES += nettle
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --without-nettle
|
2014-07-31 20:10:32 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBARCHIVE_DEPENDENCIES += openssl
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --without-openssl
|
2014-07-31 20:10:32 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
LIBARCHIVE_DEPENDENCIES += zlib
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBARCHIVE_CONF_OPTS += --without-zlib
|
2014-07-31 20:10:32 +02:00
|
|
|
endif
|
|
|
|
|
2016-07-21 16:10:26 +02:00
|
|
|
# libarchive requires LZMA with thread support in the toolchain
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_PACKAGE_XZ),yy)
|
2015-06-26 17:01:58 +02:00
|
|
|
LIBARCHIVE_DEPENDENCIES += xz
|
|
|
|
LIBARCHIVE_CONF_OPTS += --with-lzma
|
|
|
|
else
|
|
|
|
LIBARCHIVE_CONF_OPTS += --without-lzma
|
|
|
|
endif
|
|
|
|
|
2016-06-12 23:10:38 +02:00
|
|
|
# The only user of host-libarchive needs zlib support
|
|
|
|
HOST_LIBARCHIVE_DEPENDENCIES = host-zlib
|
|
|
|
HOST_LIBARCHIVE_CONF_OPTS = \
|
|
|
|
--disable-bsdtar \
|
|
|
|
--disable-bsdcpio \
|
2016-07-26 14:58:53 +02:00
|
|
|
--disable-bsdcat \
|
2016-06-12 23:10:38 +02:00
|
|
|
--disable-acl \
|
|
|
|
--disable-xattr \
|
|
|
|
--without-bz2lib \
|
|
|
|
--without-expat \
|
|
|
|
--without-libiconv-prefix \
|
|
|
|
--without-xml2 \
|
|
|
|
--without-lzo2 \
|
|
|
|
--without-nettle \
|
|
|
|
--without-openssl \
|
|
|
|
--without-lzma
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2016-06-12 23:10:38 +02:00
|
|
|
$(eval $(host-autotools-package))
|