blob: c6ac3f0f03527d89e1e92ab8b3b5cefb8151a8a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 \
"../${PKG_SUBDIR}"; then
return 1;
fi;
};
# vim:filetype=sh textwidth=0
|