wok annotate libgd/receipt @ rev 17324

Add e2tools
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 04 19:06:05 2014 +0100 (2014-11-04)
parents 74774ef92e6d
children 17e313b5b9c1
rev   line source
pascal@1675 1 # SliTaz package receipt.
pascal@1675 2
pascal@1675 3 PACKAGE="libgd"
pankso@16614 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"
pascal@15473 8 LICENSE="BSD"
pankso@16614 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@16617 10 WEB_SITE="http://libgd.bitbucket.org/"
pankso@16614 11 WGET_URL="hg|https://bitbucket.org/pierrejoye/gd-libgd"
pankso@16614 12 #WGET_URL="https://bitbucket.org/libgd/gd-libgd/downloads/$TARBALL"
pankso@16469 13 HOST_ARCH="i486 arm"
pankso@10404 14
pascal@16488 15 DEPENDS="zlib libpng libjpeg freetype expat fontconfig xorg-libX11 \
pankso@10404 16 xorg-libXau xorg-libXdmcp xorg-libXpm"
pankso@16521 17 BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev \
pascal@15647 18 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev automake libtool"
pascal@1675 19
pankso@16469 20 # Cross compilation use some build host tools
pankso@16469 21 case "$ARCH" in
pankso@16521 22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake wget" ;;
pankso@16521 23 arm) ARCH_ARGS="--with-jpeg=/cross/$ARCH/sysroot/usr/lib" ;;
pankso@16469 24 esac
pankso@16469 25
pascal@1675 26 # Rules to configure and make the package.
pascal@1675 27 compile_rules()
pascal@1675 28 {
pascal@12967 29 export LDFLAGS="-Wl,--copy-dt-needed-entries -lm"
pascal@10705 30 cmake . && make && make DESTDIR=$DESTDIR install || return 1
pankso@16469 31
pankso@16614 32 cd src
pankso@16614 33 ln -sf ../config ../test .
pankso@16614 34
pascal@10705 35 ./bootstrap.sh
pankso@16469 36 ./configure \
pankso@16469 37 --prefix=/usr \
pankso@16617 38 $CONFIGURE_ARGS
pankso@16617 39 make -C config gdlib-config
pascal@10705 40 cp config/gdlib-config $DESTDIR/usr/local/bin
pascal@10705 41 chmod +x $DESTDIR/usr/local/bin/gdlib-config
pascal@10705 42 cd ..
pascal@1675 43 }
pascal@1675 44
pascal@1675 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1675 46 genpkg_rules()
pascal@1675 47 {
pascal@1675 48 mkdir -p $fs/usr/lib
pascal@15473 49 cp -a $install/usr/local/bin $fs/usr
pascal@15473 50 cp -a $install/usr/local/lib/*.so* $fs/usr/lib
pascal@1675 51 }