wok annotate xpaint/receipt @ rev 16481

xpaint: clean up packaged files
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 23 03:43:46 2014 +0200 (2014-04-23)
parents fb6d54ed7503
children 0e0595f9d60c
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@16479 21 case "$ARCH" in
pankso@16480 22 i?86) LIBTOOL=libtool ;;
pankso@16479 23 arm) LIBTOOL=${HOST_SYSTEM}-libtool ;;
pankso@16479 24 esac
pankso@16478 25 ./configure $CONFIGURE_ARGS &&
pankso@16478 26 # Fix cross compilation
pankso@16478 27 sed -i s'/$(CC) substads.c/gcc substads.c/' Makefile &&
pankso@16478 28 sed -i s'/$(CC) preproc.c/gcc preproc.c/' Makefile &&
pankso@16479 29 make -j 1 LIBTOOL=${LIBTOOL} && make install
pascal@13915 30 }
pascal@13915 31
pascal@13915 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13915 33 genpkg_rules()
pascal@13915 34 {
pankso@16481 35 mkdir -p $fs/usr/share/pixmaps
pankso@16481 36 cp -a $install/* $fs/
pankso@16481 37 rm -f $fs/usr/lib/*.*a
pankso@16481 38 rm -r $fs/usr/share/xpaint/include
pankso@16481 39 cp $stuff/xpaint.xpm $fs/usr/share/pixmaps
pascal@13915 40 }