summaryrefslogtreecommitdiffstats
path: root/games/demonquake/Makefile
blob: f7d38b07cbcbcaa28bdbcf6649dda0161c44ea07 (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
# New ports collection makefile for:	demonquake
# Date created:				13 May 2006
# Whom:					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

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=	GLX "Build OpenGL client" on \
		OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
		SDL "Build SDL client" on

ALL_TARGET=	release

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

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

.include <bsd.port.pre.mk>

.if defined(WITHOUT_GLX) && defined(WITHOUT_SDL)
IGNORE=		needs at least one binary (GLX and SDL)
.endif

.if !defined(WITHOUT_GLX)
MAKE_ENV+=	BUILD_DEMONQUAKE=YES
PLIST_FILES+=	bin/${PORTNAME}-glx
.endif

.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
MAKE_ENV+=	OPTIMIZE=YES
.endif

.if !defined(WITHOUT_SDL)
USE_SDL=	sdl
MAKE_ENV+=	BUILD_DEMONQUAKE_SDL=YES
PLIST_FILES+=	bin/${PORTNAME}-sdl
.endif

do-install:
.if !defined(WITHOUT_GLX)
	${INSTALL_PROGRAM} ${WRKSRC}/quake/${PORTNAME}-glx ${PREFIX}/bin
.endif
.if !defined(WITHOUT_SDL)
	${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.post.mk>
OpenPOWER on IntegriCloud