aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbland <bland@FreeBSD.org>2003-08-28 07:31:43 +0800
committerbland <bland@FreeBSD.org>2003-08-28 07:31:43 +0800
commit3328c2a1d8daf0e3b51c7aea7c784ab2696dd8e3 (patch)
treef2e8f584907d7bdf4398f721f1f48b5c1e95349b
parentd8059126a545820f6874ac77240b629232598569 (diff)
downloadfreebsd-ports-gnome-3328c2a1d8daf0e3b51c7aea7c784ab2696dd8e3.tar.gz
freebsd-ports-gnome-3328c2a1d8daf0e3b51c7aea7c784ab2696dd8e3.tar.zst
freebsd-ports-gnome-3328c2a1d8daf0e3b51c7aea7c784ab2696dd8e3.zip
Workaround gcc 2.95.x static_cast<> bug on -STABLE
PR: 56030 Submitted by: Sergey Akifyev <asa@gascom.ru> (based on) Approved by: marcus (mentor)
-rw-r--r--x11-toolkits/libgnomeuimm/Makefile8
-rw-r--r--x11-toolkits/libgnomeuimm/files/extra-patch-old_gcc_bugs29
-rw-r--r--x11-toolkits/libgnomeuimm26/Makefile8
-rw-r--r--x11-toolkits/libgnomeuimm26/files/extra-patch-old_gcc_bugs29
4 files changed, 72 insertions, 2 deletions
diff --git a/x11-toolkits/libgnomeuimm/Makefile b/x11-toolkits/libgnomeuimm/Makefile
index 2c0cef2203e9..cd6bc4868e19 100644
--- a/x11-toolkits/libgnomeuimm/Makefile
+++ b/x11-toolkits/libgnomeuimm/Makefile
@@ -29,4 +29,10 @@ USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --enable-static
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-old_gcc_bugs
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/libgnomeuimm/files/extra-patch-old_gcc_bugs b/x11-toolkits/libgnomeuimm/files/extra-patch-old_gcc_bugs
new file mode 100644
index 000000000000..bccb729cec94
--- /dev/null
+++ b/x11-toolkits/libgnomeuimm/files/extra-patch-old_gcc_bugs
@@ -0,0 +1,29 @@
+--- libgnomeui/libgnomeuimm/dateedit.cc.orig Wed Aug 27 22:24:13 2003
++++ libgnomeui/libgnomeuimm/dateedit.cc Wed Aug 27 22:25:02 2003
+@@ -35,7 +35,7 @@
+ : Gtk::HBox(GTK_HBOX(g_object_new(get_type(), (char*)0)))
+ {
+ gnome_date_edit_construct(gobj(), the_time,
+- static_cast<GnomeDateEditFlags>(
++ GnomeDateEditFlags(
+ (show_time ? DATE_EDIT_SHOW_TIME : static_cast<DateEditFlags>(0))
+ | (use_24_format ? DATE_EDIT_24_HR : static_cast<DateEditFlags>(0)) ) );
+ }
+@@ -44,7 +44,7 @@
+ DateEdit::DateEdit(time_t the_time, DateEditFlags flags)
+ : Gtk::HBox(GTK_HBOX(g_object_new(get_type(), (char*)0)))
+ {
+- gnome_date_edit_construct(gobj(), the_time, static_cast<GnomeDateEditFlags>(flags));
++ gnome_date_edit_construct(gobj(), the_time, GnomeDateEditFlags(flags));
+ }
+
+
+@@ -254,7 +254,7 @@
+
+ void DateEdit::set_flags(DateEditFlags flags)
+ {
+- gnome_date_edit_set_flags(gobj(), static_cast<GnomeDateEditFlags>(flags));
++ gnome_date_edit_set_flags(gobj(), GnomeDateEditFlags(flags));
+ }
+
+ DateEditFlags DateEdit::get_flags() const
diff --git a/x11-toolkits/libgnomeuimm26/Makefile b/x11-toolkits/libgnomeuimm26/Makefile
index 2c0cef2203e9..cd6bc4868e19 100644
--- a/x11-toolkits/libgnomeuimm26/Makefile
+++ b/x11-toolkits/libgnomeuimm26/Makefile
@@ -29,4 +29,10 @@ USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --enable-static
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-old_gcc_bugs
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/libgnomeuimm26/files/extra-patch-old_gcc_bugs b/x11-toolkits/libgnomeuimm26/files/extra-patch-old_gcc_bugs
new file mode 100644
index 000000000000..bccb729cec94
--- /dev/null
+++ b/x11-toolkits/libgnomeuimm26/files/extra-patch-old_gcc_bugs
@@ -0,0 +1,29 @@
+--- libgnomeui/libgnomeuimm/dateedit.cc.orig Wed Aug 27 22:24:13 2003
++++ libgnomeui/libgnomeuimm/dateedit.cc Wed Aug 27 22:25:02 2003
+@@ -35,7 +35,7 @@
+ : Gtk::HBox(GTK_HBOX(g_object_new(get_type(), (char*)0)))
+ {
+ gnome_date_edit_construct(gobj(), the_time,
+- static_cast<GnomeDateEditFlags>(
++ GnomeDateEditFlags(
+ (show_time ? DATE_EDIT_SHOW_TIME : static_cast<DateEditFlags>(0))
+ | (use_24_format ? DATE_EDIT_24_HR : static_cast<DateEditFlags>(0)) ) );
+ }
+@@ -44,7 +44,7 @@
+ DateEdit::DateEdit(time_t the_time, DateEditFlags flags)
+ : Gtk::HBox(GTK_HBOX(g_object_new(get_type(), (char*)0)))
+ {
+- gnome_date_edit_construct(gobj(), the_time, static_cast<GnomeDateEditFlags>(flags));
++ gnome_date_edit_construct(gobj(), the_time, GnomeDateEditFlags(flags));
+ }
+
+
+@@ -254,7 +254,7 @@
+
+ void DateEdit::set_flags(DateEditFlags flags)
+ {
+- gnome_date_edit_set_flags(gobj(), static_cast<GnomeDateEditFlags>(flags));
++ gnome_date_edit_set_flags(gobj(), GnomeDateEditFlags(flags));
+ }
+
+ DateEditFlags DateEdit::get_flags() const