wok annotate xpaint/receipt @ rev 16478

Up xpaint + libXaw3dXft and add to ARM (would be nice to have a small paint tool in next R-Pi release
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 23 01:56:24 2014 +0200 (2014-04-23)
parents e05a30fbddf6
children f2cae20278f1
rev   line source
pascal@13915 1 # SliTaz package receipt.
pascal@13915 2
pascal@13915 3 PACKAGE="xpaint"
pankso@16478 4 VERSION="2.9.10.2"
pascal@13915 5 CATEGORY="graphics"
pascal@13915 6 SHORT_DESC="Simple paint program for X"
pascal@13915 7 MAINTAINER="mojo@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
pankso@16478 9 WEB_SITE="http://sf-xpaint.sourceforge.net/"
pascal@13915 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@13915 11 WGET_URL="$SF_MIRROR/sf-$PACKAGE/$TARBALL"
pankso@16478 12 HOST_ARCH="i486 arm"
pascal@13915 13
pankso@16478 14 DEPENDS="openjpeg libXaw3dXft xorg-libXaw3d"
pascal@13917 15 BUILD_DEPENDS="openjpeg-dev libXaw3dXft-dev libpng-dev jpeg-dev tiff-dev \
pankso@16478 16 expat-dev libxml2-dev util-linux-uuid-dev xorg-libXaw3d-dev"
pascal@13915 17
pascal@13915 18 # Rules to configure and make the package.
pascal@13915 19 compile_rules()
pascal@13915 20 {
pankso@16478 21 [ "$ARCH" == "i486" ] && LIBTOOL=libtool
pankso@16478 22 ./configure $CONFIGURE_ARGS &&
pankso@16478 23 # Fix cross compilation
pankso@16478 24 sed -i s'/$(CC) substads.c/gcc substads.c/' Makefile &&
pankso@16478 25 sed -i s'/$(CC) preproc.c/gcc preproc.c/' Makefile &&
pankso@16478 26 make -j 1 LIBTOOL=${HOST_SYSTEM}-libtool && make install
pascal@13915 27 }
pascal@13915 28
pascal@13915 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13915 30 genpkg_rules()
pascal@13915 31 {
pascal@13915 32 cp -a $install/* $fs
pascal@13915 33 rm -r $fs/usr/share/xpaint/include
pascal@13915 34 mkdir -p $fs/usr/lib
pascal@13915 35 mkdir -p $fs/usr/share/pixmaps
pascal@13915 36 cp $stuff/xpaint.xpm $fs/usr/share/pixmaps
pascal@13915 37 }