Merge pull request #9127 from heitbaum/compress

Compress packages - only build libraries
This commit is contained in:
CvH 2024-07-28 08:55:51 +02:00 committed by GitHub
commit 3b45f558bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 44 additions and 24 deletions

View File

@ -12,17 +12,35 @@ PKG_DEPENDS_TARGET="cmake:host gcc:host"
PKG_SHORTDESC="A multi-format archive and compression library."
PKG_CMAKE_OPTS_TARGET="-DCMAKE_POSITION_INDEPENDENT_CODE=1 \
-DENABLE_EXPAT=0 \
-DENABLE_ICONV=0 \
-DENABLE_LIBXML2=0 \
-DENABLE_LZO=1 \
-DENABLE_TEST=0 \
-DENABLE_COVERAGE=0 \
-DENABLE_WERROR=0"
post_makeinstall_target() {
rm -rf ${INSTALL}
# delete the shared library as we only want static
rm ${SYSROOT_PREFIX}/usr/lib/libarchive.so*
}
-DBUILD_SHARED_LIBS=OFF \
-DENABLE_ACL=ON \
-DENABLE_BZip2=ON \
-DENABLE_CAT=OFF \
-DENABLE_CAT_SHARED=FALSE \
-DENABLE_CNG=ON \
-DENABLE_COVERAGE=FALSE \
-DENABLE_CPIO=OFF \
-DENABLE_CPIO_SHARED=FALSE \
-DENABLE_EXPAT=OFF \
-DENABLE_ICONV=OFF \
-DENABLE_INSTALL=ON \
-DENABLE_LIBB2=OFF \
-DENABLE_LIBGCC=ON \
-DENABLE_LIBXML2=OFF \
-DENABLE_LZ4=ON \
-DENABLE_LZMA=OFF \
-DENABLE_LZO=ON \
-DENABLE_MBEDTLS=OFF \
-DENABLE_NETTLE=OFF \
-DENABLE_OPENSSL=ON \
-DENABLE_PCRE2POSIX=ON \
-DENABLE_PCREPOSIX=OFF \
-DENABLE_TAR=OFF \
-DENABLE_TAR_SHARED=FALSE \
-DENABLE_TEST=OFF \
-DENABLE_UNZIP=OFF \
-DENABLE_UNZIP_SHARED=FALSE \
-DENABLE_WERROR=0 \
-DENABLE_XATTR=ON \
-DENABLE_ZLIB=ON \
-DENABLE_ZSTD=ON"

View File

@ -14,9 +14,7 @@ PKG_LONGDESC="lz4 data compressor/decompressor"
configure_package() {
PKG_CMAKE_SCRIPT="${PKG_BUILD}/build/cmake/CMakeLists.txt"
PKG_CMAKE_OPTS_TARGET="-DBUILD_SHARED_LIBS=0 -DCMAKE_POSITION_INDEPENDENT_CODE=0"
}
post_makeinstall_target() {
rm -rf ${INSTALL}
PKG_CMAKE_OPTS_TARGET="-DBUILD_SHARED_LIBS=0 \
-DLZ4_BUILD_CLI=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=0"
}

View File

@ -24,9 +24,13 @@ PKG_CONFIGURE_OPTS_HOST="--disable-shared --enable-static \
--disable-scripts \
--enable-symbol-versions=no"
PKG_CONFIGURE_OPTS_TARGET="--disable-shared --enable-static \
PKG_CONFIGURE_OPTS_TARGET="--enable-static \
--disable-shared \
--disable-doc \
--disable-lzmadec \
--disable-lzmainfo \
--disable-lzma-links \
--disable-scripts \
--disable-xz \
--disable-xzdec \
--enable-symbol-versions=no"
post_makeinstall_target() {
rm -rf ${INSTALL}
}