wok annotate giflib/receipt @ rev 15034

sarg: no more /var ?
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 12 12:23:39 2013 +0000 (2013-08-12)
parents 73641efed1cc
children de49f29b101e
rev   line source
rcx@3183 1 # SliTaz package receipt.
rcx@3183 2
rcx@3183 3 PACKAGE="giflib"
rcx@3183 4 VERSION="4.1.6"
rcx@3184 5 CATEGORY="graphics"
rcx@3183 6 SHORT_DESC="A library for processing GIFs."
rcx@3183 7 MAINTAINER="rcx@zoominternet.net"
jozee@5110 8 DEPENDS="glibc-base xorg-libSM xorg-libICE xorg-libX11 xorg-libXau \
pascal@5001 9 xorg-libXdmcp"
pascal@12662 10 BUILD_DEPENDS="util-linux-uuid-dev libtool"
rcx@3183 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
rcx@3183 12 WEB_SITE="http://sourceforge.net/projects/giflib/"
rcx@3183 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
rcx@3183 14
rcx@3183 15 # Rules to configure and make the package.
rcx@3183 16 compile_rules()
rcx@3183 17 {
rcx@3183 18 cd $src
slaxemulator@11721 19 sed -i '/AC_PATH_XTRA/d' configure.ac
slaxemulator@11721 20 libtoolize -f
slaxemulator@11721 21 autoreconf
rcx@3183 22 ./configure \
rcx@3183 23 $CONFIGURE_ARGS &&
slaxemulator@11721 24 make && make DESTDIR=$DESTDIR install
slaxemulator@11721 25 # libungif compatibility - instructions taken from Redhat specfile
slaxemulator@11721 26 MAJOR=`echo $VERSION | sed 's/\([0-9]\+\)\..*/\1/'`
slaxemulator@11721 27 gcc -shared -Wl,-soname,libungif.so.${MAJOR} -Llib/.libs -lgif -o libungif.so.$VERSION
slaxemulator@11721 28 install -m755 libungif.so.${VERSION} "$DESTDIR/usr/lib/"
slaxemulator@11721 29 ln -sf libungif.so.$VERSIN "$DESTDIR/usr/lib/libungif.so.4"
slaxemulator@11721 30 ln -sf libungif.so.4 "$DESTDIR/usr/lib/libungif.so"
rcx@3183 31 }
rcx@3183 32
rcx@3183 33 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3183 34 genpkg_rules()
rcx@3183 35 {
rcx@3183 36 mkdir -p $fs/usr
rcx@3183 37 cp -a $_pkg/usr/bin $fs/usr
rcx@3183 38 mkdir -p $fs/usr/lib
rcx@3183 39 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
rcx@3183 40 }
rcx@3183 41