wok view giflib/receipt @ rev 14460

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