mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-30 12:08:53 +02:00
79 lines
2.0 KiB
Bash
79 lines
2.0 KiB
Bash
SUMMARY="Portable Network Graphics library (BeOS compatibility version)"
|
|
DESCRIPTION="libpng is the official PNG reference library. It supports almost \
|
|
all PNG features, is extensible, and has been extensively tested for over 17 \
|
|
years.
|
|
|
|
This is libpng 1.2, an older version which may be needed for compatibility \
|
|
with BeOS application. For new developments please use the current libpng \
|
|
package."
|
|
HOMEPAGE="http://www.libpng.org/"
|
|
COPYRIGHT="1998-2015 Glenn Randers-Pehrson
|
|
1996-1997 Andreas Dilger
|
|
1995-1996 Guy Eric Schalnat, Group 42, Inc."
|
|
LICENSE="LibPNG"
|
|
REVISION="2"
|
|
SOURCE_URI="http://prdownloads.sourceforge.net/libpng/libpng-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="0366f932883084a6972efa8eadfaa5584e94a7c9c8682a49590759951518801f"
|
|
SOURCE_DIR="libpng-$portVersion"
|
|
|
|
ARCHITECTURES="x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2"
|
|
|
|
PROVIDES="
|
|
libpng12$secondaryArchSuffix = $portVersion compat >= 1.2
|
|
lib:libpng$secondaryArchSuffix = 3.56.0 compat >= 3
|
|
lib:libpng12$secondaryArchSuffix = 3.56.0 compat >= 3
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libpng12${secondaryArchSuffix}_devel = $portVersion compat >= 1.2
|
|
cmd:libpng_config$secondaryArchSuffix = $portVersion compat >= 1.2
|
|
cmd:libpng12_config$secondaryArchSuffix = $portVersion compat >= 1.2
|
|
devel:libpng$secondaryArchSuffix = 3.56.0 compat >= 3
|
|
devel:libpng12$secondaryArchSuffix = 3.56.0 compat >= 3
|
|
"
|
|
REQUIRES_devel="
|
|
libpng12$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix >= 1.0.4
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
aclocal
|
|
libtoolize --force --copy --install
|
|
./autogen.sh
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libpng libpng12
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$binDir \
|
|
$developDir \
|
|
$manDir/man3
|
|
}
|