mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Quazip : new recipe (#3677)
This commit is contained in:
86
dev-libs/quazip/quazip-0.7.6.recipe
Normal file
86
dev-libs/quazip/quazip-0.7.6.recipe
Normal file
@@ -0,0 +1,86 @@
|
||||
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="1"
|
||||
SOURCE_URI="https://github.com/stachenov/quazip/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4118a830a375a81211956611cc34b1b5b4ddc108c126287b91b40c2493046b70"
|
||||
SOURCE_FILENAME="quazip-$portVersion.tar.gz"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
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="
|
||||
haiku$secondaryArchSuffix
|
||||
quazip$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage quazip$secondaryArchSuffix \
|
||||
"$libDir"/libquazip5.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p haiku_build
|
||||
cd haiku_build
|
||||
|
||||
cmake .. \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_ROOT=$libDir/cmake
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd haiku_build
|
||||
make install
|
||||
|
||||
mkdir -p $includeDir
|
||||
mv $prefix/include/* $includeDir
|
||||
rm -rf $prefix/include
|
||||
|
||||
# prepare develop/lib
|
||||
prepareInstalledDevelLibs libquazip5
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd haiku_build
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user