2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.libarchive.org
/downloads
16 PKG_HASH
:=29ca5bd1624ca5a007aa57e16080262ab4379dbf8797f5c52f7ea74a3b0424e7
17 PKG_MAINTAINER
:=Johannes Morgenroth
<morgenroth@ibr.cs.tu-bs.de
>
18 PKG_LICENSE
:=BSD-2-Clause
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libarchive
/Default
28 DEPENDS
:=+zlib
+liblzma
+libbz2
+libexpat
29 TITLE
:=Multi-format archive and compression library
30 URL
:=http
://www.libarchive.org
/
33 define Package
/libarchive
34 $(call Package
/libarchive
/Default
)
35 DEPENDS
+= +libopenssl
38 define Package
/libarchive-noopenssl
39 $(call Package
/libarchive
/Default
)
40 TITLE
+= (without OpenSSL dependency
)
48 DEPENDS
:=+libarchive-noopenssl
49 TITLE
:=BSD variant that supports various file compression formats
50 URL
:=http
://www.libarchive.org
/
53 define Package
/bsdtar
/description
54 Reads a variety of formats including
tar, pax
, zip
, xar
, lha
, ar,
55 cab
, mtree
, rar
, warc
, 7z and ISO images. Writes
tar, pax
, zip
,
56 xar
, ar, ISO
, mtree and
shar archives. Automatically handles
57 archives compressed with gzip
, bzip2
, lzip
, xz
, lzma or compress.
62 --enable-bsdtar
=shared \
70 ifeq ($(BUILD_VARIANT
),noopenssl
)
71 CONFIGURE_ARGS
+= --without-openssl
73 CONFIGURE_ARGS
+= --with-openssl
76 define Build
/InstallDev
77 $(INSTALL_DIR
) $(1)/usr
/include
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
79 $(INSTALL_DIR
) $(1)/usr
/lib
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
83 define Package
/libarchive
/install
84 $(INSTALL_DIR
) $(1)/usr
/lib
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so.
* $(1)/usr
/lib
/
88 define Package
/bsdtar
/install
89 $(INSTALL_DIR
) $(1)/usr
/bin
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/bsdtar
$(1)/usr
/bin
93 Package
/libarchive-noopenssl
/install = $(Package
/libarchive
/install)
95 $(eval
$(call BuildPackage
,libarchive
))
96 $(eval
$(call BuildPackage
,libarchive-noopenssl
))
97 $(eval
$(call BuildPackage
,bsdtar
))