aboutsummaryrefslogtreecommitdiffstats
path: root/games/demonquake/Makefile
blob: 060bb4068f2254eebd135ffb6d74e3483965e8b8 (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
59
60
61
62
63
64
65
66
67
68
# Created by: alepulver
# $FreeBSD$

PORTNAME=   demonquake
PORTVERSION=    0.16.1
PORTREVISION=   7
CATEGORIES= games
MASTER_SITES=   http://qudos.quakedev.com/linux/quake1/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} \
        DemonQuake-data${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Another improved Quake engine based on FuhQuake

DEPRECATED= No more public distfiles
EXPIRATION_DATE=    2012-11-26

LIB_DEPENDS+=   jpeg.11:${PORTSDIR}/graphics/jpeg \
        png15:${PORTSDIR}/graphics/png

USE_GMAKE=  yes
USE_DOS2UNIX=   yes
USE_GL=     gl
USE_XORG=   xpm xxf86dga
USE_BZIP2=  yes

OPTIONS_DEFINE= OPTIMIZED_CFLAGS
OPTIONS_MULTI=  CLIENT
OPTIONS_MULTI_CLIENT=   OPENGL SDL
OPTIONS_DEFAULT=    OPTIMIZED_CFLAGS OPENGL SDL

ALL_TARGET= release

PLIST_FILES=    %%Q1DIR%%/${PORTNAME}/pak0.pak
PLIST_DIRS= %%Q1DIR%%/${PORTNAME}

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

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MOPENGL}
MAKE_ENV+=  BUILD_DEMONQUAKE=YES
PLIST_FILES+=   bin/${PORTNAME}-glx
.endif

.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
MAKE_ENV+=  OPTIMIZE=YES
.endif

.if ${PORT_OPTIONS:MSDL}
USE_SDL=    sdl
MAKE_ENV+=  BUILD_DEMONQUAKE_SDL=YES
PLIST_FILES+=   bin/${PORTNAME}-sdl
.endif

do-install:
.if ${PORT_OPTIONS:MOPENGL}
    ${INSTALL_PROGRAM} ${WRKSRC}/quake/${PORTNAME}-glx ${PREFIX}/bin
.endif
.if ${PORT_OPTIONS:MSDL}
    ${INSTALL_PROGRAM} ${WRKSRC}/quake/${PORTNAME}-sdl ${PREFIX}/bin
.endif
    ${MKDIR} ${Q1DIR}/${PORTNAME}
    ${INSTALL_DATA} ${WRKDIR}/DemonQuake-data/${PORTNAME}/pak0.pak \
        ${Q1DIR}/${PORTNAME}

.include <bsd.port.mk>