wok view libgd/receipt @ rev 16559
Up: slitaz-tools (with fixes to taz, slitaz-config)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 01 10:19:32 2014 +0200 (2014-05-01) |
parents | 970798b93831 |
children | a30c667a760b |
line source
1 # SliTaz package receipt.
3 PACKAGE="libgd"
4 VERSION="2.1.0"
5 CATEGORY="graphics"
6 SHORT_DESC="Library for the dynamic creation of images."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.libgd.org/"
11 WGET_URL="https://bitbucket.org/libgd/gd-libgd/downloads/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="zlib libpng libjpeg freetype expat fontconfig xorg-libX11 \
15 xorg-libXau xorg-libXdmcp xorg-libXpm"
16 BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev \
17 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev automake libtool"
19 # Cross compilation use some build host tools
20 case "$ARCH" in
21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake wget" ;;
22 arm) ARCH_ARGS="--with-jpeg=/cross/$ARCH/sysroot/usr/lib" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="-Wl,--copy-dt-needed-entries -lm"
29 cmake . && make && make DESTDIR=$DESTDIR install || return 1
31 ./bootstrap.sh
32 ./configure \
33 --prefix=/usr \
34 $CONFIGURE_ARGS
35 make -C config gdlib-config
36 cp config/gdlib-config $DESTDIR/usr/local/bin
37 chmod +x $DESTDIR/usr/local/bin/gdlib-config
38 cd ..
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/local/bin $fs/usr
46 rm -f $fs/usr/bin/gdlib-config
47 cp -a $install/usr/local/lib/*.so* $fs/usr/lib
48 }