mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 15:20:07 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
98 lines
1.9 KiB
Bash
98 lines
1.9 KiB
Bash
SUMMARY="A C library for reading, creating, and modifying zip archives"
|
|
DESCRIPTION="libzip is a C library for reading, creating, and modifying zip \
|
|
archives."
|
|
HOMEPAGE="http://www.nih.at/libzip/"
|
|
COPYRIGHT="1999-2016 Dieter Baron and Thomas Klausner"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="2"
|
|
SOURCE_URI="http://www.nih.at/libzip/libzip-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="6cf9840e427db96ebf3936665430bab204c9ebbd0120c326459077ed9c907d9f"
|
|
PATCHES="libzip-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libzip$secondaryArchSuffix = $portVersion
|
|
lib:libzip$secondaryArchSuffix = 5.0.0 compat >= 5.0.0
|
|
"
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
PROVIDES="$PROVIDES
|
|
cmd:zipcmp
|
|
cmd:zipmerge
|
|
cmd:ziptool
|
|
"
|
|
fi
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libzip${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libzip$secondaryArchSuffix = 5.0.0 compat >= 5.0.0
|
|
"
|
|
REQUIRES_devel="
|
|
libzip$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autoheader
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -i -e 's/^LN=ln -f$/&rs/' man/Makefile.am
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -vfi
|
|
runConfigure ./configure --disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# Move zipconf.h from lib/libzip/include/ to develop/headers/
|
|
mv $libDir/libzip/include/zipconf.h $includeDir
|
|
rm -rf $libDir/libzip
|
|
|
|
rm $libDir/libzip.la
|
|
|
|
prepareInstalledDevelLibs libzip
|
|
fixPkgconfig
|
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
maybe_manDir_man3=$manDir/man3
|
|
else
|
|
maybe_manDir_man3=
|
|
rm -rf $binDir
|
|
rm -rf $documentationDir
|
|
fi
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$maybe_manDir_man3
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|