From 78fd1ccbfb657718c23aca636e4427bf8576442c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Mon, 7 Dec 2020 15:29:19 +0100 Subject: groups/231.native_packages_etc.group: adds minizip v2.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lucio Andrés Illanes Albornoz --- vars/minizip.vars | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 vars/minizip.vars (limited to 'vars') diff --git a/vars/minizip.vars b/vars/minizip.vars new file mode 100644 index 00000000..4e2667e0 --- /dev/null +++ b/vars/minizip.vars @@ -0,0 +1,31 @@ +# +# set +o errexit -o noglob -o nounset is assumed. +# + +pkg_minizip_configure() { + if ! rtl_fileop rm config.cache \ + || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \ + cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \ + -DCMAKE_BUILD_TYPE="Debug" \ + -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \ + -DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_CXX}" \ + -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \ + -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \ + -DCMAKE_INSTALL_PREFIX="" \ + -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \ + -DPKG_CONFIG_EXECUTABLE="${PREFIX}/bin/${DEFAULT_TARGET}-pkg-config" \ + -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \ + -DZLIB_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libz.lib.a" \ + -DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a" \ + -DMZ_OPENSSL=ON \ + -DMZ_ZSTD=OFF \ + -DMZ_LZMA=ON \ + -DMZ_LIBBSD=OFF \ + -DBUILD_SHARED_LIBS=ON \ + -DMZ_BUILD_TEST=ON \ + "../minizip-${PKG_VERSION}"; then + return 1; + fi; +}; + +# vim:filetype=sh textwidth=0 -- cgit v1.2.3