wok annotate libgd/receipt @ rev 16556
Up: spk (1.4.2) - Critical bug fix for config files
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 30 14:37:37 2014 +0200 (2014-04-30) |
parents | 970798b93831 |
children | a30c667a760b |
rev | line source |
---|---|
pascal@1675 | 1 # SliTaz package receipt. |
pascal@1675 | 2 |
pascal@1675 | 3 PACKAGE="libgd" |
pankso@16469 | 4 VERSION="2.1.0" |
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" |
pascal@15473 | 8 LICENSE="BSD" |
pankso@16469 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@1675 | 10 WEB_SITE="http://www.libgd.org/" |
pankso@16469 | 11 WGET_URL="https://bitbucket.org/libgd/gd-libgd/downloads/$TARBALL" |
pankso@16469 | 12 HOST_ARCH="i486 arm" |
pankso@10404 | 13 |
pascal@16488 | 14 DEPENDS="zlib libpng libjpeg freetype expat fontconfig xorg-libX11 \ |
pankso@10404 | 15 xorg-libXau xorg-libXdmcp xorg-libXpm" |
pankso@16521 | 16 BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev \ |
pascal@15647 | 17 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev automake libtool" |
pascal@1675 | 18 |
pankso@16469 | 19 # Cross compilation use some build host tools |
pankso@16469 | 20 case "$ARCH" in |
pankso@16521 | 21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake wget" ;; |
pankso@16521 | 22 arm) ARCH_ARGS="--with-jpeg=/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16469 | 23 esac |
pankso@16469 | 24 |
pascal@1675 | 25 # Rules to configure and make the package. |
pascal@1675 | 26 compile_rules() |
pascal@1675 | 27 { |
pascal@12967 | 28 export LDFLAGS="-Wl,--copy-dt-needed-entries -lm" |
pascal@10705 | 29 cmake . && make && make DESTDIR=$DESTDIR install || return 1 |
pankso@16469 | 30 |
pascal@10705 | 31 ./bootstrap.sh |
pankso@16469 | 32 ./configure \ |
pankso@16469 | 33 --prefix=/usr \ |
pascal@10705 | 34 $CONFIGURE_ARGS |
pascal@10705 | 35 make -C config gdlib-config |
pascal@10705 | 36 cp config/gdlib-config $DESTDIR/usr/local/bin |
pascal@10705 | 37 chmod +x $DESTDIR/usr/local/bin/gdlib-config |
pascal@10705 | 38 cd .. |
pascal@1675 | 39 } |
pascal@1675 | 40 |
pascal@1675 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1675 | 42 genpkg_rules() |
pascal@1675 | 43 { |
pascal@1675 | 44 mkdir -p $fs/usr/lib |
pascal@15473 | 45 cp -a $install/usr/local/bin $fs/usr |
pankso@16469 | 46 rm -f $fs/usr/bin/gdlib-config |
pascal@15473 | 47 cp -a $install/usr/local/lib/*.so* $fs/usr/lib |
pascal@1675 | 48 } |