aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-09-06 22:28:02 +0800
committerdanfe <danfe@FreeBSD.org>2013-09-06 22:28:02 +0800
commitd176cd905d1ac7643eaaaced37fae7fa6e3e77d0 (patch)
tree822078eefa0f94820a7aa9e63957f5ca54367081 /games
parent2130dd870b524a53a7efd14bb6c6ef8a2ed5c3ad (diff)
downloadfreebsd-ports-gnome-d176cd905d1ac7643eaaaced37fae7fa6e3e77d0.tar.gz
freebsd-ports-gnome-d176cd905d1ac7643eaaaced37fae7fa6e3e77d0.tar.zst
freebsd-ports-gnome-d176cd905d1ac7643eaaaced37fae7fa6e3e77d0.zip
- Reduce some minor differences with `games/netradiant'; mention the latter
in the port description - While here, fix annoying warnings of "GtkSpinButton: setting an adjustment with non-zero page size is deprecated"
Diffstat (limited to 'games')
-rw-r--r--games/gtkradiant/Makefile19
-rw-r--r--games/gtkradiant/pkg-descr2
2 files changed, 14 insertions, 7 deletions
diff --git a/games/gtkradiant/Makefile b/games/gtkradiant/Makefile
index 55882cbf630e..2ccdeecec3e7 100644
--- a/games/gtkradiant/Makefile
+++ b/games/gtkradiant/Makefile
@@ -4,7 +4,7 @@
PORTNAME= gtkradiant
PORTVERSION= 1.5.0
PORTREVISION= 9
-CATEGORIES= games
+CATEGORIES= games cad
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE:S|$|source/:id|} \
http://www.bsd-geek.de/FreeBSD/distfiles/:fb
DISTNAME= GtkRadiant-GPL
@@ -12,7 +12,7 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:id \
${PORTNAME}_gamepacks${EXTRACT_SUFX}:fb
MAINTAINER= danfe@FreeBSD.org
-COMMENT= Level design program developed by id Software and Loki Software
+COMMENT= Map editor for FPS games, by id Software and Loki Software
LICENSE= GPLv2
@@ -20,8 +20,6 @@ LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext \
libmhash.so:${PORTSDIR}/security/mhash \
libpng15.so:${PORTSDIR}/graphics/png
-WRKSRC= ${WRKDIR}/GPL/GtkRadiant
-
USES= pkgconfig
USE_ZIP= yes
USE_GNOME= gtk20 libxml2
@@ -29,8 +27,10 @@ USE_PYTHON_BUILD= yes
USE_SCONS= yes
SCONS_ARGS= ${MAKE_ENV} BUILD=release
-SUB_FILES= ${PORTNAME}
DATADIR= ${PREFIX}/lib/${PORTNAME}
+WRKSRC= ${WRKDIR}/GPL/GtkRadiant
+
+SUB_FILES= ${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's/-ldl//' ${WRKSRC}/SConscript
@@ -49,11 +49,16 @@ post-patch:
${WRKSRC}/radiant/patch.cpp \
${WRKSRC}/radiant/watchbsp.cpp \
${WRKSRC}/tools/quake3/common/inout.c
- @${REINPLACE_CMD} -e '/#include "generic\/reference.h"/x ; 318G' \
+# Fix the build against Clang
+ @${REINPLACE_CMD} -e '/#include "generic\/reference\.h"/x ; 318G' \
${WRKSRC}/libs/scenelib.h
- @${REINPLACE_CMD} -e '/#include "generic\/referencecounted.h/ { \
+ @${REINPLACE_CMD} -e '/#include "generic\/referencecounted\.h/ { \
x ; s/^/#include "scenelib.h"/ ; G ; }' \
${WRKSRC}/plugins/mapq3/parse.h
+# Fix warnings of "GtkSpinButton: setting an adjustment with non-zero
+# page size is deprecated" (very annoying)
+ @${FIND} ${WRKSRC} -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} \
+ -E 's|(gtk_adjustment_new[^)]*,)[^)]*|\1 0|'
post-build:
cd ${WRKSRC} && ${PYTHON_CMD} install.py
diff --git a/games/gtkradiant/pkg-descr b/games/gtkradiant/pkg-descr
index ca4391e611de..1ff62ee7c14a 100644
--- a/games/gtkradiant/pkg-descr
+++ b/games/gtkradiant/pkg-descr
@@ -14,4 +14,6 @@ originally under id Software's proprietary license. The license for both the
editor and toolset (notably Q3Map2, the BSP compiler) was changed in February
2006, and publicly released under the GPL on February 17.
+More up-to-date fork, NetRadiant, is available as `games/netradiant' port.
+
WWW: http://www.qeradiant.com/