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_MD5SUM
:=691c194ee132d1f0f7a42541f091db811bc2e56f7107e9121be2bc8c04f1060f
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
/$(PKG_NAME
)/Default
28 DEPENDS
:=+zlib
+liblzma
+libbz2
+libexpat
29 TITLE
:=Multi-format archive and compression library
30 URL
:=http
://www.libarchive.org
/
33 define Package
/$(PKG_NAME
)
34 $(call Package
/$(PKG_NAME
)/Default
)
35 DEPENDS
+= +libopenssl
38 define Package
/$(PKG_NAME
)-noopenssl
39 $(call Package
/$(PKG_NAME
)/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 \
69 ifeq ($(BUILD_VARIANT
),noopenssl
)
70 CONFIGURE_ARGS
+= --without-openssl
72 CONFIGURE_ARGS
+= --with-openssl
75 define Build
/InstallDev
76 $(INSTALL_DIR
) $(1)/usr
/include
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
78 $(INSTALL_DIR
) $(1)/usr
/lib
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
82 define Package
/libarchive
/install
83 $(INSTALL_DIR
) $(1)/usr
/lib
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so.
* $(1)/usr
/lib
/
87 define Package
/bsdtar
/install
88 $(INSTALL_DIR
) $(1)/usr
/bin
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/bsdtar
$(1)/usr
/bin
92 Package
/$(PKG_NAME
)-noopenssl
/install = $(Package
/$(PKG_NAME
)/install)
94 $(eval
$(call BuildPackage
,libarchive
))
95 $(eval
$(call BuildPackage
,libarchive-noopenssl
))
96 $(eval
$(call BuildPackage
,bsdtar
))