wok-next view libgd/receipt @ rev 16747

Up: bluefish (2.2.5)
author Alexander Medvedev <devl547@gmail.com>
date Sat Jun 14 19:43:22 2014 +0000 (2014-06-14)
parents 74774ef92e6d
children 17e313b5b9c1
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 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://libgd.bitbucket.org/"
11 WGET_URL="hg|https://bitbucket.org/pierrejoye/gd-libgd"
12 #WGET_URL="https://bitbucket.org/libgd/gd-libgd/downloads/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="zlib libpng libjpeg freetype expat fontconfig xorg-libX11 \
16 xorg-libXau xorg-libXdmcp xorg-libXpm"
17 BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev \
18 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev automake libtool"
20 # Cross compilation use some build host tools
21 case "$ARCH" in
22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake wget" ;;
23 arm) ARCH_ARGS="--with-jpeg=/cross/$ARCH/sysroot/usr/lib" ;;
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export LDFLAGS="-Wl,--copy-dt-needed-entries -lm"
30 cmake . && make && make DESTDIR=$DESTDIR install || return 1
32 cd src
33 ln -sf ../config ../test .
35 ./bootstrap.sh
36 ./configure \
37 --prefix=/usr \
38 $CONFIGURE_ARGS
39 make -C config gdlib-config
40 cp config/gdlib-config $DESTDIR/usr/local/bin
41 chmod +x $DESTDIR/usr/local/bin/gdlib-config
42 cd ..
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
49 cp -a $install/usr/local/bin $fs/usr
50 cp -a $install/usr/local/lib/*.so* $fs/usr/lib
51 }