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