aboutsummaryrefslogtreecommitdiffstats
path: root/games/arx-libertatis/Makefile
blob: 91073e1d2c294ab9c2580e58456493f4f83562d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   arx-libertatis
PORTVERSION=    1.0.3
PORTREVISION=   7
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=    libIL.so:${PORTSDIR}/graphics/devil \
        libGLEW.so:${PORTSDIR}/graphics/glew \
        libfreetype.so:${PORTSDIR}/print/freetype2 \
        libboost_program_options.so:${PORTSDIR}/devel/boost-libs

USES=       tar:xz cmake openal
USE_SDL=    sdl
USE_GL=     gl glu
CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR="man" -DDATA_DIR=arx

SUB_FILES=  pkg-message

PORTDOCS=   AUTHORS CHANGELOG README.md

OPTIONS_DEFINE= CRASHREPORTER
CRASHREPORTER_DESC= Build crash reporter (requires Qt4)

.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
PLIST_SUB+= CRASHREPORTER=""
.else
CMAKE_ARGS+=    -DBUILD_CRASHREPORTER=OFF
PLIST_SUB+= CRASHREPORTER="@comment "
.endif

.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
post-patch:
    @${REINPLACE_CMD} -e '/add_cxxflag.*-g2/ d' ${WRKSRC}/CMakeLists.txt
.endif

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor

.include <bsd.port.mk>