wok annotate libgd/receipt @ rev 25808

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