61528d948ae44d7137cb7fd71fc9f3a96a65f7eb
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libarchive / libarchive.mk
1 ################################################################################
2 #
3 # libarchive
4 #
5 ################################################################################
6
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
13
14 ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDTAR),y)
15 ifeq ($(BR2_STATIC_LIBS),y)
16 LIBARCHIVE_CONF_OPTS += --enable-bsdtar=static
17 else
18 LIBARCHIVE_CONF_OPTS += --enable-bsdtar=shared
19 endif
20 else
21 LIBARCHIVE_CONF_OPTS += --disable-bsdtar
22 endif
23
24 ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDCPIO),y)
25 ifeq ($(BR2_STATIC_LIBS),y)
26 LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=static
27 else
28 LIBARCHIVE_CONF_OPTS += --enable-bsdcpio=shared
29 endif
30 else
31 LIBARCHIVE_CONF_OPTS += --disable-bsdcpio
32 endif
33
34 ifeq ($(BR2_PACKAGE_ACL),y)
35 LIBARCHIVE_DEPENDENCIES += acl
36 else
37 LIBARCHIVE_CONF_OPTS += --disable-acl
38 endif
39
40 ifeq ($(BR2_PACKAGE_ATTR),y)
41 LIBARCHIVE_DEPENDENCIES += attr
42 else
43 LIBARCHIVE_CONF_OPTS += --disable-xattr
44 endif
45
46 ifeq ($(BR2_PACKAGE_EXPAT),y)
47 LIBARCHIVE_DEPENDENCIES += expat
48 else
49 LIBARCHIVE_CONF_OPTS += --without-expat
50 endif
51
52 ifeq ($(BR2_PACKAGE_LIBICONV),y)
53 LIBARCHIVE_DEPENDENCIES += libiconv
54 else
55 LIBARCHIVE_CONF_OPTS += --without-libiconv-prefix
56 endif
57
58 ifeq ($(BR2_PACKAGE_LIBXML2),y)
59 LIBARCHIVE_DEPENDENCIES += libxml2
60 LIBARCHIVE_CONF_ENV += XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config
61 else
62 LIBARCHIVE_CONF_OPTS += --without-xml2
63 endif
64
65 ifeq ($(BR2_PACKAGE_LZO),y)
66 LIBARCHIVE_DEPENDENCIES += lzo
67 else
68 LIBARCHIVE_CONF_OPTS += --without-lzo2
69 endif
70
71 ifeq ($(BR2_PACKAGE_NETTLE),y)
72 LIBARCHIVE_DEPENDENCIES += nettle
73 else
74 LIBARCHIVE_CONF_OPTS += --without-nettle
75 endif
76
77 ifeq ($(BR2_PACKAGE_OPENSSL),y)
78 LIBARCHIVE_DEPENDENCIES += openssl
79 else
80 LIBARCHIVE_CONF_OPTS += --without-openssl
81 endif
82
83 ifeq ($(BR2_PACKAGE_ZLIB),y)
84 LIBARCHIVE_DEPENDENCIES += zlib
85 else
86 LIBARCHIVE_CONF_OPTS += --without-zlib
87 endif
88
89 $(eval $(autotools-package))