Files
haikuports/media-libs/libpng/libpng16-1.6.40.recipe
PulkoMandy 3c0ddaa369 Remove "untested for PowerPC" from a few recipes
The older versions were removed, so, if the latest version is marked as
untested, there is nothing to build. This allows to run the bootstrap
build a bit further.
2024-07-21 16:40:05 +02:00

104 lines
2.5 KiB
Bash

SUMMARY="Portable Network Graphics library"
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."
HOMEPAGE="http://www.libpng.org/"
COPYRIGHT="1995-2022 The PNG Reference Library Authors
2018-2022 Cosmin Truta
2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson
1996-1997 Andreas Dilger
1995-1996 Guy Eric Schalnat, Group 42, Inc."
LICENSE="LibPNG"
REVISION="1"
SOURCE_URI="https://downloads.sourceforge.net/libpng/libpng-$portVersion.tar.gz"
CHECKSUM_SHA256="8f720b363aa08683c9bf2a563236f45313af2c55d542b5481ae17dd8d183bb42"
SOURCE_DIR="libpng-$portVersion"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
# define libVersion as xy.z.0 when portVersion is x.y.z.
libVersion="${portVersion/\./}.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVersionCompat="$portVersion compat >= 1.6"
PROVIDES="
libpng16$secondaryArchSuffix = $portVersionCompat
lib:libpng16$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libpng16${secondaryArchSuffix}_devel = $portVersionCompat
cmd:libpng16_config$secondaryArchSuffix = $portVersionCompat
cmd:libpng_config$secondaryArchSuffix = $portVersionCompat
cmd:png_fix_itxt$secondaryArchSuffix = $portVersionCompat
cmd:pngcp$secondaryArchSuffix = $portVersionCompat
cmd:pngfix$secondaryArchSuffix = $portVersionCompat
devel:libpng$secondaryArchSuffix = $libVersionCompat
devel:libpng16$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
haiku$secondaryArchSuffix
libpng16$secondaryArchSuffix == $portVersion base
lib:libz$secondaryArchSuffix
"
CONFLICTS_devel="
libpng${secondaryArchSuffix}_devel
libpng12${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
autoreconf -f -i
runConfigure ./configure \
--disable-static
make $jobArgs
}
INSTALL()
{
make install
# remove libtool file
rm $libDir/libpng*.la
prepareInstalledDevelLibs libpng libpng16
fixPkgconfig
if [ -z "$secondaryArchSuffix" ]; then
maybe_manDir_man3=$manDir/man3
else
maybe_manDir_man3=
rm -rf $manDir
fi
# devel package
packageEntries devel \
$binDir \
$developDir \
$maybe_manDir_man3
}
TEST()
{
make check
}