wok view libgd/receipt @ rev 24611

updated libgd and libgd-dev (2.0.35 -> 2.3.3)
author Hans-G?nter Theisgen
date Fri Mar 04 09:32:37 2022 +0100 (2022-03-04)
parents ede1d184d5c5
children ad9008f821da
line source
1 # SliTaz package receipt.
3 PACKAGE="libgd"
4 VERSION="2.3.3"
5 CATEGORY="graphics"
6 SHORT_DESC="Library for the dynamic creation of images."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://libgd.github.io/"
10 REPOLOGY="gd"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/gd-$VERSION/$TARBALL"
15 HOST_ARCH="i486 arm"
17 DEPENDS="expat fontconfig freetype libjpeg libpng libxml2 xorg-libX11
18 xorg-libXau xorg-libXdmcp xorg-libXpm zlib"
19 BUILD_DEPENDS="expat-dev freetype-dev jpeg-dev libpng-dev libxml2-dev
20 tiff-dev xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev"
22 # Cross compilation use some build host tools
23 case "$ARCH" in
24 (arm) ARCH_ARGS="--with-jpeg=/cross/$ARCH/sysroot/usr/lib" ;;
25 esac
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - https://bitbucket.org/libgd/gd-libgd/downloads/ 2>/dev/null | \
31 sed '/libgd-/!d;/-rc/d;/-alpha/d;s|.*libgd-||;s|.tar.*||;q'
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
38 ./configure \
39 --prefix=/usr \
40 --enable-gd-formats \
41 $CONFIGURE_ARGS &&
42 make &&
43 make install DESTDIR=$DESTDIR
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cook_copy_folders bin
50 cook_copy_files *.so*
51 }