summaryrefslogtreecommitdiff
path: root/testing/cinepaint
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-06 23:10:44 +0000
committerroot <root@rshg047.dnsready.net>2011-07-06 23:10:44 +0000
commitb215b5e985b9310dff8d992510f12a87141fe7cb (patch)
treebc81c9c0c02ab9a4d6ee15e553850141b8d46f94 /testing/cinepaint
parent9d2caacbc33de06407311a5da87e5d22e0266435 (diff)
Wed Jul 6 23:10:44 UTC 2011
Diffstat (limited to 'testing/cinepaint')
-rw-r--r--testing/cinepaint/LICENSE25
-rw-r--r--testing/cinepaint/PKGBUILD64
-rw-r--r--testing/cinepaint/cinepaint-0.22-gcc44.patch22
-rw-r--r--testing/cinepaint/cinepaint-0.22.1-ambiguousawake.patch11
-rw-r--r--testing/cinepaint/cinepaint-0.22.1-gcc43.patch73
-rw-r--r--testing/cinepaint/cinepaint-0.22.1-multiple_parameters_named.patch42
-rw-r--r--testing/cinepaint/cinepaint.install11
7 files changed, 248 insertions, 0 deletions
diff --git a/testing/cinepaint/LICENSE b/testing/cinepaint/LICENSE
new file mode 100644
index 000000000..746207229
--- /dev/null
+++ b/testing/cinepaint/LICENSE
@@ -0,0 +1,25 @@
+Copyright (c) 2005, Kai-Uwe Behrmann
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.ntributors may be used to endorse or promote
+ products derived from this software without specific prior written
+ permission.
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/testing/cinepaint/PKGBUILD b/testing/cinepaint/PKGBUILD
new file mode 100644
index 000000000..93b61ee16
--- /dev/null
+++ b/testing/cinepaint/PKGBUILD
@@ -0,0 +1,64 @@
+# $Id: PKGBUILD 130311 2011-07-04 22:01:41Z eric $
+# Maintainer: tobias [tobias.archlinux.org]
+# Contributor: tobias [tobias.justdreams.de]
+
+pkgname=cinepaint
+_srcver=0.22-1
+pkgver=${_srcver/-/.}
+pkgrel=8
+pkgdesc="Sophisticated graphics manipulation programm supporting >8bit pictures"
+arch=('i686' 'x86_64')
+license=('LGPL' 'GPL' 'MIT')
+url="http://www.cinepaint.org"
+depends=('gtk2>=2.18.6' 'openexr>=1.6.1' 'lcms>=1.18' 'libxpm>=3.5.7' 'fltk'
+ 'desktop-file-utils' 'ftgl>=2.1.3rc5')
+makedepends=('python2' 'gutenprint')
+optdepends=('python2: for python plug-ins' 'gutenprint: for print plug-ins')
+options=('!libtool')
+install=cinepaint.install
+source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${_srcver}.tar.gz
+ LICENSE
+ cinepaint-0.22.1-gcc43.patch
+ cinepaint-0.22.1-multiple_parameters_named.patch
+ cinepaint-0.22.1-ambiguousawake.patch
+ cinepaint-0.22-gcc44.patch)
+md5sums=('f360587240db6b6d2f0bfd94c420c492'
+ '169085743f667c250ea2e4022efecf5f'
+ 'f05e17a16d0018e5301aff0e1fa597b0'
+ '0876510a5ce3d581ebdde7e18199c09f'
+ '4586aa153a0d3cac36120afc1f95a880'
+ '368e820c27f525e3569d43388f1c119a')
+
+build() {
+ cd "${srcdir}/${pkgname}-${_srcver}"
+ # FIXES
+ patch -Np1 -i "${srcdir}/cinepaint-0.22.1-gcc43.patch"
+ patch -Np1 -i "${srcdir}/cinepaint-0.22-gcc44.patch"
+ patch -Np1 -i "${srcdir}/cinepaint-0.22.1-multiple_parameters_named.patch"
+ patch -Np0 -i "${srcdir}/cinepaint-0.22.1-ambiguousawake.patch"
+ find plug-ins/pygimp -type f -exec sed -i 's#env python#env python2#' {} +
+ find plug-ins/print -type f -exec sed -i "s:gutenprintui/gutenprintui:gutenprintui2/gutenprintui:" {} \;
+ sed -i 's|Fl/Fl_File_Chooser.H|FL/Fl_File_Chooser.H|' lib/fl_i18n/fl_i18n.cxx
+ sed -i 's|Fl/Fl_Widget.H|FL/Fl_Widget.H|' plug-ins/icc_examin/icc_examin/icc_helfer.h
+ sed -i 's|Fl/Fl.H|FL/Fl.H|' plug-ins/icc_examin/icc_examin/icc_helfer_fltk.cpp
+ sed -i 's|Fl/Fl_File_Chooser.H|FL/Fl_File_Chooser.H|' plug-ins/icc_examin/icc_examin/fl_i18n/fl_i18n.cxx
+
+ # Fix insecure rpath
+ sed '/-rpath/d' -i plug-ins/icc_examin/icc_examin/configure
+
+ # build
+ ./configure --prefix=/usr --mandir=/usr/share/man \
+ --enable-gtk2 --enable-pygimp \
+ --with-python=/usr/bin/python2
+ # FIXES
+ sed -i 's/^\(X_LIBS.*\)$/\1 -lpthread/' plug-ins/openexr/Makefile
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${_srcver}"
+ make DESTDIR="${pkgdir}" install
+ sed -i -e "s|-I$srcdir/cinepaint-0.22-1||" -e "s|-I$srcdir/cinepaint-0.22-1/lib||" -e "/libcinepaint.la/d" \
+ -e "s|$srcdir/cinepaint-0.22-1/lib/.libs/\$dlname||" "${pkgdir}/usr/bin/cinepainttool"
+ install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/testing/cinepaint/cinepaint-0.22-gcc44.patch b/testing/cinepaint/cinepaint-0.22-gcc44.patch
new file mode 100644
index 000000000..340057834
--- /dev/null
+++ b/testing/cinepaint/cinepaint-0.22-gcc44.patch
@@ -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 --git a/testing/cinepaint/cinepaint-0.22.1-ambiguousawake.patch b/testing/cinepaint/cinepaint-0.22.1-ambiguousawake.patch
new file mode 100644
index 000000000..f1d09fa27
--- /dev/null
+++ b/testing/cinepaint/cinepaint-0.22.1-ambiguousawake.patch
@@ -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 --git a/testing/cinepaint/cinepaint-0.22.1-gcc43.patch b/testing/cinepaint/cinepaint-0.22.1-gcc43.patch
new file mode 100644
index 000000000..64ba76099
--- /dev/null
+++ b/testing/cinepaint/cinepaint-0.22.1-gcc43.patch
@@ -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 <fstream>
++#include <cstring>
+ #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 <iostream>
+ #include <cmath> // pow()
++#include <cstring>
+
+ #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 <cstdlib>
+
+ 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 <string>
++#include <cstdlib>
++#include <cstring>
+
+ #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 <iostream>
+ # if HAVE_PTHREAD_H
+ // Use POSIX threading...
++#include <climits>
+
+ 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 <cstring>
+
+ extern "C" {
+ #include <gtk/gtk.h>
diff --git a/testing/cinepaint/cinepaint-0.22.1-multiple_parameters_named.patch b/testing/cinepaint/cinepaint-0.22.1-multiple_parameters_named.patch
new file mode 100644
index 000000000..e030593c2
--- /dev/null
+++ b/testing/cinepaint/cinepaint-0.22.1-multiple_parameters_named.patch
@@ -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<const char*> &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,
diff --git a/testing/cinepaint/cinepaint.install b/testing/cinepaint/cinepaint.install
new file mode 100644
index 000000000..5e5cfef4d
--- /dev/null
+++ b/testing/cinepaint/cinepaint.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ update-desktop-database -q
+}