wok-current view libgd/receipt @ rev 25124
updated apache-mod-perl (2.0.8 -> 2.0.11)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 28 16:23:55 2022 +0100 (2022-06-28) |
parents | 1a24a6d0a088 |
children | 5926178cd6fa |
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://github.com/libgd/libgd/tags 2>/dev/null | \
31 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;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 }