aboutsummaryrefslogtreecommitdiff
path: root/math/graphthing
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2005-07-04 15:37:00 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2005-07-04 15:37:00 +0000
commit7840bcb8b536c26cfa4537ce66582b692568a50e (patch)
tree026c0b88e7adaf08a261c775b6e5c10c8e6874ea /math/graphthing
parent9b91dbfc3ebe437299e386e188e196ece8edc77d (diff)
downloadports-7840bcb8b536c26cfa4537ce66582b692568a50e.tar.gz
ports-7840bcb8b536c26cfa4537ce66582b692568a50e.zip
Notes
Diffstat (limited to 'math/graphthing')
-rw-r--r--math/graphthing/Makefile17
-rw-r--r--math/graphthing/distinfo4
-rw-r--r--math/graphthing/files/patch-src-exporter.cc10
-rw-r--r--math/graphthing/files/patch-src-gui.h18
4 files changed, 23 insertions, 26 deletions
diff --git a/math/graphthing/Makefile b/math/graphthing/Makefile
index 238659063acf..27e5d0553048 100644
--- a/math/graphthing/Makefile
+++ b/math/graphthing/Makefile
@@ -7,26 +7,31 @@
#
PORTNAME= graphthing
-PORTVERSION= 0.9.5
+PORTVERSION= 1.0
CATEGORIES= math
MASTER_SITES= http://graph.seul.org/
MAINTAINER= ports@FreeBSD.org
COMMENT= A tool that allows you to create, manipulate and study graphs
-LIB_DEPENDS= gtkmm.2:${PORTSDIR}/x11-toolkits/gtk--
+LIB_DEPENDS= wx_gtk2_core-2.6.0:${PORTSDIR}/x11-toolkits/wxgtk26
USE_BZIP2= yes
-USE_GNOME= gnometarget gtk12
+USE_GNOME= gnometarget gtk20
USE_BISON= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS= --with-wx-config=${X11BASE}/bin/wxgtk2-2.6-config
PLIST_FILES= bin/graphthing bin/gt
-post-patch:
- ${REINPLACE_CMD} -e "s,\/usr\/include\/gtk-1.2\/gdk\/gdkkeysyms.h,," \
- ${WRKSRC}/src/depend.1
+CPPFLAGS= ${PTHREAD_CFLAGS}
+LDFLAGS= ${PTHREAD_LIBS}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/graphthing ${PREFIX}/bin
+ ${LN} -sf graphthing ${PREFIX}/bin/gt
.include <bsd.port.mk>
diff --git a/math/graphthing/distinfo b/math/graphthing/distinfo
index 905fda69c381..c5a7a5344439 100644
--- a/math/graphthing/distinfo
+++ b/math/graphthing/distinfo
@@ -1,2 +1,2 @@
-MD5 (graphthing-0.9.5.tar.bz2) = 343f958d0b2bb8558006ec92048d8c98
-SIZE (graphthing-0.9.5.tar.bz2) = 138622
+MD5 (graphthing-1.0.tar.bz2) = 33dda372a386e0e5a55f31ba0bc5ec36
+SIZE (graphthing-1.0.tar.bz2) = 127900
diff --git a/math/graphthing/files/patch-src-exporter.cc b/math/graphthing/files/patch-src-exporter.cc
new file mode 100644
index 000000000000..b8ac15e1c39a
--- /dev/null
+++ b/math/graphthing/files/patch-src-exporter.cc
@@ -0,0 +1,10 @@
+--- src/exporter.cc.orig Sun Jul 3 13:27:10 2005
++++ src/exporter.cc Sun Jul 3 18:15:55 2005
+@@ -5,6 +5,7 @@
+ #include <fstream>
+ #include <iostream>
+ #include <stdexcept>
++#include <ctime>
+ #include "config.h"
+ #include "edge.h"
+ #include "exporter.h"
diff --git a/math/graphthing/files/patch-src-gui.h b/math/graphthing/files/patch-src-gui.h
deleted file mode 100644
index 8018b28a56d3..000000000000
--- a/math/graphthing/files/patch-src-gui.h
+++ /dev/null
@@ -1,18 +0,0 @@
---- src/gui.h.orig Thu Feb 24 14:11:10 2005
-+++ src/gui.h Thu Feb 24 14:11:12 2005
-@@ -140,7 +140,6 @@ public:
- class ParamDialog : public Gtk::Dialog
- {
- protected:
-- void ok_click ();
-
- virtual int delete_event_impl (GdkEventAny *ev);
- virtual void get_data () = 0;
-@@ -148,6 +147,7 @@ protected:
- public:
- bool cancelled;
-
-+ void ok_click ();
- ParamDialog (const String &title = "Prefab Parameter");
- };
-