wok view libgd/receipt @ rev 24541
kfilemetadata: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 17:37:38 2022 +0000 (2022-02-23) |
parents | 9ff2f1357917 |
children | 1a24a6d0a088 |
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 # What is the latest version available today?
27 current_version()
28 {
29 wget -O - https://bitbucket.org/libgd/gd-libgd/downloads/ 2>/dev/null | \
30 sed '/libgd-/!d;/-rc/d;/-alpha/d;s|.*libgd-||;s|.tar.*||;q'
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
37 cmake . && make && make DESTDIR=$DESTDIR install || return 1
39 cd src
40 cp -a ../config ../test .
42 ./bootstrap.sh
43 ./configure \
44 --prefix=/usr \
45 $CONFIGURE_ARGS
46 make -C config gdlib-config
47 cp config/gdlib-config $DESTDIR/usr/local/bin
48 chmod +x $DESTDIR/usr/local/bin/gdlib-config
49 cd ..
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/lib
56 cp -a $install/usr/local/bin $fs/usr
57 cp -a $install/usr/local/lib/*.so* $fs/usr/lib
58 }