wok view imlib/receipt @ rev 22362

imlib: giflib >= 5 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 21 14:29:57 2019 +0100 (2 months ago)
parents af8a8f177c6c
children b753ca9ee288
line source
1 # SliTaz package receipt.
3 PACKAGE="imlib"
4 VERSION="1.9.15"
5 CATEGORY="graphics"
6 SHORT_DESC="An advanced replacement imaging library for libraries like libXpm."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://freshmeat.net/projects/imlib/"
11 WGET_URL="ftp://ftp.gnome.org/pub/GNOME/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="glibc-base xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext giflib jpeg libpng tiff zlib util-linux-uuid"
14 BUILD_DEPENDS="slitaz-toolchain xorg-dev xorg-xextproto giflib giflib-dev jpeg jpeg-dev libpng libpng-dev tiff tiff-dev zlib zlib-dev util-linux-uuid-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # Update for giflib >= 5 api
20 sed -i 's|DGifOpenFileHandle(fd|&,NULL|' */*.c
21 sed -i 's|DGifCloseFile(gif|&,NULL|' */*.c
23 ./configure \
24 --prefix=/usr \
25 --sysconfdir=/etc \
26 --infodir=/usr/share/info \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS &&
29 make && make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 mkdir -p $fs/etc
40 cp -a $install/etc $fs
41 }