wok-6.x annotate xpaint/receipt @ rev 16479
xpain: fix libtool
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 23 03:20:26 2014 +0200 (2014-04-23) |
parents | 1170c748b1ab |
children | fb6d54ed7503 |
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@16479 | 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 { |
pascal@13915 | 35 cp -a $install/* $fs |
pascal@13915 | 36 rm -r $fs/usr/share/xpaint/include |
pascal@13915 | 37 mkdir -p $fs/usr/lib |
pascal@13915 | 38 mkdir -p $fs/usr/share/pixmaps |
pascal@13915 | 39 cp $stuff/xpaint.xpm $fs/usr/share/pixmaps |
pascal@13915 | 40 } |