giflib: add recipe for version 5.2.1.

This commit is contained in:
Jerome Duval
2019-10-28 19:31:03 +01:00
parent 87e290cacb
commit 0a092a0ca3

View File

@@ -0,0 +1,75 @@
SUMMARY="A library for processing GIFs"
DESCRIPTION="The GIFLIB project maintains the giflib service library, which \
has been pulling images out of GIFs since 1989. It is deployed everywhere you \
can think of and some places you probably can't - graphics applications and \
web browsers on multiple operating systems, game consoles, smartphones, and \
likely your ATM too.
This is very mature, stable, small-footprint code with minimal dependencies \
(suitable for use in embedded deployments) that needs only occasional very \
minor bugfixes. Test reports from odd platforms and better regression tests \
are particularly welcome. Don't try to redesign it, applications beyond \
counting would break if you did.
It's \"GIFLIB\" in caps as a nod to the code's origins in the dark and \
backward abysm of MS-DOS, but Unix hackers are encouraged to spell it \
\"giflib\" in deference to local conventions. :-)"
HOMEPAGE="https://sourceforge.net/projects/giflib/"
COPYRIGHT="1997-2007 Eric S. Raymond and Toshio Kuratomi"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://downloads.sourceforge.net/project/giflib/giflib-$portVersion.tar.gz"
CHECKSUM_SHA256="31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
PROVIDES="
giflib$secondaryArchSuffix = $portVersion
cmd:gif2rgb$secondaryArchSuffix
cmd:gifbuild$secondaryArchSuffix
cmd:gifclrmp$secondaryArchSuffix
cmd:giffix$secondaryArchSuffix
cmd:giftext$secondaryArchSuffix
cmd:giftool$secondaryArchSuffix
lib:libgif$secondaryArchSuffix = 7.2.0 compat >= 7
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
giflib${secondaryArchSuffix}_devel = $portVersion compat >= 5
devel:libgif$secondaryArchSuffix = 7.2.0 compat >= 7
"
REQUIRES_devel="
giflib$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
make install PREFIX=$prefix BINDIR=$binDir MANDIR=$manDir \
INCDIR=$includeDir LIBDIR=$libDir
rm $libDir/libgif.a
prepareInstalledDevelLibs libgif
# devel package
packageEntries devel \
$developDir
}