2012-04-26 02:40:15 +02:00
|
|
|
# New ports collection makefile for: arx-libertatis
|
|
|
|
# Date created: 24 Apr 2012
|
|
|
|
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= arx-libertatis
|
|
|
|
PORTVERSION= 1.0.1
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://cloud.github.com/downloads/arx/ArxLibertatis/ \
|
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= Cross-platform port of Arx Fatalis
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
|
|
|
LIB_DEPENDS= IL.2:${PORTSDIR}/graphics/devil \
|
|
|
|
GLEW.1:${PORTSDIR}/graphics/glew \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
|
|
|
boost_program_options.4:${PORTSDIR}/devel/boost-libs
|
|
|
|
|
|
|
|
USE_XZ= yes
|
|
|
|
USE_OPENAL= yes
|
|
|
|
USE_SDL= sdl
|
|
|
|
USE_GL= gl glu
|
|
|
|
USE_CMAKE= yes
|
|
|
|
CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR="man" -DDATA_DIR=arx
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
MAN1= arxsavetool.1 arxunpak.1
|
|
|
|
MAN6= arx.6
|
|
|
|
|
|
|
|
OPTIONS= CRASHREPORTER "Build crash reporter (requires Qt4)" off
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_CRASHREPORTER)
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= corelib gui network rcc_build moc_build uic_build qmake_build
|
2012-04-26 02:40:15 +02:00
|
|
|
CMAKE_ARGS+= -DBUILD_CRASHREPORTER=ON
|
|
|
|
PLIST_SUB+= CRASHREPORTER=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DBUILD_CRASHREPORTER=OFF
|
|
|
|
PLIST_SUB+= CRASHREPORTER="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PORTDOCS= AUTHORS CHANGELOG README.md
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|