summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2020-12-07 15:29:19 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-12-07 19:30:18 +0000
commit78fd1ccbfb657718c23aca636e4427bf8576442c (patch)
treeadf798770fe7b1dfdf7ab6e6450388b1aebd4e18 /vars
parente2bbb839fc03f59e2e7caa80dc5d208f6c6e0bb0 (diff)
downloadmidipix_build-78fd1ccbfb657718c23aca636e4427bf8576442c.tar.bz2
midipix_build-78fd1ccbfb657718c23aca636e4427bf8576442c.tar.xz
groups/231.native_packages_etc.group: adds minizip v2.10.4
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
Diffstat (limited to 'vars')
-rw-r--r--vars/minizip.vars31
1 files changed, 31 insertions, 0 deletions
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