wok-next annotate libgd/receipt @ rev 20128

Up celestia (1.6.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 31 11:58:18 2017 +0100 (2017-10-31)
parents daa754d4b004
children 46e497b9cae2
rev   line source
pascal@1675 1 # SliTaz package receipt.
pascal@1675 2
pascal@1675 3 PACKAGE="libgd"
al@19678 4 VERSION="2.2.4"
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"
al@19678 9 WEB_SITE="https://www.libgd.org/"
pankso@16469 10 HOST_ARCH="i486 arm"
pankso@10404 11
al@19678 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19678 13 WGET_URL="$GITHUB/libgd/libgd/tarball/gd-$VERSION"
al@19678 14
pascal@16488 15 DEPENDS="zlib libpng libjpeg freetype expat fontconfig xorg-libX11 \
pankso@10404 16 xorg-libXau xorg-libXdmcp xorg-libXpm"
pankso@16521 17 BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev \
al@19678 18 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev automake libtool gettext \
al@19678 19 fontconfig-dev"
pascal@1675 20
pankso@16469 21 # Cross compilation use some build host tools
pankso@16469 22 case "$ARCH" in
al@19678 23 i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake" ;;
pankso@16521 24 arm) ARCH_ARGS="--with-jpeg=/cross/$ARCH/sysroot/usr/lib" ;;
pankso@16469 25 esac
pankso@16469 26
pascal@1675 27 # Rules to configure and make the package.
pascal@1675 28 compile_rules()
pascal@1675 29 {
al@19678 30 ./bootstrap.sh &&
pankso@16469 31 ./configure \
pankso@16469 32 --prefix=/usr \
al@19678 33 $CONFIGURE_ARGS &&
al@19678 34 make && make install
pascal@1675 35 }
pascal@1675 36
pascal@1675 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1675 38 genpkg_rules()
pascal@1675 39 {
al@19783 40 copy bin/ *.so*
al@19678 41 # split
al@19678 42 rm $fs/usr/bin/gdlib-config
pascal@1675 43 }