wok view giflib/receipt @ rev 17734
dahdi-linux: save firmware as source
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 11:23:56 2015 +0100 (2015-03-06) |
parents | 9be2dfe2fe72 |
children | 7f076d44fd51 |
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 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://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 sed -i '/AC_PATH_XTRA/d' configure.ac
22 libtoolize -f
23 autoreconf
24 ./configure \
25 $CONFIGURE_ARGS &&
26 make && make DESTDIR=$DESTDIR install
27 case "$ARCH" in
28 i?86)
29 # libungif compatibility - instructions taken from Redhat specfile
30 MAJOR=`echo $VERSION | sed 's/\([0-9]\+\)\..*/\1/'`
31 gcc -shared -Wl,-soname,libungif.so.${MAJOR} \
32 -Llib/.libs -lgif -o libungif.so.$VERSION
33 install -m755 libungif.so.${VERSION} "$DESTDIR/usr/lib/"
34 ln -sf libungif.so.$VERSION "$DESTDIR/usr/lib/libungif.so.4"
35 ln -sf libungif.so.4 "$DESTDIR/usr/lib/libungif.so" ;;
36 esac
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 }