wok-current view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="xpaint"
4 VERSION="2.9.10.2"
5 CATEGORY="graphics"
6 SHORT_DESC="Simple paint program for X"
7 MAINTAINER="mojo@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://sf-xpaint.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$SF_MIRROR/sf-$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="openjpeg libXaw3dXft xorg-libXaw3d"
15 BUILD_DEPENDS="openjpeg-dev libXaw3dXft-dev libpng-dev jpeg-dev tiff-dev \
16 expat-dev libxml2-dev util-linux-uuid-dev xorg-libXaw3d-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 [ "$ARCH" == "i486" ] && LIBTOOL=libtool
22 ./configure $CONFIGURE_ARGS &&
23 # Fix cross compilation
24 sed -i s'/$(CC) substads.c/gcc substads.c/' Makefile &&
25 sed -i s'/$(CC) preproc.c/gcc preproc.c/' Makefile &&
26 make -j 1 LIBTOOL=${HOST_SYSTEM}-libtool && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/* $fs
33 rm -r $fs/usr/share/xpaint/include
34 mkdir -p $fs/usr/lib
35 mkdir -p $fs/usr/share/pixmaps
36 cp $stuff/xpaint.xpm $fs/usr/share/pixmaps
37 }