1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00

games/arx-libertatis: minor cleanup

- Convert to USE_GL
- Convert to option helpers

Approved by:	portmgr blanket
This commit is contained in:
Jan Beich 2015-09-20 01:12:35 +00:00
parent 343dc0a4b9
commit c3518c0973
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397346

View File

@ -14,13 +14,12 @@ COMMENT= Cross-platform port of Arx Fatalis
LICENSE= GPLv3 # or later
LICENSE_FILE= ${WRKSRC}/ARX_PUBLIC_LICENSE.txt
LIB_DEPENDS= libGLEW.so:${PORTSDIR}/graphics/glew \
libfreetype.so:${PORTSDIR}/print/freetype2
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
BUILD_DEPENDS= ${LOCALBASE}/include/boost/foreach.hpp:${PORTSDIR}/devel/boost-libs
USES= cmake openal tar:xz
USE_SDL= sdl
USE_GL= gl
USE_GL= gl glew
CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR="man" -DDATA_DIR=arx -DSTRICT_USE=ON
SUB_FILES= pkg-message
@ -28,19 +27,16 @@ SUB_FILES= pkg-message
PORTDOCS= AUTHORS CHANGELOG README.md
OPTIONS_DEFINE= CRASHREPORTER DOCS
OPTIONS_SUB= yes
CRASHREPORTER_DESC= Build crash reporter (requires Qt4)
CRASHREPORTER_USE= QT4=corelib,gui,network \
QT4=rcc_build,moc_build,uic_build,qmake_build
CRASHREPORTER_CMAKE_ON= -DBUILD_CRASHREPORTER=ON -DUSE_QT5=OFF
CRASHREPORTER_CMAKE_OFF=-DBUILD_CRASHREPORTER=OFF
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCRASHREPORTER}
USE_QT4= corelib gui network rcc_build moc_build uic_build qmake_build
CMAKE_ARGS+= -DBUILD_CRASHREPORTER=ON -DUSE_QT5=OFF
PLIST_SUB+= CRASHREPORTER=""
.else
CMAKE_ARGS+= -DBUILD_CRASHREPORTER=OFF
PLIST_SUB+= CRASHREPORTER="@comment "
.endif
post-patch:
.if ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1000705 && ${OSVERSION} < 1001503) || (${OSVERSION} >= 1100000 && ${OSVERSION} < 1100046))
# Workaround for clang 3.4 bug: it crashes when debug info is enabled