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
:=efad5a503f66329bb9d2f4308b5de98a
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
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
)
57 ifeq ($(BUILD_VARIANT
),noopenssl
)
58 CONFIGURE_ARGS
+= --without-openssl
60 CONFIGURE_ARGS
+= --with-openssl
63 define Build
/InstallDev
64 $(INSTALL_DIR
) $(1)/usr
/include
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
66 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
70 define Package
/libarchive
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so.
* $(1)/usr
/lib
/
74 Package
/$(PKG_NAME
)-noopenssl
/install = $(Package
/$(PKG_NAME
)/install)
76 $(eval
$(call BuildPackage
,libarchive
))
77 $(eval
$(call BuildPackage
,libarchive-noopenssl
))