aboutsummaryrefslogtreecommitdiff
path: root/games/tyrquake/Makefile
blob: 2cc1431fb9a438d022f52f0d587fcaa3459437e3 (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
# New ports collection makefile for:	tyrquake
# Date created:				13 May 2006
# Whom:					alepulver
#
# $FreeBSD$
#

PORTNAME=	tyrquake
PORTVERSION=	0.54
CATEGORIES=	games
MASTER_SITES=	http://disenchant.net/files/engine/

MAINTAINER=	alepulver@FreeBSD.org
COMMENT=	Very conservative branch of the Quake source code

USE_GCC=	3.2+
USE_GL=		yes
USE_GMAKE=	yes

OPTIONS=	OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
		X86_ASM "Enable x86 assembly code when possible" on

WRKSRC=		${WRKDIR}/${PORTNAME}

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

.include <bsd.port.pre.mk>

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

.if defined(WITHOUT_X86_ASM) || ${ARCH} != "i386"
MAKE_ENV+=	NO_X86_ASM=YES
.endif

do-install:
.for file in tyr-quake tyr-glquake tyr-qwcl tyr-glqwcl tyr-qwsv
	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
.endif

post-install:
	@${ECHO_CMD}
	@${CAT} ${PKGMESSAGE}
	@${ECHO_CMD}

.include <bsd.port.post.mk>