aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2012-03-24 16:44:25 +0000
committerMartin Wilke <miwi@FreeBSD.org>2012-03-24 16:44:25 +0000
commit88bef0c59649241ec4c21bedfb974730ceddd161 (patch)
treef7af1de4f35dc6892cb8b393a4c35f73cd033d04
parent64a7742d2bd2512d3f562b0592416bdc5a2cac4f (diff)
downloadports-88bef0c59649241ec4c21bedfb974730ceddd161.tar.gz
ports-88bef0c59649241ec4c21bedfb974730ceddd161.zip
Notes
-rw-r--r--math/graphthing/Makefile11
-rw-r--r--math/graphthing/files/patch-src__fancyfileselection.cc22
2 files changed, 30 insertions, 3 deletions
diff --git a/math/graphthing/Makefile b/math/graphthing/Makefile
index 39c49a084b9c..80c363e7d095 100644
--- a/math/graphthing/Makefile
+++ b/math/graphthing/Makefile
@@ -8,7 +8,7 @@
PORTNAME= graphthing
PORTVERSION= 1.3.2
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= math
MASTER_SITES= http://graph.seul.org/
@@ -21,17 +21,22 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USE_BZIP2= yes
USE_GNOME= gtk20
USE_BISON= build
-USE_GMAKE= yes
-USE_WX= 2.6
+USE_WX= 2.6+
WX_CONF_ARGS= absolute
+USE_GMAKE= yes
GNU_CONFIGURE= yes
MAKEFILE= GNUmakefile
+MAKE_JOBS_SAFE= yes
PLIST_FILES= bin/graphthing bin/gt
CPPFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LIBS}
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|@@CXX@|@CXX@|' ${WRKSRC}/src/GNUmakefile.in
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/graphthing ${PREFIX}/bin
${LN} -sf graphthing ${PREFIX}/bin/gt
diff --git a/math/graphthing/files/patch-src__fancyfileselection.cc b/math/graphthing/files/patch-src__fancyfileselection.cc
new file mode 100644
index 000000000000..5689f836ddd7
--- /dev/null
+++ b/math/graphthing/files/patch-src__fancyfileselection.cc
@@ -0,0 +1,22 @@
+--- src/fancyfileselection.cc.orig 2006-09-11 10:32:12.000000000 +0900
++++ src/fancyfileselection.cc 2012-02-13 23:12:49.000000000 +0900
+@@ -21,6 +21,10 @@
+ { "Postscript", ".ps" }
+ };
+
++#if !WXWIN_COMPATIBILITY_2_4
++# define wxHIDE_READONLY 0
++#endif
++
+ FancyFileSelection::FancyFileSelection (wxWindow *parent, const wxString &title,
+ long style, bool file_types,
+ const wxString &mask)
+@@ -30,7 +34,7 @@
+ style |= wxHIDE_READONLY;
+ else if (style & wxSAVE)
+ style |= wxOVERWRITE_PROMPT;
+- SetStyle (style);
++ SetWindowStyle (style);
+
+ if (file_types) {
+ wxString wc = wxT("");