aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2016-05-30 20:01:18 +0800
committerjbeich <jbeich@FreeBSD.org>2016-05-30 20:01:18 +0800
commitfdf83f7e5ab472c889adb31f709b7edb067bd28e (patch)
treeba704be883f277a1294ea44e899c55c402a1037e /games
parent4dacd5bda4f22e2348f6bbedbbd04c62c89b902b (diff)
downloadfreebsd-ports-gnome-fdf83f7e5ab472c889adb31f709b7edb067bd28e.tar.gz
freebsd-ports-gnome-fdf83f7e5ab472c889adb31f709b7edb067bd28e.tar.zst
freebsd-ports-gnome-fdf83f7e5ab472c889adb31f709b7edb067bd28e.zip
games/burrtools: minor improvements
- Unbundle lua 5.1 - Adjust category and fix icon path in .desktop file - Avoid overlinking FLTK dependencies - Integrate DragonFly fix - Drop unnecessary patch - Drop unused xmlwrapp dependency - Convert to USES=localbase - Pacify stage-qa (shared libs) - Pacify portlint (regen patches)
Diffstat (limited to 'games')
-rw-r--r--games/burrtools/Makefile20
-rw-r--r--games/burrtools/files/patch-src-halfedge-polyhedron.cpp6
-rw-r--r--games/burrtools/files/patch-src-help-data2c.cpp20
-rw-r--r--games/burrtools/files/patch-src-lib-stl.cpp19
4 files changed, 19 insertions, 46 deletions
diff --git a/games/burrtools/Makefile b/games/burrtools/Makefile
index d4ca128ab43f..651cc094cb33 100644
--- a/games/burrtools/Makefile
+++ b/games/burrtools/Makefile
@@ -3,7 +3,7 @@
PORTNAME= burrtools
PORTVERSION= 0.6.3
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SF
@@ -15,31 +15,33 @@ LICENSE= GPLv3
BUILD_DEPENDS= netpbm>0:graphics/netpbm
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libpng.so:graphics/png \
- libxmlwrapp.so:textproc/xmlwrapp \
libfltk.so:x11-toolkits/fltk
-USES= gmake
-USE_XORG= x11 xt xext xmu xi
-USE_GL= glu
+USES= gmake localbase lua:51
+USE_GL= gl glu
GNU_CONFIGURE= yes
+CONFIGURE_ENV= ac_cv_lib_ICE_IceConnectionNumber="no" \
+ ac_cv_search_glutInit="none required"
CONFIGURE_ARGS= --disable-silent-rules
+MAKE_ARGS= am_lua_liblua_a_OBJECTS='lua/luaclass.$$(OBJEXT)'
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -lboost_system
+LDFLAGS+= -Wl,--as-needed # fltk deps
+LIBS+= -llua-${LUA_VER} -lboost_system # _ZN5boost6system15system_categoryEv
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/burrTxt bin/burrTxt2 bin/burrGui \
share/pixmaps/burricons.png
-DESKTOP_ENTRIES="BurrGui" "" "${PREFIX}/pixmaps/burricons.png" "burrGui" "" ""
+DESKTOP_ENTRIES="BurrGui" "" "burricons" "burrGui" "Game;LogicGame;" ""
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
+ @${REINPLACE_CMD} -e '/GL_X_LIBS/d' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|g++ |$$(CXX) | ; \
- s|-O2 |$$(CXXFLAGS) |' ${WRKSRC}/src/Makefile.in
+ s|-O2 |$$(CXXFLAGS) $$(LDFLAGS) |' ${WRKSRC}/src/Makefile.in
post-build:
(cd ${WRKSRC} && ${CAT} burricons.ico | winicontoppm -bestqual | \
diff --git a/games/burrtools/files/patch-src-halfedge-polyhedron.cpp b/games/burrtools/files/patch-src-halfedge-polyhedron.cpp
index 66837ea34385..cad8f32ad844 100644
--- a/games/burrtools/files/patch-src-halfedge-polyhedron.cpp
+++ b/games/burrtools/files/patch-src-halfedge-polyhedron.cpp
@@ -1,6 +1,6 @@
---- src/halfedge/polyhedron.cpp.orig 2011-07-23 21:04:15.000000000 +0400
-+++ src/halfedge/polyhedron.cpp 2014-02-19 09:19:56.242568734 +0400
-@@ -206,12 +206,12 @@
+--- src/halfedge/polyhedron.cpp.orig 2013-05-08 19:02:06 UTC
++++ src/halfedge/polyhedron.cpp
+@@ -206,12 +206,12 @@ void Polyhedron::finalize(void)
// add the edge, to make sure we don't process it again
handeled.insert(idx);
diff --git a/games/burrtools/files/patch-src-help-data2c.cpp b/games/burrtools/files/patch-src-help-data2c.cpp
deleted file mode 100644
index fd5bd68d23f2..000000000000
--- a/games/burrtools/files/patch-src-help-data2c.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
---- ./src/help/data2c.cpp.orig 2010-10-09 07:48:30.000000000 -0400
-+++ ./src/help/data2c.cpp 2010-11-11 20:19:35.000000000 -0500
-@@ -48,6 +48,9 @@
- fprintf(out, "\\x%02x", c);
- }
-
-+#if defined(__FreeBSD__)
-+#include <libgen.h>
-+#else
- #if defined(WIN32) || defined(__APPLE__)
- const char * basename(const char * n) {
-
-@@ -62,6 +65,7 @@
- return n;
- }
- #endif
-+#endif
-
-
- /* first param: output file name
diff --git a/games/burrtools/files/patch-src-lib-stl.cpp b/games/burrtools/files/patch-src-lib-stl.cpp
index 2295c039f148..fc0112e3b125 100644
--- a/games/burrtools/files/patch-src-lib-stl.cpp
+++ b/games/burrtools/files/patch-src-lib-stl.cpp
@@ -1,23 +1,14 @@
---- ./src/lib/stl.cpp.orig 2010-10-09 07:48:31.000000000 -0400
-+++ ./src/lib/stl.cpp 2010-11-11 20:19:35.000000000 -0500
-@@ -40,6 +40,9 @@
- * The concrete classes do the grid dependend stuff and add lots of triangles to the file
- */
+--- src/lib/stl.cpp.orig 2013-05-08 19:02:06 UTC
++++ src/lib/stl.cpp
+@@ -54,6 +54,8 @@ const char * basename(const char * name)
-+#if defined(__FreeBSD__)
-+#include <libgen.h>
-+#else
- #if defined(WIN32) || defined(__APPLE__)
- const char * basename(const char * name) {
- const char * res1 = strchr(name, '/');
-@@ -55,6 +58,7 @@
return res;
}
++#else
++#include <libgen.h>
#endif
-+#endif
- void stlExporter_c::write(const char * fname, const voxel_c & v, const faceList_c & holes)
@@ -62,7 +64,7 @@ void stlExporter_c::write(const char * f
FILE * f;
unsigned long triangleCount = 0;