Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2015 01:12:36 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r397346 - head/games/arx-libertatis
Message-ID:  <201509200112.t8K1CaYW000787@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sun Sep 20 01:12:35 2015
New Revision: 397346
URL: https://svnweb.freebsd.org/changeset/ports/397346

Log:
  games/arx-libertatis: minor cleanup
  
  - Convert to USE_GL
  - Convert to option helpers
  
  Approved by:	portmgr blanket

Modified:
  head/games/arx-libertatis/Makefile   (contents, props changed)

Modified: head/games/arx-libertatis/Makefile
==============================================================================
--- head/games/arx-libertatis/Makefile	Sun Sep 20 01:12:22 2015	(r397345)
+++ head/games/arx-libertatis/Makefile	Sun Sep 20 01:12:35 2015	(r397346)
@@ -14,13 +14,12 @@ COMMENT=	Cross-platform port of Arx Fata
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509200112.t8K1CaYW000787>