mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
Updated giflib to 5.0.5
This commit is contained in:
71
media-libs/giflib/giflib-5.0.5.recipe
Normal file
71
media-libs/giflib/giflib-5.0.5.recipe
Normal file
@@ -0,0 +1,71 @@
|
||||
DESCRIPTION="giflib - A library for processing GIFs"
|
||||
SUMMARY="giflib - A library for processing GIFs"
|
||||
HOMEPAGE="http://sourceforge.net/projects/giflib/"
|
||||
SRC_URI="http://sourceforge.net/projects/giflib/files/giflib-5.x/giflib-5.0.5.tar.bz2/download"
|
||||
CHECKSUM_MD5="c3262ba0a3dad31ba876fb5ba1d71a02"
|
||||
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 = 6.0.1 compat >= 5
|
||||
cmd:gif2raw
|
||||
cmd:gif2rgb
|
||||
cmd:gifbuild
|
||||
cmd:gifclrmp
|
||||
cmd:gifecho
|
||||
cmd:giffix
|
||||
cmd:gifinto
|
||||
cmd:giftext
|
||||
cmd:giftool
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtool
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PATCHES="giflib-5.0.5.patch"
|
||||
|
||||
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 = 6.0.1 compat >= 6
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
giflib$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
20
media-libs/giflib/patches/giflib-5.0.5.patch
Normal file
20
media-libs/giflib/patches/giflib-5.0.5.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
diff --git a/util/gifinto.c b/util/gifinto.c
|
||||
index 911c793..e89388d 100644
|
||||
--- a/util/gifinto.c
|
||||
+++ b/util/gifinto.c
|
||||
@@ -49,6 +49,7 @@ static int
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int NumFiles;
|
||||
+ int FD;
|
||||
bool Error, MinSizeFlag = false, HelpFlag = false;
|
||||
char **FileName = NULL, FoutTmpName[STRLEN], FullPath[STRLEN], *p;
|
||||
FILE *Fin, *Fout;
|
||||
@@ -104,7 +105,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;
|
||||
FD = mkstemp(FoutTmpName); /* returns filedescriptor */
|
||||
if (FD == -1 )
|
||||
{
|
||||
Reference in New Issue
Block a user