wok-current view xpaint/receipt @ rev 17002
linux-cloop, cloop-utils: add cloop_suspend & create_compressed_fs_fast
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 12 09:06:13 2014 +0200 (2014-08-12) |
parents | 82b741ae28f0 |
children | 44a17a1f5aaf |
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"
15 BUILD_DEPENDS="openjpeg-dev libXaw3dXft-dev libpng-dev jpeg-dev \
16 expat-dev libxml2-dev util-linux-uuid-dev tiff-dev libtool"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 case "$ARCH" in
22 i?86) LIBTOOL=libtool ;;
23 arm) LIBTOOL=${HOST_SYSTEM}-libtool ;;
24 esac
25 ./configure --enable-tiff=no $CONFIGURE_ARGS &&
26 # Fix cross compilation
27 sed -i s'/$(CC) substads.c/gcc substads.c/' Makefile &&
28 sed -i s'/$(CC) preproc.c/gcc preproc.c/' Makefile &&
29 make -j 1 LIBTOOL=${LIBTOOL} && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 cp -a $install/usr/share/xpaint $fs/usr/share
39 rm -r $fs/usr/share/xpaint/include
40 rm -r $fs/usr/share/xpaint/c-scripts
41 cp $stuff/xpaint.xpm $fs/usr/share/pixmaps
42 }