mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
* cmake/debuginfo: Mass fix packages with broken debuginfo * rtl_sdr: Fix trailing whitespace * meson/debuginfo: Mass fix packages with broken debuginfo * clean up conflicts --------- Co-authored-by: Luc Schrijvers <begasus@gmail.com>
81 lines
2.0 KiB
Bash
81 lines
2.0 KiB
Bash
SUMMARY="Fork of the popular zip manipulation library found in the zlib distribution"
|
|
DESCRIPTION="minizip-ng is a zip manipulation library written in C that is supported on Windows, \
|
|
macOS, and Linux."
|
|
HOMEPAGE="https://github.com/zlib-ng/minizip-ng"
|
|
COPYRIGHT="1995-2013 Jean-loup Gailly and Mark Adler"
|
|
LICENSE="Zlib"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/zlib-ng/minizip-ng/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a87f1f734f97095fe1ef0018217c149d53d0f78438bcb77af38adc21dff2dfbc"
|
|
SOURCE_FILENAME="minizip-ng-$portVersion.tar.gz"
|
|
SOURCE_DIR="minizip-ng-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
|
|
PROVIDES="
|
|
minizip_ng$secondaryArchSuffix = $portVersion
|
|
lib:libminizip_ng$secondaryArchSuffix = $libVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:liblzma$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libzstd$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
minizip_ng${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libminizip_ng$secondaryArchSuffix = $libVersion
|
|
"
|
|
REQUIRES_devel="
|
|
minizip_ng$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:liblzma$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix
|
|
devel:libzstd$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage minizip_ng$secondaryArchSuffix \
|
|
$libDir/libminizip-ng.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
$cmakeDirArgs -GNinja \
|
|
-DMZ_LIB_SUFFIX="-ng" \
|
|
-DBUILD_SHARED_LIBS=ON
|
|
ninja -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -Cbuild install
|
|
|
|
prepareInstalledDevelLib \
|
|
libminizip-ng
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|