# SliTaz package receipt. PACKAGE="libgd" VERSION="2.0.35" CATEGORY="graphics" SHORT_DESC="Library for the dynamic creation of images." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.libgd.org/" WGET_URL="hg|https://bitbucket.org/pierrejoye/gd-libgd" DEPENDS="zlib libpng jpeg freetype expat fontconfig xorg-libX11 \ xorg-libXau xorg-libXdmcp xorg-libXpm" BUILD_DEPENDS="libpng-dev jpeg-dev expat-dev freetype-dev cmake \ xorg-libXau-dev xorg-libXdmcp-dev xorg-libXpm-dev" # Rules to configure and make the package. compile_rules() { cd $src cmake . && make && make DESTDIR=$DESTDIR install || return 1 cd src ln -sf ../config ../test . ./bootstrap.sh ./configure --prefix=/usr --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS make -C config gdlib-config cp config/gdlib-config $DESTDIR/usr/local/bin chmod +x $DESTDIR/usr/local/bin/gdlib-config cd .. } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $_pkg/usr/local/bin $fs/usr chmod +x $fs/usr/bin/gdlib-config cp -a $_pkg/usr/local/lib/*.so* $fs/usr/lib }