wok-current annotate libgd/receipt @ rev 13574

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