Browse Source

cinepaint: fixed by adding patches for being able to compile wiht gcc >= 4.3

stable/0.2
Christian Wiese 14 years ago
parent
commit
5363b537e9
  1. 46
      graphic/cinepaint/cinepaint-0.22-1-gcc43.patch
  2. 38
      graphic/cinepaint/cinepaint-0.22-1-gcc44.patch
  3. 3
      graphic/cinepaint/cinepaint.conf

46
graphic/cinepaint/cinepaint-0.22-1-gcc43.patch

@ -0,0 +1,46 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../cinepaint/cinepaint-0.22-1-gcc43.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
--- cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/br_Image.cpp.orig 2011-04-14 12:26:35.804077826 +0200
+++ cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/br_Image.cpp 2011-04-14 12:27:39.216077825 +0200
@@ -26,6 +26,7 @@
*/
#include <iostream>
#include <cmath> // pow()
+#include <cstring> // strlen, strcpy
#include "br_types.hpp" // ImageID
#include "br_enums.hpp" // DataType, ReportWhat
--- cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/ResponseSolver.hpp.orig 2011-04-14 12:28:48.544077820 +0200
+++ cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core/ResponseSolver.hpp 2011-04-14 12:29:25.904077820 +0200
@@ -34,6 +34,7 @@
#include <fstream>
+#include <cstring> // strlen
#include "TNT/tnt_misc.hpp" // proof_least_square_fit()
#include "TNT/tnt_stopwatch.hpp"
#include "TNT/jama_qr.hpp" // JAMA::QR
--- cinepaint-0.22-1/plug-ins/pdf/pdf.cpp.orig 2011-04-16 00:29:21.884077833 +0200
+++ cinepaint-0.22-1/plug-ins/pdf/pdf.cpp 2011-04-16 00:30:52.296077813 +0200
@@ -37,6 +37,7 @@
#define PLUG_IN_COPYRIGHT "Copyright 2005-2006 Kai-Uwe Behrmann"
+#include <cstring> // strlen, strcmp, strrchr
#include "pdf.h"
#include "pdf_dialog.h"

38
graphic/cinepaint/cinepaint-0.22-1-gcc44.patch

@ -0,0 +1,38 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../cinepaint/cinepaint-0.22-1-gcc44.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
--- cinepaint-0.22-1/lib/player.c.orig 2011-04-15 23:54:26.236079242 +0200
+++ cinepaint-0.22-1/lib/player.c 2011-04-15 23:55:44.784077828 +0200
@@ -474,7 +474,7 @@
void
gimp_layer_set_name (gint32 layer_ID,
- char *name)
+ const char *name)
{
GParam *return_vals;
int nreturn_vals;
--- cinepaint-0.22-1/lib/plugin_main.h.orig 2011-04-15 23:57:27.892077072 +0200
+++ cinepaint-0.22-1/lib/plugin_main.h 2011-04-15 23:57:38.668077820 +0200
@@ -404,7 +404,7 @@
DLL_API void gimp_layer_set_mode (gint32 layer_ID,
GLayerMode mode);
DLL_API void gimp_layer_set_name (gint32 layer_ID,
- char *name);
+ const char *name);
DLL_API void gimp_layer_set_offsets (gint32 layer_ID,
gint offset_x,
gint offset_y);

3
graphic/cinepaint/cinepaint.conf

@ -27,4 +27,7 @@ fix_pkgconfig() {
# enable GTK2 based interface
if pkginstalled gtk+; then
var_append extraconfopt ' ' '--enable-gtk2'
. $base/package/*/*/gtk+-conf.in
else
. $base/package/*/*/gnome14-conf.in
fi

Loading…
Cancel
Save