2013-01-31 14:38:42 +01:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
2012-04-26 02:40:15 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= arx-libertatis
|
2014-10-28 14:26:40 +01:00
|
|
|
PORTVERSION= 1.1.2
|
2012-04-26 02:40:15 +02:00
|
|
|
CATEGORIES= games
|
2014-10-28 14:26:40 +01:00
|
|
|
MASTER_SITES= http://downloads.sourceforge.net/arx/ \
|
|
|
|
http://arx-libertatis.org/files/
|
2012-04-26 02:40:15 +02:00
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= Cross-platform port of Arx Fatalis
|
|
|
|
|
2014-10-28 14:26:40 +01:00
|
|
|
LICENSE= GPLv3 # or later
|
|
|
|
LICENSE_FILE= ${WRKSRC}/ARX_PUBLIC_LICENSE.txt
|
2012-04-26 02:40:15 +02:00
|
|
|
|
2013-10-18 01:52:17 +02:00
|
|
|
LIB_DEPENDS= libIL.so:${PORTSDIR}/graphics/devil \
|
|
|
|
libGLEW.so:${PORTSDIR}/graphics/glew \
|
|
|
|
libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
|
|
libboost_program_options.so:${PORTSDIR}/devel/boost-libs
|
2012-04-26 02:40:15 +02:00
|
|
|
|
2014-10-28 14:26:40 +01:00
|
|
|
USES= cmake openal tar:xz
|
2012-04-26 02:40:15 +02:00
|
|
|
USE_SDL= sdl
|
2014-10-28 14:26:40 +01:00
|
|
|
USE_GL= gl
|
|
|
|
CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR="man" -DDATA_DIR=arx -DSTRICT_USE=ON
|
2012-04-26 02:40:15 +02:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2012-06-22 04:16:09 +02:00
|
|
|
PORTDOCS= AUTHORS CHANGELOG README.md
|
|
|
|
|
2014-10-28 14:26:40 +01:00
|
|
|
OPTIONS_DEFINE= CRASHREPORTER DOCS
|
2013-05-31 16:40:56 +02:00
|
|
|
CRASHREPORTER_DESC= Build crash reporter (requires Qt4)
|
2012-04-26 02:40:15 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
.if ${PORT_OPTIONS:MCRASHREPORTER}
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= corelib gui network rcc_build moc_build uic_build qmake_build
|
2014-10-28 14:26:40 +01:00
|
|
|
CMAKE_ARGS+= -DBUILD_CRASHREPORTER=ON -DUSE_QT5=OFF
|
2012-04-26 02:40:15 +02:00
|
|
|
PLIST_SUB+= CRASHREPORTER=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DBUILD_CRASHREPORTER=OFF
|
|
|
|
PLIST_SUB+= CRASHREPORTER="@comment "
|
|
|
|
.endif
|
|
|
|
|
2014-10-28 14:26:40 +01:00
|
|
|
post-patch:
|
2014-10-28 03:11:42 +01:00
|
|
|
.if ${OSVERSION} >= 1000705
|
|
|
|
# Workaround for clang 3.4 bug: it crashes when debug info is enabled
|
|
|
|
# See http://llvm.org/bugs/show_bug.cgi?id=19031, http://llvm.org/bugs/show_bug.cgi?id=20893
|
2014-10-28 14:26:40 +01:00
|
|
|
@${REINPLACE_CMD} -e '/add_cxxflag.*-g2/ d' ${WRKSRC}/cmake/BuildType.cmake
|
2014-10-28 03:11:42 +01:00
|
|
|
.endif
|
2014-10-28 14:26:40 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/CMakeLists.txt
|
2014-10-28 03:11:42 +01:00
|
|
|
|
2012-04-26 02:40:15 +02:00
|
|
|
post-install:
|
2013-10-18 01:52:17 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2012-04-26 02:40:15 +02:00
|
|
|
.for f in ${PORTDOCS}
|
2013-10-18 01:52:17 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
2012-04-26 02:40:15 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|