wok-current view libgd/receipt @ rev 14473

gstreamer: update deps+bdeps
author Dominique Corbex <domcox@slitaz.org>
date Thu May 02 22:34:01 2013 +0200 (2013-05-02)
parents 213f07bd7c77
children 8f447cf2eee5
line source
1 # SliTaz package receipt.
3 PACKAGE="libgd"
4 VERSION="2.0.35"
5 CATEGORY="graphics"
6 SHORT_DESC="Library for the dynamic creation of images."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.libgd.org/"
10 WGET_URL="hg|https://bitbucket.org/pierrejoye/gd-libgd"
12 DEPENDS="zlib libpng jpeg freetype expat fontconfig xorg-libX11 \
13 xorg-libXau xorg-libXdmcp xorg-libXpm"
14 BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev cmake \
15 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 export LDFLAGS="-Wl,--copy-dt-needed-entries -lm"
22 cmake . && make && make DESTDIR=$DESTDIR install || return 1
23 cd src
24 ln -sf ../config ../test .
25 ./bootstrap.sh
26 ./configure --prefix=/usr --infodir=/usr/share/info \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS
29 make -C config gdlib-config
30 cp config/gdlib-config $DESTDIR/usr/local/bin
31 chmod +x $DESTDIR/usr/local/bin/gdlib-config
32 cd ..
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $_pkg/usr/local/bin $fs/usr
40 chmod +x $fs/usr/bin/gdlib-config
41 cp -a $_pkg/usr/local/lib/*.so* $fs/usr/lib
42 }