wok-next rev 6560

Added cinepaint. For painting and retouching bitmap frames of films.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Oct 07 23:15:46 2010 +0000 (2010-10-07)
parents edd06824b115
children 86fe4ca4c6ff
files cinepaint/receipt cinepaint/stuff/cinepaint-0.22-gcc44.patch cinepaint/stuff/cinepaint-0.22.1-ambiguousawake.patch cinepaint/stuff/cinepaint-0.22.1-gcc43.patch cinepaint/stuff/cinepaint-0.22.1-multiple_parameters_named.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cinepaint/receipt	Thu Oct 07 23:15:46 2010 +0000
     1.3 @@ -0,0 +1,50 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="cinepaint"
     1.7 +VERSION="0.22-1"
     1.8 +CATEGORY="graphics"
     1.9 +SHORT_DESC="For painting and retouching bitmap frames of films."
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="desktop-file-utils gtk+ lcms tiff jpeg fltk ftgl xorg-libXmu xorg-libXpm zlib mesa jbigkit"
    1.12 +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"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://www.cinepaint.org"
    1.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	patch -Np1 -i ../stuff/cinepaint-0.22.1-gcc43.patch
    1.22 +	patch -Np1 -i ../stuff/cinepaint-0.22-gcc44.patch
    1.23 +	patch -Np1 -i ../stuff/cinepaint-0.22.1-multiple_parameters_named.patch
    1.24 +	patch -Np0 -i ../stuff/cinepaint-0.22.1-ambiguousawake.patch
    1.25 +find plug-ins/print -type f -exec \
    1.26 +    sed -i "s:gutenprintui/gutenprintui:gutenprintui2/gutenprintui:" {} \;
    1.27 +	# Fix insecure rpath
    1.28 +	sed '/-rpath/d' -i plug-ins/icc_examin/icc_examin/configure
    1.29 +	./configure \
    1.30 +		--prefix=/usr \
    1.31 +		--infodir=/usr/share/info \
    1.32 +		--mandir=/usr/share/man \
    1.33 +		--enable-gtk2 \
    1.34 +		--disable-print \
    1.35 +		$CONFIGURE_ARGS &&
    1.36 +	make && make DESTDIR=$PWD/_pkg install
    1.37 +}
    1.38 +
    1.39 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 +genpkg_rules()
    1.41 +{
    1.42 +	mkdir -p $fs/usr/share $fs/usr/lib
    1.43 +	cp -a $_pkg/usr/bin $fs/usr
    1.44 +	cp -a $_pkg/usr/lib/cinepaint $fs/usr/lib
    1.45 +	strip -s $fs/usr/lib/cinepaint/$VERSION/extra/*
    1.46 +	strip -s $fs/usr/lib/cinepaint/$VERSION/plug-ins/*
    1.47 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.48 +	cp -a $_pkg/usr/share/cinepaint $fs/usr/share
    1.49 +	cp -a $_pkg/usr/share/pixmaps $fs/usr/share
    1.50 +	cp -a $_pkg/usr/share/applications $fs/usr/share
    1.51 +	cp -a $_pkg/usr/share/fonts $fs/usr/share
    1.52 +}
    1.53 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/cinepaint/stuff/cinepaint-0.22-gcc44.patch	Thu Oct 07 23:15:46 2010 +0000
     2.3 @@ -0,0 +1,22 @@
     2.4 +diff -Nru cinepaint-0.22-1.orig/plug-ins/collect/collect.cpp cinepaint-0.22-1/plug-ins/collect/collect.cpp
     2.5 +--- cinepaint-0.22-1.orig/plug-ins/collect/collect.cpp	2007-03-30 11:11:33.000000000 +0200
     2.6 ++++ cinepaint-0.22-1/plug-ins/collect/collect.cpp	2009-05-21 14:54:45.000000000 +0200
     2.7 +@@ -301,7 +301,7 @@
     2.8 +             return -1;
     2.9 + 
    2.10 +           // renaming the layer to the original filename
    2.11 +-          gimp_layer_set_name (layers[0], strrchr(fc->value(1),'/')+1);
    2.12 ++          gimp_layer_set_name (layers[0], strrchr((char *)fc->value(1),'/')+1);
    2.13 +           GPrecisionType image_base_prec = gimp_drawable_precision (layers[0]);
    2.14 +           int base_gray = gimp_drawable_gray (layers[0]);
    2.15 + 
    2.16 +@@ -341,7 +341,7 @@
    2.17 +                     #endif
    2.18 +                     gimp_image_add_layer (image_ID, layers[0], 0); DBG
    2.19 +                     // set layer name to filename
    2.20 +-                    gimp_layer_set_name(layers[0], strrchr(fc->value(i),'/')+1);
    2.21 ++                    gimp_layer_set_name(layers[0], strrchr((char *)fc->value(i),'/')+1);
    2.22 + 
    2.23 +                     // searching max dimensions
    2.24 +                     if (gimp_image_width(load_image_ID) > max_w)
    2.25 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/cinepaint/stuff/cinepaint-0.22.1-ambiguousawake.patch	Thu Oct 07 23:15:46 2010 +0000
     3.3 @@ -0,0 +1,11 @@
     3.4 +--- plug-ins/icc_examin/icc_examin/icc_helfer_fltk.cpp.orig	2008-09-03 02:07:08.000000000 +0200
     3.5 ++++ plug-ins/icc_examin/icc_examin/icc_helfer_fltk.cpp	2008-09-03 02:08:02.000000000 +0200
     3.6 +@@ -226,7 +226,7 @@
     3.7 + 
     3.8 +   int  awake(void)
     3.9 +   {
    3.10 +-    Fl::awake(0);
    3.11 ++    Fl::awake((void *)0);
    3.12 +     return 0;
    3.13 +   }
    3.14 +   int  leerWait(void) { return 0; }
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/cinepaint/stuff/cinepaint-0.22.1-gcc43.patch	Thu Oct 07 23:15:46 2010 +0000
     4.3 @@ -0,0 +1,73 @@
     4.4 +Index: cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/ResponseSolver.hpp
     4.5 +===================================================================
     4.6 +--- cinepaint-0.22-1.orig/plug-ins/bracketing_to_hdr/br_core/ResponseSolver.hpp
     4.7 ++++ cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/ResponseSolver.hpp
     4.8 +@@ -34,6 +34,7 @@
     4.9 + 
    4.10 + 
    4.11 + #include <fstream>
    4.12 ++#include <cstring>
    4.13 + #include "TNT/tnt_misc.hpp"     // proof_least_square_fit()
    4.14 + #include "TNT/tnt_stopwatch.hpp"
    4.15 + #include "TNT/jama_qr.hpp"      // JAMA::QR
    4.16 +Index: cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/br_Image.cpp
    4.17 +===================================================================
    4.18 +--- cinepaint-0.22-1.orig/plug-ins/bracketing_to_hdr/br_core/br_Image.cpp
    4.19 ++++ cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/br_Image.cpp
    4.20 +@@ -26,6 +26,7 @@
    4.21 + */
    4.22 + #include <iostream>
    4.23 + #include <cmath>                    // pow()
    4.24 ++#include <cstring>
    4.25 + 
    4.26 + #include "br_types.hpp"             // ImageID
    4.27 + #include "br_enums.hpp"             // DataType, ReportWhat
    4.28 +Index: cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.cpp
    4.29 +===================================================================
    4.30 +--- cinepaint-0.22-1.orig/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.cpp
    4.31 ++++ cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.cpp
    4.32 +@@ -29,6 +29,7 @@
    4.33 + 
    4.34 + #include "icc_utils.h"
    4.35 + #include "icc_fenster.h"
    4.36 ++#include <cstdlib>
    4.37 + 
    4.38 + using namespace icc_examin_ns;
    4.39 + 
    4.40 +Index: cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/icc_speicher.h
    4.41 +===================================================================
    4.42 +--- cinepaint-0.22-1.orig/plug-ins/icc_examin/icc_examin/icc_speicher.h
    4.43 ++++ cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/icc_speicher.h
    4.44 +@@ -33,6 +33,8 @@
    4.45 + 
    4.46 + #include "icc_utils.h"
    4.47 + #include <string>
    4.48 ++#include <cstdlib>
    4.49 ++#include <cstring>
    4.50 + 
    4.51 + #define DBG_SPEICHER_START   if(icc_debug >= 3) DBG_PROG_START
    4.52 + #define DBG_SPEICHER_ENDE    if(icc_debug >= 3) DBG_PROG_ENDE
    4.53 +Index: cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/threads.cpp
    4.54 +===================================================================
    4.55 +--- cinepaint-0.22-1.orig/plug-ins/icc_examin/icc_examin/threads.cpp
    4.56 ++++ cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/threads.cpp
    4.57 +@@ -42,6 +42,7 @@
    4.58 + #include <iostream>
    4.59 + #  if HAVE_PTHREAD_H
    4.60 + // Use POSIX threading...
    4.61 ++#include <climits>
    4.62 + 
    4.63 + int fl_create_thread(Fl_Thread& t, void *(*f) (void *), void* p)
    4.64 + {
    4.65 +Index: cinepaint-0.22-1/plug-ins/pdf/pdf.cpp
    4.66 +===================================================================
    4.67 +--- cinepaint-0.22-1.orig/plug-ins/pdf/pdf.cpp
    4.68 ++++ cinepaint-0.22-1/plug-ins/pdf/pdf.cpp
    4.69 +@@ -39,6 +39,7 @@
    4.70 + 
    4.71 + #include "pdf.h"
    4.72 + #include "pdf_dialog.h"
    4.73 ++#include <cstring>
    4.74 + 
    4.75 + extern "C" {
    4.76 + #include <gtk/gtk.h>
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/cinepaint/stuff/cinepaint-0.22.1-multiple_parameters_named.patch	Thu Oct 07 23:15:46 2010 +0000
     5.3 @@ -0,0 +1,42 @@
     5.4 +--- ./plug-ins/icc_examin/icc_examin/icc_oyranos.h.orig	2008-06-27 19:28:52.000000000 +0200
     5.5 ++++ ./plug-ins/icc_examin/icc_examin/icc_oyranos.h	2008-06-27 19:31:34.000000000 +0200
     5.6 +@@ -142,9 +142,6 @@
     5.7 + 
     5.8 +     // colour transformations
     5.9 +     ColourTransformKey erzeugeTrafo (
    5.10 +-                                  const char* eingangs_profil__geraet,
    5.11 +-                                  int         byte,
    5.12 +-                                  int         kanaele,
    5.13 +                                   const char* ausgangs_profil__geraet,
    5.14 +                                   int         byte,
    5.15 +                                   int         kanaele,
    5.16 +@@ -152,9 +149,6 @@
    5.17 +                                   const char* cmm, // 4 bytes 'lcms' 'APPL'
    5.18 +                                   int         cmm_optionen); // BPC, precission
    5.19 +     ColourTransformKey erzeugeTrafo (
    5.20 +-                                  const char* eingangs_profil__geraet,
    5.21 +-                                  int         byte,
    5.22 +-                                  int         kanaele,
    5.23 +                                   const char* ausgangs_profil__geraet,
    5.24 +                                   int         byte,
    5.25 +                                   int         kanaele,
    5.26 +@@ -163,9 +157,6 @@
    5.27 +                                   int         cmm_optionen,
    5.28 +                                   std::list<const char*> &profile );
    5.29 +     ColourTransformKey erzeugeTrafo (
    5.30 +-                                  const char* eingangs_profil__geraet,
    5.31 +-                                  int         byte,
    5.32 +-                                  int         kanaele,
    5.33 +                                   const char* ausgangs_profil__geraet,
    5.34 +                                   int         byte,
    5.35 +                                   int         kanaele,
    5.36 +@@ -181,9 +172,6 @@
    5.37 +     std::string cmm;
    5.38 +   private:
    5.39 +     ColourTransformKey erzeugeSchluessel_ (
    5.40 +-                                  const char* eingangs_profil__geraet,
    5.41 +-                                  int         byte,
    5.42 +-                                  int         kanaele,
    5.43 +                                   const char* ausgangs_profil__geraet,
    5.44 +                                   int         byte,
    5.45 +                                   int         kanaele,