wok-current view giflib/receipt @ rev 24526

updated exempi and exempi-dev (2.5.1 -> 2.6.1)
author Hans-G?nter Theisgen
date Tue Feb 22 17:39:50 2022 +0100 (2022-02-22)
parents a3b001408630
children ad0bc3efbf37
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/giflib/files/ 2>/dev/null | \
22 sed '/scope="row/!d;/tar.gz/!d;s|.*/giflib-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 patch -p0 < $stuff/restore-GifQuantizeBuffer.u
29 sed -i 's|/local||' Makefile
30 make && make DESTDIR=$DESTDIR install
31 case "$ARCH" in
32 i?86)
33 # libungif compatibility - instructions taken from Redhat specfile
34 MAJOR=`echo $VERSION | sed 's/\([0-9]\+\)\..*/\1/'`
35 gcc -shared -Wl,-soname,libungif.so.${MAJOR} \
36 -L. -lgif -o libungif.so.$VERSION
37 install -m755 libungif.so.${VERSION} "$DESTDIR/usr/lib/"
38 ln -sf libungif.so.${VERSION%%.*} "$DESTDIR/usr/lib/libungif.so" ;;
39 esac
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 cp -a $install/usr/bin $fs/usr
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 }