From d329cbfee49d8154d223b6dc432884c8ec188d13 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 7 Nov 2014 09:41:01 +0100 Subject: [PATCH] Add a recipe for libpng 1.2 * This is an old version, but it is required to run some BeOS software (for example Pixel). * Package is named libpng12 so it can be installed next to the current one without conflict. --- media-libs/libpng/libpng12-1.2.51.recipe | 80 ++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 media-libs/libpng/libpng12-1.2.51.recipe diff --git a/media-libs/libpng/libpng12-1.2.51.recipe b/media-libs/libpng/libpng12-1.2.51.recipe new file mode 100644 index 000000000..2c43ec138 --- /dev/null +++ b/media-libs/libpng/libpng12-1.2.51.recipe @@ -0,0 +1,80 @@ +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 olderversion 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-2011 Glenn Randers-Pehrson + 1996-1997 Andreas Dilger + 1995-1996 Guy Eric Schalnat, Group 42, Inc. + " +LICENSE="LibPNG" +SRC_URI="http://sourceforge.net/projects/libpng/files/libpng12/1.2.51/libpng-1.2.51.tar.bz2" +CHECKSUM_SHA256="b0ad409d7048c851eadb2abab6c1a1a1e131bc4d3d07501ff7c820cce5bec811" +SOURCE_DIR="libpng-1.2.51" +REVISION="1" +ARCHITECTURES="x86_gcc2" +SECONDARY_ARCHITECTURES="x86_gcc2" + +PROVIDES=" + libpng12$secondaryArchSuffix = $portVersion compat >= 1.2 + lib:libpng$secondaryArchSuffix = 3.51.0 compat >= 3 + lib:libpng12$secondaryArchSuffix = 3.51.0 compat >= 3 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libz$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + 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 +} + +# ----- devel package ------------------------------------------------------- + +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.51.0 compat >= 3 + devel:libpng12$secondaryArchSuffix = 3.51.0 compat >= 3 + " +REQUIRES_devel=" + libpng12$secondaryArchSuffix == $portVersion base + "