ports/166044: Update port: math/graphthing
KATO Tsuguru
tkato432 at yahoo.com
Tue Mar 13 18:10:11 UTC 2012
>Number: 166044
>Category: ports
>Synopsis: Update port: math/graphthing
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 13 18:10:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Fix build with newer wxWidgets
- Add MAKE_JOBS_SAFE
New file:
files/patch-src__fancyfileselection.cc
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/math/graphthing/Makefile math/graphthing/Makefile
--- /usr/ports/math/graphthing/Makefile 2012-02-22 02:12:11.000000000 +0900
+++ math/graphthing/Makefile 2012-02-29 21:49:26.000000000 +0900
@@ -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 @@
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 -urN /usr/ports/math/graphthing/files/patch-src__fancyfileselection.cc math/graphthing/files/patch-src__fancyfileselection.cc
--- /usr/ports/math/graphthing/files/patch-src__fancyfileselection.cc 1970-01-01 09:00:00.000000000 +0900
+++ math/graphthing/files/patch-src__fancyfileselection.cc 2012-02-13 23:13:45.000000000 +0900
@@ -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("");
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list