# HG changeset patch # User Christopher Rogers # Date 1286493346 0 # Node ID 0df973628fc3b4e551a40fcca0d553677eaf692b # Parent edd06824b115f7fda42bada912e24dddb5430b9d Added cinepaint. For painting and retouching bitmap frames of films. diff -r edd06824b115 -r 0df973628fc3 cinepaint/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cinepaint/receipt Thu Oct 07 23:15:46 2010 +0000 @@ -0,0 +1,50 @@ +# SliTaz package receipt. + +PACKAGE="cinepaint" +VERSION="0.22-1" +CATEGORY="graphics" +SHORT_DESC="For painting and retouching bitmap frames of films." +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="desktop-file-utils gtk+ lcms tiff jpeg fltk ftgl xorg-libXmu xorg-libXpm zlib mesa jbigkit" +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" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.cinepaint.org" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -Np1 -i ../stuff/cinepaint-0.22.1-gcc43.patch + patch -Np1 -i ../stuff/cinepaint-0.22-gcc44.patch + patch -Np1 -i ../stuff/cinepaint-0.22.1-multiple_parameters_named.patch + patch -Np0 -i ../stuff/cinepaint-0.22.1-ambiguousawake.patch +find plug-ins/print -type f -exec \ + sed -i "s:gutenprintui/gutenprintui:gutenprintui2/gutenprintui:" {} \; + # Fix insecure rpath + sed '/-rpath/d' -i plug-ins/icc_examin/icc_examin/configure + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --enable-gtk2 \ + --disable-print \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share $fs/usr/lib + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/lib/cinepaint $fs/usr/lib + strip -s $fs/usr/lib/cinepaint/$VERSION/extra/* + strip -s $fs/usr/lib/cinepaint/$VERSION/plug-ins/* + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + cp -a $_pkg/usr/share/cinepaint $fs/usr/share + cp -a $_pkg/usr/share/pixmaps $fs/usr/share + cp -a $_pkg/usr/share/applications $fs/usr/share + cp -a $_pkg/usr/share/fonts $fs/usr/share +} + diff -r edd06824b115 -r 0df973628fc3 cinepaint/stuff/cinepaint-0.22-gcc44.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cinepaint/stuff/cinepaint-0.22-gcc44.patch Thu Oct 07 23:15:46 2010 +0000 @@ -0,0 +1,22 @@ +diff -Nru cinepaint-0.22-1.orig/plug-ins/collect/collect.cpp cinepaint-0.22-1/plug-ins/collect/collect.cpp +--- cinepaint-0.22-1.orig/plug-ins/collect/collect.cpp 2007-03-30 11:11:33.000000000 +0200 ++++ cinepaint-0.22-1/plug-ins/collect/collect.cpp 2009-05-21 14:54:45.000000000 +0200 +@@ -301,7 +301,7 @@ + return -1; + + // renaming the layer to the original filename +- gimp_layer_set_name (layers[0], strrchr(fc->value(1),'/')+1); ++ gimp_layer_set_name (layers[0], strrchr((char *)fc->value(1),'/')+1); + GPrecisionType image_base_prec = gimp_drawable_precision (layers[0]); + int base_gray = gimp_drawable_gray (layers[0]); + +@@ -341,7 +341,7 @@ + #endif + gimp_image_add_layer (image_ID, layers[0], 0); DBG + // set layer name to filename +- gimp_layer_set_name(layers[0], strrchr(fc->value(i),'/')+1); ++ gimp_layer_set_name(layers[0], strrchr((char *)fc->value(i),'/')+1); + + // searching max dimensions + if (gimp_image_width(load_image_ID) > max_w) + diff -r edd06824b115 -r 0df973628fc3 cinepaint/stuff/cinepaint-0.22.1-ambiguousawake.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cinepaint/stuff/cinepaint-0.22.1-ambiguousawake.patch Thu Oct 07 23:15:46 2010 +0000 @@ -0,0 +1,11 @@ +--- plug-ins/icc_examin/icc_examin/icc_helfer_fltk.cpp.orig 2008-09-03 02:07:08.000000000 +0200 ++++ plug-ins/icc_examin/icc_examin/icc_helfer_fltk.cpp 2008-09-03 02:08:02.000000000 +0200 +@@ -226,7 +226,7 @@ + + int awake(void) + { +- Fl::awake(0); ++ Fl::awake((void *)0); + return 0; + } + int leerWait(void) { return 0; } diff -r edd06824b115 -r 0df973628fc3 cinepaint/stuff/cinepaint-0.22.1-gcc43.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cinepaint/stuff/cinepaint-0.22.1-gcc43.patch Thu Oct 07 23:15:46 2010 +0000 @@ -0,0 +1,73 @@ +Index: cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/ResponseSolver.hpp +=================================================================== +--- cinepaint-0.22-1.orig/plug-ins/bracketing_to_hdr/br_core/ResponseSolver.hpp ++++ cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/ResponseSolver.hpp +@@ -34,6 +34,7 @@ + + + #include ++#include + #include "TNT/tnt_misc.hpp" // proof_least_square_fit() + #include "TNT/tnt_stopwatch.hpp" + #include "TNT/jama_qr.hpp" // JAMA::QR +Index: cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/br_Image.cpp +=================================================================== +--- cinepaint-0.22-1.orig/plug-ins/bracketing_to_hdr/br_core/br_Image.cpp ++++ cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/br_Image.cpp +@@ -26,6 +26,7 @@ + */ + #include + #include // pow() ++#include + + #include "br_types.hpp" // ImageID + #include "br_enums.hpp" // DataType, ReportWhat +Index: cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.cpp +=================================================================== +--- cinepaint-0.22-1.orig/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.cpp ++++ cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/icc_oyranos_extern.cpp +@@ -29,6 +29,7 @@ + + #include "icc_utils.h" + #include "icc_fenster.h" ++#include + + using namespace icc_examin_ns; + +Index: cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/icc_speicher.h +=================================================================== +--- cinepaint-0.22-1.orig/plug-ins/icc_examin/icc_examin/icc_speicher.h ++++ cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/icc_speicher.h +@@ -33,6 +33,8 @@ + + #include "icc_utils.h" + #include ++#include ++#include + + #define DBG_SPEICHER_START if(icc_debug >= 3) DBG_PROG_START + #define DBG_SPEICHER_ENDE if(icc_debug >= 3) DBG_PROG_ENDE +Index: cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/threads.cpp +=================================================================== +--- cinepaint-0.22-1.orig/plug-ins/icc_examin/icc_examin/threads.cpp ++++ cinepaint-0.22-1/plug-ins/icc_examin/icc_examin/threads.cpp +@@ -42,6 +42,7 @@ + #include + # if HAVE_PTHREAD_H + // Use POSIX threading... ++#include + + int fl_create_thread(Fl_Thread& t, void *(*f) (void *), void* p) + { +Index: cinepaint-0.22-1/plug-ins/pdf/pdf.cpp +=================================================================== +--- cinepaint-0.22-1.orig/plug-ins/pdf/pdf.cpp ++++ cinepaint-0.22-1/plug-ins/pdf/pdf.cpp +@@ -39,6 +39,7 @@ + + #include "pdf.h" + #include "pdf_dialog.h" ++#include + + extern "C" { + #include diff -r edd06824b115 -r 0df973628fc3 cinepaint/stuff/cinepaint-0.22.1-multiple_parameters_named.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cinepaint/stuff/cinepaint-0.22.1-multiple_parameters_named.patch Thu Oct 07 23:15:46 2010 +0000 @@ -0,0 +1,42 @@ +--- ./plug-ins/icc_examin/icc_examin/icc_oyranos.h.orig 2008-06-27 19:28:52.000000000 +0200 ++++ ./plug-ins/icc_examin/icc_examin/icc_oyranos.h 2008-06-27 19:31:34.000000000 +0200 +@@ -142,9 +142,6 @@ + + // colour transformations + ColourTransformKey erzeugeTrafo ( +- const char* eingangs_profil__geraet, +- int byte, +- int kanaele, + const char* ausgangs_profil__geraet, + int byte, + int kanaele, +@@ -152,9 +149,6 @@ + const char* cmm, // 4 bytes 'lcms' 'APPL' + int cmm_optionen); // BPC, precission + ColourTransformKey erzeugeTrafo ( +- const char* eingangs_profil__geraet, +- int byte, +- int kanaele, + const char* ausgangs_profil__geraet, + int byte, + int kanaele, +@@ -163,9 +157,6 @@ + int cmm_optionen, + std::list &profile ); + ColourTransformKey erzeugeTrafo ( +- const char* eingangs_profil__geraet, +- int byte, +- int kanaele, + const char* ausgangs_profil__geraet, + int byte, + int kanaele, +@@ -181,9 +172,6 @@ + std::string cmm; + private: + ColourTransformKey erzeugeSchluessel_ ( +- const char* eingangs_profil__geraet, +- int byte, +- int kanaele, + const char* ausgangs_profil__geraet, + int byte, + int kanaele,