wok-4.x view libgd/receipt @ rev 11730

tintin: don't use extension in desktop files
author Samuel Trassare <samuel_trassare@yahoo.com>
date Tue Feb 21 09:02:38 2012 -0800 (2012-02-21)
parents a13c13eae41c
children
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.libgd.org/"
10 WGET_URL="hg|https://bitbucket.org/pierrejoye/gd-libgd"
12 DEPENDS="zlib libpng jpeg freetype expat fontconfig xorg-libX11 \
13 xorg-libXau xorg-libXdmcp xorg-libXpm"
14 BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev cmake \
15 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 cmake . && make && make DESTDIR=$DESTDIR install || return 1
22 cd src
23 ln -sf ../config ../test .
24 ./bootstrap.sh
25 ./configure --prefix=/usr --infodir=/usr/share/info \
26 --mandir=/usr/share/man \
27 $CONFIGURE_ARGS
28 make -C config gdlib-config
29 cp config/gdlib-config $DESTDIR/usr/local/bin
30 chmod +x $DESTDIR/usr/local/bin/gdlib-config
31 cd ..
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $_pkg/usr/local/bin $fs/usr
39 chmod +x $fs/usr/bin/gdlib-config
40 cp -a $_pkg/usr/local/lib/*.so* $fs/usr/lib
41 }