|
Lucio Andrés Illanes Albornoz |
2294cf |
#
|
|
Lucio Andrés Illanes Albornoz |
e1d469 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
Lucio Andrés Illanes Albornoz |
2294cf |
#
|
|
Lucio Andrés Illanes Albornoz |
2294cf |
|
|
Lucio Andrés Illanes Albornoz |
2294cf |
pkg_libzip_configure() {
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
local _build_type="";
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
case "${BUILD}" in
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
debug) _build_type="Debug"; ;;
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
release) _build_type="Release"; ;;
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
*) exit 1; ;;
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
esac;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if ! rtl_fileop rm config.cache \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
|| ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" LDFLAGS="-lbz2" PREFIX="" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
cmake -DBZIP2_INCLUDE_DIR="${PKG_PREFIX}/include" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_BUILD_TYPE="${_build_type}" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_C_STANDARD_LIBRARIES="-lbz2 -lfts" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_INSTALL_PREFIX= \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_SYSTEM_NAME="Midipix" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DENABLE_GNUTLS=:BOOL=ON \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DENABLE_MBEDTLS=:BOOL=OFF \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DGNUTLS_INCLUDE_DIR="${PKG_PREFIX}/include" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DGNUTLS_LIBRARY="${PKG_PREFIX}/lib/libgnutls.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DLIBLZMA_INCLUDE_DIR="${PKG_PREFIX}/include" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DLIBLZMA_LIBRARY="${PKG_PREFIX}/lib/liblzma.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DNETTLE_INCLUDE_DIR="${PKG_PREFIX}/include" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DNETTLE_LIBRARY="${PKG_PREFIX}/lib/libnettle.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DOPENSSL_CRYPTO_LIBRARY="${PKG_PREFIX}/lib/libcrypto.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DOPENSSL_SSL_LIBRARY="${PKG_PREFIX}/lib/libssl.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
"../libzip-${PKG_VERSION}"; then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
fi;
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
};
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
pkg_libzip_host_configure() {
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
local _build_type="";
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
case "${BUILD}" in
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
debug) _build_type="Debug"; ;;
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
release) _build_type="Release"; ;;
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
*) exit 1; ;;
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
esac;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if ! rtl_fileop rm config.cache \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
|| ! env LDFLAGS="-L${PKG_PREFIX}/lib -lbz2 -lfts -lssl" PREFIX="" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
cmake -DCMAKE_BUILD_TYPE="${_build_type}" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_C_STANDARD_LIBRARIES="-lbz2 -lcrypto -lfts" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_INSTALL_PREFIX= \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DENABLE_GNUTLS=:BOOL=OFF \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DENABLE_MBEDTLS=:BOOL=OFF \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
"../libzip-${PKG_VERSION}"; then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
fi;
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
};
|
|
Lucio Andrés Illanes Albornoz |
11b2d8 |
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
# vim:filetype=sh textwidth=0
|