aboutsummaryrefslogtreecommitdiffstats
path: root/games/sdlquake2/Makefile
blob: 4bceb16b8b8f98673cbfe0fd43a69a41bb234614 (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
58
# Created by: alepulver
# $FreeBSD$

PORTNAME=   sdlquake2
PORTVERSION=    0.1.4
PORTREVISION=   12
CATEGORIES= games
MASTER_SITES=   http://koti.mbnet.fi/~turol/sdlquake2/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Combination of R1Q2 and R1GL with SDL code from Quake2Forge

BROKEN=     unfetchable
DEPRECATED= Broken for more than 6 months
EXPIRATION_DATE=    2016-07-04

USES=       execinfo gmake tar:bzip2

OPTIONS_DEFINE= CLIENT DEDICATED GAME
OPTIONS_DEFAULT=    CLIENT DEDICATED
CLIENT_DESC=    Build client
DEDICATED_DESC= Build dedicated server
GAME_DESC=  Build a main game .so file

OPTIONS_SUB=    yes

LIBDIR=     ${PREFIX}/lib/${PORTNAME}
MAKE_ENV=   LIBDIR="${LIBDIR}"
PLIST_SUB=  LIBDIR=${LIBDIR:S/${PREFIX}\///}

.include "${.CURDIR}/../quake2-data/Makefile.include"

CLIENT_LIB_DEPENDS= libpng.so:graphics/png
CLIENT_USES=        jpeg
CLIENT_USE=     GL=yes
CLIENT_USE=     SDL=sdl
CLIENT_MAKE_ENV=    BUILD_CLIENT=YES

DEDICATED_MAKE_ENV= BUILD_DEDICATED=YES

GAME_MAKE_ENV=      BUILD_GAME=YES

.include <bsd.port.options.mk>

do-install:
    @${MKDIR} ${STAGEDIR}${LIBDIR}/baseq2
.if ${PORT_OPTIONS:MCLIENT}
    ${INSTALL_PROGRAM} ${WRKSRC}/quake2 ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    ${INSTALL_PROGRAM} ${WRKSRC}/ref_sdlgl.so ${STAGEDIR}${LIBDIR}
.endif
.if ${PORT_OPTIONS:MDEDICATED}
    ${INSTALL_PROGRAM} ${WRKSRC}/q2ded ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-ded
.endif
.if ${PORT_OPTIONS:MGAME}
    ${INSTALL_PROGRAM} ${WRKSRC}/baseq2/game.so ${STAGEDIR}${LIBDIR}/baseq2
.endif

.include <bsd.port.mk>