summaryrefslogtreecommitdiffstats
path: root/games/q3base/Makefile
blob: e16c2bb3a5b67552fb9f0dcbea066434dfb9c19c (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
# New ports collection makefile for:	q3base
# Date created:				17 Nov 2005
# Whom:					Ed Schouten <ed@fxq.nl>
#
# $FreeBSD$
#

PORTNAME=		q3base
PORTVERSION=		0.1
CATEGORIES=		games
MASTER_SITES=		http://quake3.quakesrc.org/files/quake3/q3base/

MAINTAINER=		ed@fxq.nl
COMMENT=		Quake III Arena fork using SDL

USE_BZIP2=		yes
USE_SDL=		sdl net

GNU_CONFIGURE=		yes
CONFIGURE_TARGET=

.if defined(WITHOUT_X11)
CONFIGURE_ARGS=		--disable-client
.else
USE_GL=			yes
USE_SDL+=		image
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
BUILD_DEPENDS=		nasm:${PORTSDIR}/devel/nasm
.endif

.if ${ARCH} != "i386"
NO_PACkAGE=	we don't know if this port works on ${ARCH}
SUB_FILES+=	pkg-message
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|\($${exec_prefix}/lib\)/quake3|\1/q3base|' \
		${WRKSRC}/src/Makefile.in
	@${REINPLACE_CMD} -e 's|botlib\.log|/dev/null|' \
		${WRKSRC}/src/botlib/be_interface.c

.if ${ARCH} != "i386"
post-install:
	@${ECHO_CMD}
	@${CAT} ${PKGMESSAGE}
	@${ECHO_CMD}
.endif

.include "${.CURDIR}/../quake3-data/Makefile.include"
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud