wok-6.x view giflib/receipt @ rev 21290
updated libsdl-image and libsdl-image-dev (1.2.10 -> 1.2.12)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 16 17:32:45 2019 +0100 (2019-04-16) |
parents | af8a8f177c6c |
children | 04df91c8ca0b |
line source
1 # SliTaz package receipt.
3 PACKAGE="giflib"
4 VERSION="4.1.6" # 17 broken packages after update
5 CATEGORY="graphics"
6 SHORT_DESC="A library for processing GIFs."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://sourceforge.net/projects/giflib/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glibc-base xorg-libSM xorg-libICE xorg-libX11 xorg-libXau \
15 xorg-libXdmcp"
16 BUILD_DEPENDS="util-linux-uuid-dev libtool"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # http://anonscm.debian.org/cgit/collab-maint/giflib.git/tree/debian/patches/01-cve.patch?h=debian
22 {
23 cat <<EOT
24 @@ -251,0 +252,2 @@
25 + FreeMapObject(GifFile->SColorMap);
26 + GifFile->SColorMap = NULL;
27 @@ -348,0 +351,2 @@
28 + FreeMapObject(GifFile->Image.ColorMap);
29 + GifFile->Image.ColorMap = NULL;
30 @@ -992,0 +997,4 @@
31 + if (Buf[0] == 0) {
32 + _GifError = D_GIF_ERR_IMAGE_DEFECT;
33 + return GIF_ERROR;
34 + }
35 EOT
36 } | patch lib/dgif_lib.c
38 sed -i '/AC_PATH_XTRA/d' configure.ac
39 libtoolize -f
40 autoreconf
41 ./configure \
42 $CONFIGURE_ARGS &&
43 make && make DESTDIR=$DESTDIR install
44 case "$ARCH" in
45 i?86)
46 # libungif compatibility - instructions taken from Redhat specfile
47 MAJOR=`echo $VERSION | sed 's/\([0-9]\+\)\..*/\1/'`
48 gcc -shared -Wl,-soname,libungif.so.${MAJOR} \
49 -Llib/.libs -lgif -o libungif.so.$VERSION
50 install -m755 libungif.so.${VERSION} "$DESTDIR/usr/lib/"
51 ln -sf libungif.so.$VERSION "$DESTDIR/usr/lib/libungif.so.4"
52 ln -sf libungif.so.4 "$DESTDIR/usr/lib/libungif.so" ;;
53 esac
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr
60 cp -a $install/usr/bin $fs/usr
61 mkdir -p $fs/usr/lib
62 cp -a $install/usr/lib/*.so* $fs/usr/lib
63 }