2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
13 PKG_SOURCE_URL
:=https
://libzip.org
/download
/
14 PKG_HASH
:=dc3c8d5b4c8bbd09626864f6bcf93de701540f761d76b85d7c7d710f4bd90318
16 PKG_MAINTAINER
:=Michael Heimpold
<mhei@heimpold.de
>
18 PKG_LICENSE
:=BSD-3-Clause
19 PKG_LICENSE_FILES
:=LICENSE
20 PKG_CPE_ID
:=cpe
:/a
:libzip
:libzip
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/cmake.mk
27 define Package
/libzip
/Default
29 URL
:=https
://libzip.org
/
38 define Package
/libzip-
$(BUILD_VARIANT
)/description
39 A C library for reading
, creating
, and modifying zip archives.
42 Package
/libzip-nossl
=$(call Package
/libzip
/Default
,nossl
,w
/o encryption support
)
43 Package
/libzip-openssl
=$(call Package
/libzip
/Default
,openssl
,OpenSSL
,+PACKAGE_libzip-openssl
:libopenssl
)
44 Package
/libzip-gnutls
=$(call Package
/libzip
/Default
,gnutls
,GnuTLS
,+PACKAGE_libzip-gnutls
:libgnutls
)
45 Package
/libzip-mbedtls
=$(call Package
/libzip
/Default
,mbedtls
,mbedTLS
,+PACKAGE_libzip-mbedtls
:libmbedtls
)
49 URL
:=https
://libzip.org
/
53 DEPENDS
:=+libzip
+USE_MUSL
:musl-fts
56 define Package
/zipcmp
/description
57 This package contains the command line tool zipcmp from libzip.
60 define Package
/zipmerge
62 URL
:=https
://libzip.org
/
69 define Package
/zipmerge
/description
70 This package contains the command line tool zipmerge from libzip.
73 define Package
/ziptool
75 URL
:=https
://libzip.org
/
82 define Package
/ziptool
/description
83 This package contains the command line tool ziptool from libzip.
86 CMAKE_OPTIONS
+= -DENABLE_COMMONCRYPTO
=OFF
87 ifeq ($(BUILD_VARIANT
),gnutls
)
88 CMAKE_OPTIONS
+= -DENABLE_GNUTLS
=ON
90 CMAKE_OPTIONS
+= -DENABLE_GNUTLS
=OFF
92 ifeq ($(BUILD_VARIANT
),openssl
)
93 CMAKE_OPTIONS
+= -DENABLE_OPENSSL
=ON
95 CMAKE_OPTIONS
+= -DENABLE_OPENSSL
=OFF
97 ifeq ($(BUILD_VARIANT
),mbedtls
)
98 CMAKE_OPTIONS
+= -DENABLE_MBEDTLS
=ON
100 CMAKE_OPTIONS
+= -DENABLE_MBEDTLS
=OFF
103 CMAKE_OPTIONS
+= -DENABLE_BZIP2
=OFF
104 CMAKE_OPTIONS
+= -DENABLE_LZMA
=OFF
105 CMAKE_OPTIONS
+= -DENABLE_ZSTD
=OFF
106 CMAKE_OPTIONS
+= -DBUILD_REGRESS
=OFF
107 CMAKE_OPTIONS
+= -DBUILD_EXAMPLES
=OFF
108 CMAKE_OPTIONS
+= -DBUILD_DOC
=OFF
109 CMAKE_OPTIONS
+= -DBUILD_TOOLS
=ON
111 define Package
/libzip-
$(BUILD_VARIANT
)/install
112 $(INSTALL_DIR
) $(1)/usr
/lib
113 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libzip.so.
* $(1)/usr
/lib
/
116 define Package
/zipcmp
/install
117 $(INSTALL_DIR
) $(1)/usr
/bin
118 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/zipcmp
$(1)/usr
/bin
/
121 define Package
/zipmerge
/install
122 $(INSTALL_DIR
) $(1)/usr
/bin
123 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/zipmerge
$(1)/usr
/bin
/
126 define Package
/ziptool
/install
127 $(INSTALL_DIR
) $(1)/usr
/bin
128 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ziptool
$(1)/usr
/bin
/
131 $(eval
$(call BuildPackage
,libzip-gnutls
))
132 $(eval
$(call BuildPackage
,libzip-mbedtls
))
133 $(eval
$(call BuildPackage
,libzip-openssl
))
134 $(eval
$(call BuildPackage
,libzip-nossl
))
135 $(eval
$(call BuildPackage
,zipcmp
))
136 $(eval
$(call BuildPackage
,zipmerge
))
137 $(eval
$(call BuildPackage
,ziptool
))