From 2294cf57c9ef5111b3f06b5e6ebb4794a311bf6b Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: Aug 12 2019 08:20:23 +0000 Subject: vars/build.vars:native_packages_deps: adds libzip v1.5.2 (via Redfoxmoon.) vars/libzip.vars: via Redfoxmoon. --- diff --git a/vars/build.vars b/vars/build.vars index e0cae0f..b89acac 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -601,7 +601,7 @@ NATIVE_PACKAGES_DEPS_PACKAGES=" libatomic_ops bdwgc clzip expat libxml2 alsa_lib apr apr_util bzip2 libdmtx libressl libnettle libunistring gnutls curl libz lmdb libpcap libpng libjpeg_turbo tiff giflib lcms2 openjpeg libffi gdbm geoip pcre gettext_tiny -glib gzip libarchive musl_compat musl_fts libbsd libpipeline libtelnet +glib gzip libarchive musl_compat musl_fts libzip libbsd libpipeline libtelnet libevent libfetch libogg libvorbis libflac libtheora libsasl2 libshine libsndfile libgpg_error libassuan libfirm libgcrypt libksba libudns lua ncurses ncursestw ncursesw libreadline libxslt libtirpc npth popt file xz zstd @@ -741,6 +741,9 @@ NATIVE_PACKAGES_DEPS_PYTHON="${PREFIX}/bin/python2"; : ${PKG_MUSL_FTS_SHA256SUM:=32dfe02768f1d3d91ab04df4fbdb7922cd34cd529ce7081a78c3ca8b8652d1ee}; : ${PKG_MUSL_FTS_VERSION:=1.2.7}; : ${PKG_MUSL_FTS_URL:=https://midipix.org/mirror/musl-fts/musl-fts-${PKG_MUSL_FTS_VERSION}.tar.xz}; +: ${PKG_LIBZIP_SHA256SUM:=b3de4d4bd49a01e0cab3507fc163f88e1651695b6b9cb25ad174dbe319d4a3b4}; +: ${PKG_LIBZIP_VERSION:=1.5.2}; +: ${PKG_LIBZIP_URL:=https://libzip.org/download/libzip-${PKG_LIBZIP_VERSION}.tar.xz}; : ${PKG_LIBBSD_SHA256SUM:=56d835742327d69faccd16955a60b6dcf30684a8da518c4eca0ac713b9e0a7a4}; : ${PKG_LIBBSD_VERSION:=0.9.1}; : ${PKG_LIBBSD_URL:=https://libbsd.freedesktop.org/releases/libbsd-${PKG_LIBBSD_VERSION}.tar.xz}; diff --git a/vars/libzip.vars b/vars/libzip.vars new file mode 100644 index 0000000..4e589fc --- /dev/null +++ b/vars/libzip.vars @@ -0,0 +1,27 @@ +# +# set -o errexit -o noglob are assumed. +# + +pkg_libzip_configure() { + rm -f config.cache; + env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" \ + PREFIX="" LDFLAGS="-lbz2" \ + cmake -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \ + -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ + -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \ + -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \ + -DCMAKE_SYSTEM_NAME="Midipix" \ + -DCMAKE_BUILD_TYPE="Debug" \ + -DCMAKE_INSTALL_PREFIX= \ + -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \ + -DENABLE_GNUTLS=:BOOL=OFF \ + -DENABLE_MBEDTLS=:BOOL=OFF \ + -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \ + -DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.lib.a" \ + -DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a" \ + -DBZIP2_INCLUDE_DIR="${PKG_PREFIX}/include" \ + -DOPENSSL_SSL_LIBRARY="${PKG_PREFIX}/lib/libssl.lib.a" \ + -DOPENSSL_CRYPTO_LIBRARY="${PKG_PREFIX}/lib/libcrypto.lib.a" \ + -DCMAKE_C_STANDARD_LIBRARIES="-lbz2 -lfts" \ + "../libzip-${PKG_VERSION}"; +}