2013-03-08 11:51:34 +01:00
|
|
|
# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
|
2006-05-10 20:35:19 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gtkradiant
|
|
|
|
PORTVERSION= 1.5.0
|
2015-04-23 09:26:09 +02:00
|
|
|
PORTREVISION= 14
|
2013-09-06 16:28:02 +02:00
|
|
|
CATEGORIES= games cad
|
2015-04-18 18:29:01 +02:00
|
|
|
MASTER_SITES= IDSOFTWARE/source/:id \
|
2006-05-10 20:35:19 +02:00
|
|
|
http://www.bsd-geek.de/FreeBSD/distfiles/:fb
|
|
|
|
DISTNAME= GtkRadiant-GPL
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:id \
|
|
|
|
${PORTNAME}_gamepacks${EXTRACT_SUFX}:fb
|
|
|
|
|
2011-01-07 08:43:39 +01:00
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
2013-09-06 16:28:02 +02:00
|
|
|
COMMENT= Map editor for FPS games, by id Software and Loki Software
|
2006-05-10 20:35:19 +02:00
|
|
|
|
2011-01-07 08:43:39 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libgtkglext-x11-1.0.so:x11-toolkits/gtkglext \
|
|
|
|
libmhash.so:security/mhash \
|
|
|
|
libpng.so:graphics/png
|
2006-05-10 20:35:19 +02:00
|
|
|
|
2014-10-20 19:36:02 +02:00
|
|
|
USES= pkgconfig python:build scons zip
|
2006-05-10 20:35:19 +02:00
|
|
|
USE_GNOME= gtk20 libxml2
|
2014-05-27 15:47:59 +02:00
|
|
|
MAKE_ARGS= ${MAKE_ENV} BUILD=release
|
2015-04-18 18:29:01 +02:00
|
|
|
SSP_UNSAFE= yes
|
2006-05-10 20:35:19 +02:00
|
|
|
|
|
|
|
DATADIR= ${PREFIX}/lib/${PORTNAME}
|
2013-09-06 16:28:02 +02:00
|
|
|
WRKSRC= ${WRKDIR}/GPL/GtkRadiant
|
|
|
|
|
|
|
|
SUB_FILES= ${PORTNAME}
|
2006-05-10 20:35:19 +02:00
|
|
|
|
2016-11-14 07:19:30 +01:00
|
|
|
BROKEN_aarch64= Fails to link: error: ldd command returned with exit code 256
|
|
|
|
|
2006-05-10 20:35:19 +02:00
|
|
|
post-patch:
|
|
|
|
@${GREP} -Rl 'defined[[:blank:]]*([[:blank:]]*__linux__[[:blank:]]*) || defined[[:blank:]]*([[:blank:]]*__APPLE__[[:blank:]]*)' ${WRKSRC} | \
|
|
|
|
${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's/\(defined[[:blank:]]*([[:blank:]]*__linux__[[:blank:]]*) || defined[[:blank:]]*([[:blank:]]*__APPLE__[[:blank:]]*)\)/\1 || defined (__FreeBSD__)/'
|
2013-03-08 11:51:34 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
|
|
|
|
${WRKSRC}/libs/os/dir.h \
|
|
|
|
${WRKSRC}/libs/gtkutil/idledraw.h \
|
|
|
|
${WRKSRC}/libs/gtkutil/cursor.h \
|
|
|
|
${WRKSRC}/libs/convert.h \
|
|
|
|
${WRKSRC}/plugins/shaders/shaders.cpp \
|
|
|
|
${WRKSRC}/plugins/vfspk3/vfs.cpp \
|
|
|
|
${WRKSRC}/radiant/feedback.h \
|
|
|
|
${WRKSRC}/radiant/environment.cpp \
|
|
|
|
${WRKSRC}/radiant/patch.cpp \
|
|
|
|
${WRKSRC}/radiant/watchbsp.cpp \
|
|
|
|
${WRKSRC}/tools/quake3/common/inout.c
|
2013-09-06 16:28:02 +02:00
|
|
|
# Fix the build against Clang
|
|
|
|
@${REINPLACE_CMD} -e '/#include "generic\/reference\.h"/x ; 318G' \
|
2013-09-05 18:33:40 +02:00
|
|
|
${WRKSRC}/libs/scenelib.h
|
2013-09-06 16:28:02 +02:00
|
|
|
@${REINPLACE_CMD} -e '/#include "generic\/referencecounted\.h/ { \
|
2013-09-05 18:33:40 +02:00
|
|
|
x ; s/^/#include "scenelib.h"/ ; G ; }' \
|
|
|
|
${WRKSRC}/plugins/mapq3/parse.h
|
2013-09-06 16:28:02 +02:00
|
|
|
# Fix warnings of "GtkSpinButton: setting an adjustment with non-zero
|
|
|
|
# page size is deprecated" (very annoying)
|
2015-04-18 18:29:01 +02:00
|
|
|
@${GREP} -Rl --null gtk_adjustment_new ${WRKSRC} | ${XARGS} -0 \
|
|
|
|
${REINPLACE_CMD} -E 's|(gtk_adjustment_new[^)]*,)[^)]*|\1 0|'
|
2006-05-10 20:35:19 +02:00
|
|
|
|
2013-12-15 16:54:17 +01:00
|
|
|
pre-install:
|
2006-07-14 19:21:42 +02:00
|
|
|
cd ${WRKSRC} && ${PYTHON_CMD} install.py
|
2013-09-05 18:33:40 +02:00
|
|
|
${CP} -a ${WRKDIR}/${PORTNAME}_gamepacks/* ${WRKSRC}/install
|
2006-05-10 20:35:19 +02:00
|
|
|
|
|
|
|
do-install:
|
2013-12-15 16:54:17 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${CP} -a ${WRKSRC}/install/* ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
2006-05-10 20:35:19 +02:00
|
|
|
|
2007-10-04 03:02:44 +02:00
|
|
|
.include <bsd.port.mk>
|