mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
Add recipe for zlib 1.2.8
Based on the non-recipe for 1.2.7.
This commit is contained in:
71
sys-libs/zlib/zlib-1.2.8.recipe
Normal file
71
sys-libs/zlib/zlib-1.2.8.recipe
Normal file
@@ -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"
|
||||
Reference in New Issue
Block a user