From 4dadfa2866abb170f544ab63bef4a2e00a4cbe6a Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 5 May 2013 22:04:58 +0200 Subject: [PATCH] Add recipe for zlib 1.2.8 Based on the non-recipe for 1.2.7. --- sys-libs/zlib/zlib-1.2.8.recipe | 71 +++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 sys-libs/zlib/zlib-1.2.8.recipe diff --git a/sys-libs/zlib/zlib-1.2.8.recipe b/sys-libs/zlib/zlib-1.2.8.recipe new file mode 100644 index 000000000..f13eb805f --- /dev/null +++ b/sys-libs/zlib/zlib-1.2.8.recipe @@ -0,0 +1,71 @@ +SUMMARY="A Massively Spiffy Yet Delicately Unobtrusive Compression Library" +DESCRIPTION="zlib is designed to be a free, general-purpose, legally unencumbered -- that is, not covered by any patents -- lossless data-compression library for use on virtually any computer hardware and operating system. The zlib data format is itself portable across platforms. Unlike the LZW compression method used in Unix compress(1) and in the GIF image format, the compression method currently used in zlib essentially never expands the data. (LZW can double or triple the file size in extreme cases.) zlib's memory footprint is also independent of the input data and can be reduced, if necessary, at some cost in compression." +HOMEPAGE="http://www.zlib.net/" +COPYRIGHT="1995-2005 Jean-loup Gailly and Mark Adler" +LICENSE="Zlib" +SRC_URI="http://zlib.net/zlib-1.2.8.tar.gz" +CHECKSUM_MD5="44d667c142d7cda120332623eab69f40" +REVISION="1" +ARCHITECTURES="x86_gcc2 ?x86" + +PROVIDES=" + zlib = $portVersion compat >= 1 + lib:libz = $portVersion compat >= 1 + " +REQUIRES=" + haiku >= $haikuVersion + " +BUILD_REQUIRES=" + $REQUIRES + cmd:cmake + cmd:gcc + cmd:gettext + # TODO: Remove! Undeclared dependency of grep! + cmd:grep + cmd:ld + cmd:make + cmd:sed + " +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + " + +SOURCE_DIR="$portVersionedName" + +PATCH() +{ + sed -i 's,${CMAKE_INSTALL_PREFIX}/include',$includeDir, CMakeLists.txt + sed -i 's,${CMAKE_INSTALL_PREFIX}/share/man',$manDir, CMakeLists.txt + sed -i 's,${CMAKE_INSTALL_PREFIX}/share/pkgconfig',$developLibDir/pkgconfig, \ + CMakeLists.txt +} + +BUILD() +{ + cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix . + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libz + + # devel package + packageEntries devel \ + $developDir \ + $documentationDir +} + +# ----- devel package ------------------------------------------------------- + +SUMMARY_devel="The zlib development files" +PROVIDES_devel="zlib_devel = $portVersion" +REQUIRES_devel=" + zlib == $portVersion + " + +# ----- source package ------------------------------------------------------- + +PROVIDES_source="zlib_source = $portVersion"