a9f015d155
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
71 lines
2.4 KiB
Makefile
71 lines
2.4 KiB
Makefile
# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gtkradiant
|
|
PORTVERSION= 1.5.0
|
|
PORTREVISION= 15
|
|
CATEGORIES= games cad
|
|
MASTER_SITES= IDSOFTWARE/source/:id \
|
|
http://www.bsd-geek.de/FreeBSD/distfiles/:fb
|
|
DISTNAME= GtkRadiant-GPL
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:id \
|
|
${PORTNAME}_gamepacks${EXTRACT_SUFX}:fb
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Map editor for FPS games, by id Software and Loki Software
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BROKEN_aarch64= Fails to link: error: ldd command returned with exit code 256
|
|
|
|
LIB_DEPENDS= libgtkglext-x11-1.0.so:x11-toolkits/gtkglext \
|
|
libmhash.so:security/mhash \
|
|
libpng.so:graphics/png
|
|
|
|
USES= compiler:c++11-lang gnome pkgconfig python:2.7,build scons zip
|
|
USE_GNOME= gtk20 libxml2
|
|
MAKE_ARGS= ${MAKE_ENV} BUILD=release
|
|
SSP_UNSAFE= yes
|
|
|
|
DATADIR= ${PREFIX}/lib/${PORTNAME}
|
|
WRKSRC= ${WRKDIR}/GPL/GtkRadiant
|
|
|
|
SUB_FILES= ${PORTNAME}
|
|
|
|
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__)/'
|
|
@${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
|
|
# 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/ { \
|
|
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)
|
|
@${GREP} -Rl --null gtk_adjustment_new ${WRKSRC} | ${XARGS} -0 \
|
|
${REINPLACE_CMD} -E 's|(gtk_adjustment_new[^)]*,)[^)]*|\1 0|'
|
|
|
|
pre-install:
|
|
cd ${WRKSRC} && ${PYTHON_CMD} install.py
|
|
${CP} -a ${WRKDIR}/${PORTNAME}_gamepacks/* ${WRKSRC}/install
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${CP} -a ${WRKSRC}/install/* ${STAGEDIR}${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|