wok-current view giflib/receipt @ rev 23409
updated perl-try-tiny (0.22 -> 0.30)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 01 07:04:07 2020 +0100 (2020-04-01) |
parents | 04df91c8ca0b |
children | 932cd974e081 |
line source
1 # SliTaz package receipt.
3 PACKAGE="giflib"
4 VERSION="5.2.1"
5 CATEGORY="graphics"
6 SHORT_DESC="A library for processing GIFs."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
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 patch -p0 < $stuff/restore-GifQuantizeBuffer.u
22 sed -i 's|/local||' Makefile
23 make && make DESTDIR=$DESTDIR install
24 case "$ARCH" in
25 i?86)
26 # libungif compatibility - instructions taken from Redhat specfile
27 MAJOR=`echo $VERSION | sed 's/\([0-9]\+\)\..*/\1/'`
28 gcc -shared -Wl,-soname,libungif.so.${MAJOR} \
29 -L. -lgif -o libungif.so.$VERSION
30 install -m755 libungif.so.${VERSION} "$DESTDIR/usr/lib/"
31 ln -sf libungif.so.${VERSION%%.*} "$DESTDIR/usr/lib/libungif.so" ;;
32 esac
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 }