giflib: added a recipe for version 5.1.0

This commit is contained in:
Jerome Duval
2014-06-10 16:51:23 +00:00
parent f93d1ba8ae
commit ce8cdd9642
2 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
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. :-)
"
SUMMARY="giflib - A library for processing GIFs"
HOMEPAGE="http://sourceforge.net/projects/giflib/"
SRC_URI="http://sourceforge.net/projects/giflib/files/giflib-$portVersion.tar.bz2"
CHECKSUM_SHA256="5aec694f1c68132e6af499a621996b5a1fc219f4bbe19ab2ba972b3f95188d1b"
LICENSE="MIT"
COPYRIGHT="1997-2007 Eric S. Raymond and Toshio Kuratomi"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
giflib$secondaryArchSuffix = $portVersion
lib:libgif$secondaryArchSuffix = 7.0.0 compat >= 7
cmd:gif2raw$secondaryArchSuffix
cmd:gif2rgb$secondaryArchSuffix
cmd:gifbuild$secondaryArchSuffix
cmd:gifclrmp$secondaryArchSuffix
cmd:gifecho$secondaryArchSuffix
cmd:giffix$secondaryArchSuffix
cmd:gifinto$secondaryArchSuffix
cmd:giftext$secondaryArchSuffix
cmd:giftool$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:aclocal
cmd:autoconf
cmd:make
"
PATCHES="giflib-5.1.0.patchset"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libgif
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
PROVIDES_devel="
giflib${secondaryArchSuffix}_devel = $portVersion compat >= 5
devel:libgif$secondaryArchSuffix = 7.0.0 compat >= 7
"
REQUIRES_devel="
giflib$secondaryArchSuffix == $portVersion base
"

View File

@@ -0,0 +1,29 @@
From 1f7529dc2a255afb5d1ece8719761a13901751dd Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 10 Jun 2014 16:43:15 +0000
Subject: gcc2 patch
diff --git a/util/gifinto.c b/util/gifinto.c
index 1553dec..31d3548 100644
--- a/util/gifinto.c
+++ b/util/gifinto.c
@@ -70,6 +70,7 @@ mkstemp(char *tpl)
******************************************************************************/
int main(int argc, char **argv)
{
+ int FD;
int NumFiles;
bool Error, MinSizeFlag = false, HelpFlag = false;
char **FileName = NULL, FoutTmpName[STRLEN], FullPath[STRLEN], *p;
@@ -126,7 +127,6 @@ int main(int argc, char **argv)
/* then add a name for the tempfile */
if ( (strlen(FoutTmpName) + strlen(DEFAULT_TMP_NAME)) > STRLEN-1 ) GIF_EXIT("Filename too long.");
strcat(FoutTmpName, DEFAULT_TMP_NAME);
- int FD;
#ifdef _WIN32
char *tmpFN = _mktemp(FoutTmpName);
if (tmpFN)
--
1.8.3.4