wok view libgd/receipt @ rev 15473
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 09 20:47:29 2013 +0000 (2013-11-09) |
parents | 16c18225789a |
children | 7b41ff9ba5dd |
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://www.libgd.org/"
11 WGET_URL="hg|https://bitbucket.org/pierrejoye/gd-libgd"
13 DEPENDS="zlib libpng jpeg freetype expat fontconfig xorg-libX11 \
14 xorg-libXau xorg-libXdmcp xorg-libXpm"
15 BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev cmake \
16 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 export LDFLAGS="-Wl,--copy-dt-needed-entries -lm"
23 cmake . && make && make DESTDIR=$DESTDIR install || return 1
24 cd src
25 ln -sf ../config ../test .
26 ./bootstrap.sh
27 ./configure --prefix=/usr --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS
30 make -C config gdlib-config
31 cp config/gdlib-config $DESTDIR/usr/local/bin
32 chmod +x $DESTDIR/usr/local/bin/gdlib-config
33 cd ..
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/local/bin $fs/usr
41 chmod +x $fs/usr/bin/gdlib-config
42 cp -a $install/usr/local/lib/*.so* $fs/usr/lib
43 }