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>
85 lines
2.0 KiB
Bash
85 lines
2.0 KiB
Bash
SUMMARY="Simple C\+\+ wrapper over Gilles Vollant\'s ZIP/UNZIP package"
|
|
DESCRIPTION="QuaZIP is the C++ wrapper for Gilles Vollant\'s ZIP/UNZIP \
|
|
package (AKA Minizip) using Trolltech's Qt library."
|
|
HOMEPAGE="https://github.com/stachenov/quazip"
|
|
COPYRIGHT="2005-2014 Sergey A. Tachenov"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="3"
|
|
SOURCE_URI="https://github.com/stachenov/quazip/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4fda4d4248e08015b5090d0369ef9e68bdc4475aa12494f7c0f6d79e43270d14"
|
|
SOURCE_FILENAME="quazip-$portVersion.tar.gz"
|
|
PATCHES="quazip-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
quazip$secondaryArchSuffix = $portVersion
|
|
lib:libquazip5$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
quazip${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libquazip5$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
quazip$secondaryArchSuffix == $portVersion base
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qmake$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
defineDebugInfoPackage quazip$secondaryArchSuffix \
|
|
"$libDir"/libquazip5.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
$cmakeDirArgs \
|
|
-DINSTALL_PATH=$libDir
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# remove static library
|
|
rm -f $libDir/libquazip5.a
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLib libquazip5
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -C build check
|
|
# There is no cmake compatible test.
|
|
}
|