wok-current view libgd/receipt @ rev 16469
Up and add to ARM: libgd fswebcam
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 22 03:43:21 2014 +0200 (2014-04-22) |
parents | 7b41ff9ba5dd |
children | 2ddd3a446a61 |
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 jpeg 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)
22 BUILD_DEPENDS="$BUILD_DEPENDS cmake wget" ;;
23 arm)
24 jpeg="/cross/$ARCH/sysroot/usr/lib" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export LDFLAGS="-Wl,--copy-dt-needed-entries -lm"
31 cmake . && make && make DESTDIR=$DESTDIR install || return 1
33 ./bootstrap.sh
34 ./configure \
35 --prefix=/usr \
36 --with-jpeg=${jpeg} \
37 $CONFIGURE_ARGS
38 make -C config gdlib-config
39 cp config/gdlib-config $DESTDIR/usr/local/bin
40 chmod +x $DESTDIR/usr/local/bin/gdlib-config
41 cd ..
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/local/bin $fs/usr
49 rm -f $fs/usr/bin/gdlib-config
50 cp -a $install/usr/local/lib/*.so* $fs/usr/lib
51 }