wok view libgd/receipt @ rev 21975

updated st (0.5 -> 0.8.2)
author Hans-G?nter Theisgen
date Fri Oct 11 14:31:25 2019 +0100 (2019-10-11)
parents 5446046a1c29
children ede1d184d5c5
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 tiff-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="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
30 cmake . && make && make DESTDIR=$DESTDIR install || return 1
32 cd src
33 cp -a ../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 }