mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01: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.
76 lines
1.6 KiB
Bash
76 lines
1.6 KiB
Bash
SUMMARY="Mini zip and unzip based on zlib"
|
|
DESCRIPTION="minizip is a simple tool which allows the creation of compressed \
|
|
file archives in the ZIP format used by the MS-DOS utility PKZIP. It was \
|
|
written as a demonstration of the zlib library and therefore lack many of \
|
|
the features of the zip program."
|
|
HOMEPAGE="http://www.zlib.net/"
|
|
COPYRIGHT="1998-2010 Gilles Vollant and Mathias Svensson"
|
|
LICENSE="Zlib"
|
|
REVISION="2"
|
|
SOURCE_URI="http://zlib.net/fossils/zlib-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1"
|
|
SOURCE_DIR="zlib-$portVersion"
|
|
PATCHES="minizip-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
minizip$secondaryArchSuffix = $portVersion
|
|
lib:libminizip$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
minizip${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libminizip$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
minizip$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autoheader
|
|
cmd:automake
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cd contrib/minizip
|
|
cp Makefile Makefile.orig
|
|
cp ../README.contrib readme.txt
|
|
autoreconf --install
|
|
runConfigure ./configure
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd contrib/minizip
|
|
make install
|
|
|
|
rm -rf $libDir/libminizip.la
|
|
|
|
prepareInstalledDevelLib libminizip
|
|
|
|
fixPkgconfig strict
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|