wok-current view cinepaint/receipt @ rev 7868

Up: mercurial to 1.7.3.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jan 02 19:36:34 2011 +0000 (2011-01-02)
parents
children c15ece372753
line source
1 # SliTaz package receipt.
3 PACKAGE="cinepaint"
4 VERSION="0.22-1"
5 CATEGORY="graphics"
6 SHORT_DESC="For painting and retouching bitmap frames of films."
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="desktop-file-utils gtk+ lcms tiff jpeg fltk ftgl xorg-libXmu xorg-libXpm zlib mesa jbigkit"
9 BUILD_DEPENDS="$DEPENDS gtk+-dev lcms-dev tiff-dev jpeg-dev fltk-dev ftgl-dev xorg-libXmu-dev xorg-libXpm-dev python zlib-dev coreutils-file-summarize coreutils-file-special gettext mesa-dev xorg-xextproto util-linux-ng-uuid-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.cinepaint.org"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 patch -Np1 -i ../stuff/cinepaint-0.22.1-gcc43.patch
19 patch -Np1 -i ../stuff/cinepaint-0.22-gcc44.patch
20 patch -Np1 -i ../stuff/cinepaint-0.22.1-multiple_parameters_named.patch
21 patch -Np0 -i ../stuff/cinepaint-0.22.1-ambiguousawake.patch
22 find plug-ins/print -type f -exec \
23 sed -i "s:gutenprintui/gutenprintui:gutenprintui2/gutenprintui:" {} \;
24 # Fix insecure rpath
25 sed '/-rpath/d' -i plug-ins/icc_examin/icc_examin/configure
26 ./configure \
27 --prefix=/usr \
28 --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 --enable-gtk2 \
31 --disable-print \
32 $CONFIGURE_ARGS &&
33 make && make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share $fs/usr/lib
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/lib/cinepaint $fs/usr/lib
42 strip -s $fs/usr/lib/cinepaint/$VERSION/extra/*
43 strip -s $fs/usr/lib/cinepaint/$VERSION/plug-ins/*
44 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
45 cp -a $_pkg/usr/share/cinepaint $fs/usr/share
46 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
47 cp -a $_pkg/usr/share/applications $fs/usr/share
48 cp -a $_pkg/usr/share/fonts $fs/usr/share
49 }