wok-current annotate libgd/receipt @ rev 21823

Add lxsession-lxpolkit (thanks Saipul)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 25 19:23:22 2019 +0200 (2019-08-25)
parents 5446046a1c29
children ede1d184d5c5
rev   line source
pascal@1675 1 # SliTaz package receipt.
pascal@1675 2
pascal@1675 3 PACKAGE="libgd"
pankso@16614 4 VERSION="2.0.35"
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"
pankso@16614 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@16617 10 WEB_SITE="http://libgd.bitbucket.org/"
pankso@16614 11 WGET_URL="hg|https://bitbucket.org/pierrejoye/gd-libgd"
pankso@16614 12 #WGET_URL="https://bitbucket.org/libgd/gd-libgd/downloads/$TARBALL"
pankso@16469 13 HOST_ARCH="i486 arm"
pankso@10404 14
pascal@16488 15 DEPENDS="zlib libpng libjpeg freetype expat fontconfig xorg-libX11 \
pankso@10404 16 xorg-libXau xorg-libXdmcp xorg-libXpm"
pascal@19803 17 BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev tiff-dev \
pascal@15647 18 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev automake libtool"
pascal@1675 19
pankso@16469 20 # Cross compilation use some build host tools
pankso@16469 21 case "$ARCH" in
pankso@16521 22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake wget" ;;
pankso@16521 23 arm) ARCH_ARGS="--with-jpeg=/cross/$ARCH/sysroot/usr/lib" ;;
pankso@16469 24 esac
pankso@16469 25
pascal@1675 26 # Rules to configure and make the package.
pascal@1675 27 compile_rules()
pascal@1675 28 {
pascal@17670 29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
pascal@10705 30 cmake . && make && make DESTDIR=$DESTDIR install || return 1
pankso@16469 31
pankso@16614 32 cd src
pascal@18443 33 cp -a ../config ../test .
pankso@16614 34
pascal@10705 35 ./bootstrap.sh
pankso@16469 36 ./configure \
pankso@16469 37 --prefix=/usr \
pankso@16617 38 $CONFIGURE_ARGS
pankso@16617 39 make -C config gdlib-config
pascal@10705 40 cp config/gdlib-config $DESTDIR/usr/local/bin
pascal@10705 41 chmod +x $DESTDIR/usr/local/bin/gdlib-config
pascal@10705 42 cd ..
pascal@1675 43 }
pascal@1675 44
pascal@1675 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1675 46 genpkg_rules()
pascal@1675 47 {
pascal@1675 48 mkdir -p $fs/usr/lib
pascal@15473 49 cp -a $install/usr/local/bin $fs/usr
pascal@15473 50 cp -a $install/usr/local/lib/*.so* $fs/usr/lib
pascal@1675 51 }