diff options
author | pav <pav@FreeBSD.org> | 2010-08-07 23:27:41 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2010-08-07 23:27:41 +0800 |
commit | e6559ed64dea034b29d9ee90d39a91cc0a778f44 (patch) | |
tree | 2be2a0a7d9379a65f65c6fd9f26419b4fd3e690d /graphics | |
parent | 9688fcd9e7bfa869feb0f594ba125af73874e8fa (diff) | |
download | freebsd-ports-gnome-e6559ed64dea034b29d9ee90d39a91cc0a778f44.tar.gz freebsd-ports-gnome-e6559ed64dea034b29d9ee90d39a91cc0a778f44.tar.zst freebsd-ports-gnome-e6559ed64dea034b29d9ee90d39a91cc0a778f44.zip |
- Fix runtime on amd64
PR: ports/148690
Submitted by: Piotr Smyrak <smyru@heron.pl> (maintainer)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/gcolor2/Makefile | 2 | ||||
-rw-r--r-- | graphics/gcolor2/files/patch-src_callbacks.c | 19 | ||||
-rw-r--r-- | graphics/gcolor2/files/patch-src_main.c | 40 |
3 files changed, 54 insertions, 7 deletions
diff --git a/graphics/gcolor2/Makefile b/graphics/gcolor2/Makefile index 644248c06f3f..e8f8d3bd8f8e 100644 --- a/graphics/gcolor2/Makefile +++ b/graphics/gcolor2/Makefile @@ -7,7 +7,7 @@ PORTNAME= gcolor2 PORTVERSION= 0.4 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= graphics gnome MASTER_SITES= SF diff --git a/graphics/gcolor2/files/patch-src_callbacks.c b/graphics/gcolor2/files/patch-src_callbacks.c index c1982e0631c9..6ec835507a63 100644 --- a/graphics/gcolor2/files/patch-src_callbacks.c +++ b/graphics/gcolor2/files/patch-src_callbacks.c @@ -1,9 +1,16 @@ - -$FreeBSD$ - ---- src/callbacks.c.orig -+++ src/callbacks.c -@@ -166,9 +166,10 @@ +--- src/callbacks.c.orig 2010-06-21 22:33:40.000000000 +0200 ++++ src/callbacks.c 2010-06-21 22:38:00.000000000 +0200 +@@ -9,6 +9,9 @@ + #include "interface.h" + #include "support.h" + ++/* missing headers on original file */ ++#include <string.h> ++#include <glib/gprintf.h> + + GtkWidget *savedialog; + gchar *colorname; +@@ -166,9 +169,10 @@ void on_copy_color_to_clipboard_activate (GtkMenuItem *menuitem, gpointer user_data) { gchar* hex; diff --git a/graphics/gcolor2/files/patch-src_main.c b/graphics/gcolor2/files/patch-src_main.c new file mode 100644 index 000000000000..25b9e509ac73 --- /dev/null +++ b/graphics/gcolor2/files/patch-src_main.c @@ -0,0 +1,40 @@ +--- src/main.c.orig 2010-06-21 22:38:34.000000000 +0200 ++++ src/main.c 2010-06-21 22:36:23.000000000 +0200 +@@ -9,6 +9,11 @@ + #include "support.h" + #include "callbacks.h" + ++/* missing headers on original file */ ++#include <stdlib.h> ++#include <string.h> ++#include <glib/gprintf.h> ++ + GtkListStore *liststore; + GdkWindow *gdkwin; + gchar *user_filename; +@@ -48,8 +53,6 @@ + + void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color) + { +- GdkPixmap *pixmap; +- GdkBitmap *mask; + GdkPixbuf *buf; + GtkTreeIter iter; + +@@ -103,7 +106,7 @@ + gchar *name; + gchar buffer[512]; + gchar spec[8]; +- gint r, g, b, lr, lg, lb; ++ gint r, g, b, lr=0, lg=0, lb=0; + + fp = fopen (filename, "r"); + if (!fp) +@@ -140,7 +143,6 @@ + GtkTreeViewColumn *column; + GtkWidget *treeview; + GtkTreeSelection *select; +- gchar *buf; + + #ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); |