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