aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-01-17 17:50:10 +0800
committermiwi <miwi@FreeBSD.org>2007-01-17 17:50:10 +0800
commit49410848d8f5d67b772da0e45e6937f643bc6bcd (patch)
treef2eeb0118b34e8256b1b18048aa36f15db43bfed
parent285e9992b7802bac929979f650013d561cb97641 (diff)
downloadfreebsd-ports-gnome-49410848d8f5d67b772da0e45e6937f643bc6bcd.tar.gz
freebsd-ports-gnome-49410848d8f5d67b772da0e45e6937f643bc6bcd.tar.zst
freebsd-ports-gnome-49410848d8f5d67b772da0e45e6937f643bc6bcd.zip
- Fix build with gdc
- Add unicode knob - Fix pkg-plist - Bump PORTREVISION PR: 108015 Submitted by: Jona Joachim <walkingshadow@grummel.net> (maintainer)
-rw-r--r--x11-toolkits/wxd/Makefile12
-rw-r--r--x11-toolkits/wxd/files/patch-wx-pointers297
-rw-r--r--x11-toolkits/wxd/pkg-plist2
3 files changed, 307 insertions, 4 deletions
diff --git a/x11-toolkits/wxd/Makefile b/x11-toolkits/wxd/Makefile
index 530dad5b7b52..feccae09ce2c 100644
--- a/x11-toolkits/wxd/Makefile
+++ b/x11-toolkits/wxd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= wxd
PORTVERSION= 0.08
+PORTREVISION= 1
CATEGORIES= x11-toolkits devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -20,9 +21,16 @@ BUILD_DEPENDS= gdc:${PORTSDIR}/lang/gdc
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_WX= 2.6
-WX_UNICODE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+OPTIONS= UNICODE "Build the Unicode version" On
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_UNICODE)
+WX_UNICODE= yes
+.endif
+
pre-patch:
@${RM} ${WRKSRC}/Makefile
@${MV} ${WRKSRC}/GNUmakefile ${WRKSRC}/Makefile
@@ -37,8 +45,6 @@ post-install:
@${CP} -R ${WRKSRC}/Samples/* ${EXAMPLESDIR}
.endif
-.include <bsd.port.pre.mk>
-
.if ${OSVERSION} < 500000
IGNORE= needs FreeBSD 5.x or later
.endif
diff --git a/x11-toolkits/wxd/files/patch-wx-pointers b/x11-toolkits/wxd/files/patch-wx-pointers
new file mode 100644
index 000000000000..b54ccad53f5a
--- /dev/null
+++ b/x11-toolkits/wxd/files/patch-wx-pointers
@@ -0,0 +1,297 @@
+diff -urN work/wxd/wx/Choice.d work_new/wxd/wx/Choice.d
+--- work/wxd/wx/Choice.d Fri Aug 18 15:02:24 2006
++++ wx/Choice.d Tue Jan 16 19:30:57 2007
+@@ -88,7 +88,7 @@
+ {
+ super(wxChoice_ctor());
+ if(!wxChoice_Create(wxobj, wxObject.SafePtr(parent), id, pos,
+- size, choices.length, choices, style,
++ size, choices.length, choices.ptr, style,
+ wxObject.SafePtr(validator), name))
+ {
+ throw new InvalidOperationException("Failed to create ListBox");
+@@ -108,7 +108,7 @@
+ string name)
+ {
+ return wxChoice_Create(wxobj, wxObject.SafePtr(parent), id,
+- pos, size, choices.length, choices,
++ pos, size, choices.length, choices.ptr,
+ cast(uint)style, wxObject.SafePtr(validator), name);
+ }
+
+@@ -135,7 +135,7 @@
+
+ public void Append(string[] strings)
+ {
+- wxChoice_AppendArrayString(wxobj, strings.length, strings);
++ wxChoice_AppendArrayString(wxobj, strings.length, strings.ptr);
+ }
+
+ //-----------------------------------------------------------------------------
+diff -urN work/wxd/wx/ChoiceDialog.d work_new/wxd/wx/ChoiceDialog.d
+--- work/wxd/wx/ChoiceDialog.d Fri Aug 18 15:02:24 2006
++++ wx/ChoiceDialog.d Tue Jan 16 19:41:26 2007
+@@ -45,7 +45,7 @@
+ { super(wxobj);}
+
+ public this(Window parent, string message, string caption, string[] choices, ClientData clientData = null, int style = wxCHOICEDLG_STYLE, Point pos = wxDefaultPosition)
+- { super(wxSingleChoiceDialog_ctor(wxObject.SafePtr(parent), message, caption, choices.length, choices, wxObject.SafePtr(clientData), style, pos));}
++ { super(wxSingleChoiceDialog_ctor(wxObject.SafePtr(parent), message, caption, choices.length, choices.ptr, wxObject.SafePtr(clientData), style, pos));}
+
+ //-----------------------------------------------------------------------------
+
+@@ -93,13 +93,13 @@
+ { super(wxobj);}
+
+ public this(Window parent, string message, string caption, string[] choices, int style = SingleChoiceDialog.wxCHOICEDLG_STYLE, Point pos = wxDefaultPosition)
+- { super(wxMultiChoiceDialog_ctor(wxObject.SafePtr(parent), message, caption, choices.length, choices, style, pos));}
++ { super(wxMultiChoiceDialog_ctor(wxObject.SafePtr(parent), message, caption, choices.length, choices.ptr, style, pos));}
+
+ //-----------------------------------------------------------------------------
+
+ public void SetSelections(int[] sel)
+ {
+- wxMultiChoiceDialog_SetSelections(wxobj, sel, sel.length);
++ wxMultiChoiceDialog_SetSelections(wxobj, sel.ptr, sel.length);
+ }
+
+ //-----------------------------------------------------------------------------
+@@ -122,22 +122,22 @@
+
+ public string GetSingleChoice(string message, string caption, string[] choices, Window parent = null, int x = -1, int y= -1, bool centre = true, int width = SingleChoiceDialog.wxCHOICE_WIDTH, int height = SingleChoiceDialog.wxCHOICE_HEIGHT)
+ {
+- return wxGetSingleChoice_func(message, caption, choices.length, choices, wxObject.SafePtr(parent), x, y, centre, width, height).dup;
++ return wxGetSingleChoice_func(message, caption, choices.length, choices.ptr, wxObject.SafePtr(parent), x, y, centre, width, height).dup;
+ }
+
+ public int GetSingleChoiceIndex(string message, string caption, string[] choices, Window parent = null, int x = -1, int y= -1, bool centre = true, int width = SingleChoiceDialog.wxCHOICE_WIDTH, int height = SingleChoiceDialog.wxCHOICE_HEIGHT)
+ {
+- return wxGetSingleChoiceIndex_func(message, caption, choices.length, choices, wxObject.SafePtr(parent), x, y, centre, width, height);
++ return wxGetSingleChoiceIndex_func(message, caption, choices.length, choices.ptr, wxObject.SafePtr(parent), x, y, centre, width, height);
+ }
+
+ public void* GetSingleChoiceData(string message, string caption, string[] choices, void **client_data, Window parent = null, int x = -1, int y= -1, bool centre = true, int width = SingleChoiceDialog.wxCHOICE_WIDTH, int height = SingleChoiceDialog.wxCHOICE_HEIGHT)
+ {
+- return wxGetSingleChoiceData_func(message, caption, choices.length, choices, client_data, wxObject.SafePtr(parent), x, y, centre, width, height);
++ return wxGetSingleChoiceData_func(message, caption, choices.length, choices.ptr, client_data, wxObject.SafePtr(parent), x, y, centre, width, height);
+ }
+
+ public int[] GetMultipleChoices(string message, string caption, string[] choices, Window parent = null, int x = -1, int y= -1, bool centre = true, int width = SingleChoiceDialog.wxCHOICE_WIDTH, int height = SingleChoiceDialog.wxCHOICE_HEIGHT)
+ {
+ ArrayInt ari = new ArrayInt();
+- uint sz = wxGetMultipleChoices_func(wxObject.SafePtr(ari), message, caption, choices.length, choices, wxObject.SafePtr(parent), x, y, centre, width, height);
++ uint sz = wxGetMultipleChoices_func(wxObject.SafePtr(ari), message, caption, choices.length, choices.ptr, wxObject.SafePtr(parent), x, y, centre, width, height);
+ return ari.toArray();
+ }
+diff -urN work/wxd/wx/ComboBox.d work_new/wxd/wx/ComboBox.d
+--- work/wxd/wx/ComboBox.d Fri Aug 18 15:02:24 2006
++++ wx/ComboBox.d Tue Jan 16 19:42:51 2007
+@@ -89,7 +89,7 @@
+ super(wxComboBox_ctor());
+ if(!wxComboBox_Create(wxobj, wxObject.SafePtr(parent), id,
+ value, pos, size,
+- choices.length, choices, cast(uint)style,
++ choices.length, choices.ptr, cast(uint)style,
+ wxObject.SafePtr(validator), name))
+ {
+ throw new InvalidOperationException("Failed to create ListBox");
+@@ -114,7 +114,7 @@
+ {
+ return wxComboBox_Create(wxobj, wxObject.SafePtr(parent), id,
+ value, pos, size,
+- choices.length, choices,
++ choices.length, choices.ptr,
+ cast(uint)style, wxObject.SafePtr(validator), name);
+ }
+
+diff -urN work/wxd/wx/DC.d work_new/wxd/wx/DC.d
+--- work/wxd/wx/DC.d Tue Sep 5 11:47:46 2006
++++ wx/DC.d Tue Jan 16 19:44:42 2007
+@@ -267,7 +267,7 @@
+
+ public void DrawPolygon(int n, Point[] points, int xoffset, int yoffset, FillStyle fill_style)
+ {
+- wxDC_DrawPolygon(wxobj, n, points, xoffset, yoffset, cast(int)fill_style);
++ wxDC_DrawPolygon(wxobj, n, points.ptr, xoffset, yoffset, cast(int)fill_style);
+ }
+
+ //---------------------------------------------------------------------
+@@ -543,7 +543,7 @@
+
+ public void DrawLines(Point[] points, int xoffset, int yoffset)
+ {
+- wxDC_DrawLines(wxobj, points.length, points, xoffset, yoffset);
++ wxDC_DrawLines(wxobj, points.length, points.ptr, xoffset, yoffset);
+ }
+
+ public void DrawLines(Point[] points)
+@@ -643,7 +643,7 @@
+
+ public void DrawSpline(Point[] points)
+ {
+- wxDC_DrawSpline2(wxobj, points.length, points);
++ wxDC_DrawSpline2(wxobj, points.length, points.ptr);
+ }
+
+ //---------------------------------------------------------------------
+diff -urN work/wxd/wx/Frame.d work_new/wxd/wx/Frame.d
+--- work/wxd/wx/Frame.d Fri Aug 18 15:02:24 2006
++++ wx/Frame.d Tue Jan 16 19:45:26 2007
+@@ -211,7 +211,7 @@
+
+ public void SetStatusWidths(int n, int[] widths)
+ {
+- wxFrame_SetStatusWidths(wxobj, n, widths);
++ wxFrame_SetStatusWidths(wxobj, n, widths.ptr);
+ }
+
+ //---------------------------------------------------------------------
+diff -urN work/wxd/wx/Grid.d work_new/wxd/wx/Grid.d
+--- work/wxd/wx/Grid.d Sun Oct 1 23:30:40 2006
++++ wx/Grid.d Tue Jan 16 19:54:56 2007
+@@ -767,7 +767,7 @@
+
+ public this(string[] choices, bool allowOthers)
+ {
+- this(wxGridCellChoiceEditor_ctor(choices.length, choices, allowOthers), true);
++ this(wxGridCellChoiceEditor_ctor(choices.length, choices.ptr, allowOthers), true);
+ wxGridCellChoiceEditor_RegisterDisposable(wxobj, &VirtualDispose);
+ }
+
+diff -urN work/wxd/wx/GridCtrl.d work_new/wxd/wx/GridCtrl.d
+--- work/wxd/wx/GridCtrl.d Fri Aug 18 15:02:25 2006
++++ wx/GridCtrl.d Tue Jan 16 19:55:26 2007
+@@ -95,7 +95,7 @@
+ { this(cast(string[])null);}
+
+ public this(string[] choices)
+- { this(wxGridCellEnumRenderer_ctor(choices.length, choices), true);}
++ { this(wxGridCellEnumRenderer_ctor(choices.length, choices.ptr), true);}
+
+ public this(IntPtr wxobj)
+ {
+diff -urN work/wxd/wx/HTML.d work_new/wxd/wx/HTML.d
+--- work/wxd/wx/HTML.d Fri Aug 18 15:02:25 2006
++++ wx/HTML.d Tue Jan 16 19:46:40 2007
+@@ -942,7 +942,7 @@
+
+ public void SetFonts(string normal_face, string fixed_face, int[] sizes)
+ {
+- wxHtmlWinParser_SetFonts(wxobj, normal_face, fixed_face, sizes);
++ wxHtmlWinParser_SetFonts(wxobj, normal_face, fixed_face, sizes.ptr);
+ }
+
+ //-----------------------------------------------------------------------------
+@@ -1536,7 +1536,7 @@
+
+ public void SetFonts(string normal_face, string fixed_face, int[] sizes)
+ {
+- wxHtmlEasyPrinting_SetFonts(wxobj, normal_face, fixed_face, sizes);
++ wxHtmlEasyPrinting_SetFonts(wxobj, normal_face, fixed_face, sizes.ptr);
+ }
+
+ //-----------------------------------------------------------------------------
+@@ -1725,7 +1725,7 @@
+
+ public void SetFonts(string normal_face, string fixed_face, int[] sizes)
+ {
+- wxHtmlWindow_SetFonts(wxobj, normal_face, fixed_face, sizes);
++ wxHtmlWindow_SetFonts(wxobj, normal_face, fixed_face, sizes.ptr);
+ }
+
+ //-----------------------------------------------------------------------------
+diff -urN work/wxd/wx/ListBox.d work_new/wxd/wx/ListBox.d
+--- work/wxd/wx/ListBox.d Sat Aug 26 14:41:22 2006
++++ wx/ListBox.d Tue Jan 16 19:50:51 2007
+@@ -81,7 +81,7 @@
+ {
+ super(wxListBox_ctor());
+ if(!wxListBox_Create(wxobj, wxObject.SafePtr(parent), id,
+- pos, size, choices.length, choices, cast(uint)style,
++ pos, size, choices.length, choices.ptr, cast(uint)style,
+ wxObject.SafePtr(validator), name))
+ {
+ throw new InvalidOperationException("Failed to create ListBox");
+@@ -101,7 +101,7 @@
+ string[] choices, int style, Validator validator, string name)
+ {
+ return wxListBox_Create(wxobj, wxObject.SafePtr(parent), id,
+- pos, size, n, choices, cast(uint)style,
++ pos, size, n, choices.ptr, cast(uint)style,
+ wxObject.SafePtr(validator), name);
+ }
+
+@@ -186,19 +186,19 @@
+
+ public void InsertItems(string[] items, int pos)
+ {
+- wxListBox_InsertItems(wxobj, items.length, items, pos);
++ wxListBox_InsertItems(wxobj, items.length, items.ptr, pos);
+ }
+
+ //---------------------------------------------------------------------
+
+ public void Set(string[] items, ClientData data)
+ {
+- wxListBox_Set(wxobj, items.length, items, wxObject.SafePtr(data));
++ wxListBox_Set(wxobj, items.length, items.ptr, wxObject.SafePtr(data));
+ }
+
+ public void Set(string[] items)
+ {
+- wxListBox_Set(wxobj, items.length, items, wxObject.SafePtr(null));
++ wxListBox_Set(wxobj, items.length, items.ptr, wxObject.SafePtr(null));
+ }
+
+ //---------------------------------------------------------------------
+@@ -302,7 +302,7 @@
+ { super(wxCheckListBox_ctor1());}
+
+ public this(Window parent, int id, Point pos = wxDefaultPosition, Size size = wxDefaultSize, string[] choices = null, int style = 0, Validator validator = null, string name = wxListBoxNameStr)
+- { super(wxCheckListBox_ctor2(wxObject.SafePtr(parent), id, pos, size, choices.length, choices, cast(uint)style, wxObject.SafePtr(validator), name));}
++ { super(wxCheckListBox_ctor2(wxObject.SafePtr(parent), id, pos, size, choices.length, choices.ptr, cast(uint)style, wxObject.SafePtr(validator), name));}
+
+ //---------------------------------------------------------------------
+ // ctors with self created id
+diff -urN work/wxd/wx/RadioBox.d work_new/wxd/wx/RadioBox.d
+--- work/wxd/wx/RadioBox.d Fri Aug 18 15:02:25 2006
++++ wx/RadioBox.d Tue Jan 16 19:52:15 2007
+@@ -67,7 +67,7 @@
+ {
+ super(wxRadioBox_ctor());
+ if (!wxRadioBox_Create(wxobj, wxObject.SafePtr(parent), id, label, pos, size,
+- choices.length, choices, majorDimension, cast(uint)style, wxObject.SafePtr(val), name))
++ choices.length, choices.ptr, majorDimension, cast(uint)style, wxObject.SafePtr(val), name))
+ {
+ throw new InvalidOperationException("failed to create checkbox");
+ }
+diff -urN work/wxd/wx/StatusBar.d work_new/wxd/wx/StatusBar.d
+--- work/wxd/wx/StatusBar.d Fri Aug 18 15:02:26 2006
++++ wx/StatusBar.d Tue Jan 16 19:54:13 2007
+@@ -81,7 +81,7 @@
+
+ public void SetFieldsCount(int number, int[] widths)
+ {
+- wxStatusBar_SetFieldsCount(wxobj, number, widths);
++ wxStatusBar_SetFieldsCount(wxobj, number, widths.ptr);
+ }
+
+ public int FieldsCount() { return wxStatusBar_GetFieldsCount(wxobj); }
+@@ -120,7 +120,7 @@
+
+ public void StatusWidths(int[] value)
+ {
+- SetStatusWidths(value.length, value);
++ SetStatusWidths(value.length, value.ptr);
+ }
+
+ public void SetStatusWidths(int n, int* widths)
+@@ -163,7 +163,7 @@
+
+ public void StatusStyles(int[] value)
+ {
+- wxStatusBar_SetStatusStyles(wxobj, value.length, value);
++ wxStatusBar_SetStatusStyles(wxobj, value.length, value.ptr);
+ }
+
+ }
diff --git a/x11-toolkits/wxd/pkg-plist b/x11-toolkits/wxd/pkg-plist
index 053e9155e760..40f979cbb5bb 100644
--- a/x11-toolkits/wxd/pkg-plist
+++ b/x11-toolkits/wxd/pkg-plist
@@ -465,7 +465,7 @@ lib/libwxd.a
@dirrm include/d/wx/ogl
@dirrm include/d/wx/aui
@dirrm include/d/wx
-@dirrm include/d
+@dirrmtry include/d
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Xrc/rc
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Xrc
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Wizard