summaryrefslogtreecommitdiffstats
path: root/games/alephone/Makefile
blob: 28a3417901d4087355ef297c0c1b875909b7dcdb (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Created by: Michael Alyn Miller <malyn@strangeGizmo.com>
# $FreeBSD$

PORTNAME=	alephone
PORTVERSION=	20120514
CATEGORIES=	games
MASTER_SITES=	SF/marathon/Aleph%20One/2012-05-14
DISTNAME=	AlephOne-${PORTVERSION}

MAINTAINER=	fiziologus@gmail.com
COMMENT=	The open source version of Bungie's Marathon game

BUILD_DEPENDS+=	${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost-libs

USE_GMAKE=	yes

USES=		pkgconfig
USE_BZIP2=	yes
USE_SDL+=	image net sdl sound
USE_GL=		yes
PKG_CONFIG?=	${LOCALBASE}/bin/pkg-config
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--disable-alsa --disable-sndfile
CONFIGURE_ENV=	PKG_CONFIG="${PKG_CONFIG}"

DATADIR=	${PREFIX}/share/AlephOne

MAN6=		alephone.6

OPTIONS_DEFINE=	MAD OGG SPEEX SMPEG TTF ZZIP
SMPEG_DESC=	Use SMPEG for movie playback
TTF_DESC=	Enable SDL_ttf font rendering
ZZIP_DESC=	Enable zziplib support

OPTIONS_DEFAULT=	MAD OGG SPEEX SMPEG TTF ZZIP

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMAD}
LIB_DEPEND+=	mad.2:${PORTSDIR}/audio/libmad
.else
CONFIGURE_ARGS+=--disable-mad
.endif

.if ${PORT_OPTIONS:MOGG}
LIB_DEPEND+=	vorbisfile.6:${PORTSDIR}/audio/libvorbis
.else
CONFIGURE_ARGS+=--disable-vorbis
.endif

.if ${PORT_OPTIONS:MSPEEX}
LIB_DEPENDS+=	speex.1:${PORTSDIR}/audio/speex
.else
CONFIGURE_ARGS+=--disable-speex
.endif

.if ${PORT_OPTIONS:MSMPEG}
LIB_DEPENDS+=	smpeg.1:${PORTSDIR}/multimedia/smpeg
.else
CONFIGURE_ARGS+=--disable-smpeg
.endif

.if ${PORT_OPTIONS:MTTF}
USE_SDL+=	ttf
.else
CONFIGURE_ARGS+=--disable-ttf
.endif

.if ${PORT_OPTIONS:MZZIP}
LIB_DEPENDS+=	zzip.13:${PORTSDIR}/devel/zziplib
.else
CONFIGURE_ARGS+=--disable-zzip
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} README ${DOCSDIR}
	cd ${WRKSRC}/docs && ${INSTALL_DATA} *.html ${DOCSDIR}
.endif
	@${ECHO_CMD}
	@${CAT} ${PKGMESSAGE}
	@${ECHO_CMD}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud