wok-current diff giflib/receipt @ rev 22483

updated antinat and antinat-dev (0.90 -> 0.91)
author Hans-G?nter Theisgen
date Mon Dec 30 16:44:40 2019 +0100 (2019-12-30)
parents 86790a278e70
children a3b001408630
line diff
     1.1 --- a/giflib/receipt	Tue Aug 07 23:03:21 2018 +0200
     1.2 +++ b/giflib/receipt	Mon Dec 30 16:44:40 2019 +0100
     1.3 @@ -1,12 +1,12 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="giflib"
     1.7 -VERSION="4.1.6" # 17 broken packages after update 
     1.8 +VERSION="5.2.1"
     1.9  CATEGORY="graphics"
    1.10  SHORT_DESC="A library for processing GIFs."
    1.11  MAINTAINER="rcx@zoominternet.net"
    1.12  LICENSE="MIT"
    1.13 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15  WEB_SITE="https://sourceforge.net/projects/giflib/"
    1.16  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.17  HOST_ARCH="i486 arm"
    1.18 @@ -18,38 +18,16 @@
    1.19  # Rules to configure and make the package.
    1.20  compile_rules()
    1.21  {
    1.22 -	# http://anonscm.debian.org/cgit/collab-maint/giflib.git/tree/debian/patches/01-cve.patch?h=debian
    1.23 -	{
    1.24 -	cat <<EOT
    1.25 -@@ -251,0 +252,2 @@
    1.26 -+		FreeMapObject(GifFile->SColorMap);
    1.27 -+                GifFile->SColorMap = NULL;
    1.28 -@@ -348,0 +351,2 @@
    1.29 -+		FreeMapObject(GifFile->Image.ColorMap);
    1.30 -+                GifFile->Image.ColorMap = NULL;
    1.31 -@@ -992,0 +997,4 @@
    1.32 -+        if (Buf[0] == 0) {
    1.33 -+            _GifError = D_GIF_ERR_IMAGE_DEFECT;
    1.34 -+            return GIF_ERROR;
    1.35 -+        }
    1.36 -EOT
    1.37 -	} | patch lib/dgif_lib.c
    1.38 -
    1.39 -	sed -i '/AC_PATH_XTRA/d' configure.ac
    1.40 -	libtoolize -f
    1.41 -	autoreconf
    1.42 -	./configure \
    1.43 -		$CONFIGURE_ARGS &&
    1.44 +	sed -i 's|/local||' Makefile
    1.45  	make && make DESTDIR=$DESTDIR install
    1.46  	case "$ARCH" in
    1.47  		i?86)
    1.48  			# libungif compatibility - instructions taken from Redhat specfile
    1.49  			MAJOR=`echo $VERSION | sed 's/\([0-9]\+\)\..*/\1/'`
    1.50  			gcc -shared -Wl,-soname,libungif.so.${MAJOR} \
    1.51 -				-Llib/.libs -lgif -o libungif.so.$VERSION
    1.52 +				-L. -lgif -o libungif.so.$VERSION
    1.53  			install -m755 libungif.so.${VERSION} "$DESTDIR/usr/lib/"
    1.54 -			ln -sf libungif.so.$VERSION "$DESTDIR/usr/lib/libungif.so.4"
    1.55 -			ln -sf libungif.so.4 "$DESTDIR/usr/lib/libungif.so" ;;
    1.56 +			ln -sf libungif.so.${VERSION%%.*} "$DESTDIR/usr/lib/libungif.so" ;;
    1.57  	esac
    1.58  }
    1.59  
    1.60 @@ -61,4 +39,3 @@
    1.61  	mkdir -p $fs/usr/lib
    1.62  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.63  }
    1.64 -