wok-6.x annotate xpaint/receipt @ rev 23300

updated perl-compress-raw-zlib (2.051 -> 2.093)
author Hans-G?nter Theisgen
date Sun Mar 29 16:50:35 2020 +0100 (2020-03-29)
parents 5c397f0326be
children ad86373a4a8c
rev   line source
pascal@13915 1 # SliTaz package receipt.
pascal@13915 2
pascal@13915 3 PACKAGE="xpaint"
Hans-G?nter@22305 4 VERSION="2.10.2"
pascal@13915 5 CATEGORY="graphics"
Hans-G?nter@22305 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/"
Hans-G?nter@22305 10
pascal@13915 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@22305 12 WGET_URL="$SF_MIRROR/sf-$PACKAGE/files/$TARBALL"
Hans-G?nter@22305 13
Hans-G?nter@22305 14 DEPENDS="libXaw3dXft openjpeg"
Hans-G?nter@22305 15 BUILD_DEPENDS="expat-dev jpeg-dev libpng-dev libtool libXaw3dXft-dev
Hans-G?nter@22305 16 libxml2-dev openjpeg-dev tiff-dev util-linux-uuid-dev"
Hans-G?nter@22305 17
pankso@16478 18 HOST_ARCH="i486 arm"
pascal@13915 19
pascal@13915 20 # Rules to configure and make the package.
pascal@13915 21 compile_rules()
pascal@13915 22 {
pankso@16479 23 case "$ARCH" in
pankso@16480 24 i?86) LIBTOOL=libtool ;;
pankso@16479 25 arm) LIBTOOL=${HOST_SYSTEM}-libtool ;;
pankso@16479 26 esac
Hans-G?nter@22305 27
Hans-G?nter@22305 28 ./configure \
Hans-G?nter@22305 29 --enable-tiff=no \
Hans-G?nter@22305 30 $CONFIGURE_ARGS &&
Hans-G?nter@22305 31
pankso@16478 32 # Fix cross compilation
Hans-G?nter@22305 33 sed -i s'/$(CC) substads.c/gcc substads.c/' \
Hans-G?nter@22305 34 Makefile &&
Hans-G?nter@22305 35 sed -i s'/$(CC) preproc.c/gcc preproc.c/' \
Hans-G?nter@22305 36 Makefile &&
Hans-G?nter@22305 37
Hans-G?nter@22305 38 make -j 1 LIBTOOL=${LIBTOOL} &&
Hans-G?nter@22305 39 make install
pascal@13915 40 }
pascal@13915 41
pascal@13915 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13915 43 genpkg_rules()
pascal@13915 44 {
Hans-G?nter@22305 45 mkdir -p $fs/usr/lib
Hans-G?nter@22305 46 mkdir -p $fs/usr/share/pixmaps
Hans-G?nter@22305 47
Hans-G?nter@22305 48 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22305 49 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22305 50 cp -a $install/usr/share/xpaint $fs/usr/share
Hans-G?nter@22305 51
pankso@16482 52 rm -r $fs/usr/share/xpaint/include
Hans-G?nter@22305 53
Hans-G?nter@22305 54 cp $stuff/xpaint.xpm $fs/usr/share/pixmaps
pascal@13915 55 }