summaryrefslogtreecommitdiff
path: root/games/nehquake/Makefile
blob: fc7829888ffc66735c2c159ae55f38136917c977 (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
# Created by: alepulver
# $FreeBSD$

PORTNAME=	nehquake
PORTVERSION=	1.0
PORTREVISION=	7
CATEGORIES=	games
MASTER_SITES=	LOCAL/alepulver
DISTNAME=	NehQuake-bjp-bin-src.linux

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Quake engine designed for playing Nehahra

USES=		gmake dos2unix tar:bzip2
USE_GL=		gl
USE_XORG=	xxf86dga

OPTIONS_DEFINE=	OPTIMIZED_CFLAGS SDL X86_ASM
OPTIONS_DEFAULT=	OPTIMIZED_CFLAGS SDL X86_ASM
OPTIONS_SUB=	yes

SDL_USE=	SDL=sdl
SDL_MAKE_ENV=	BUILD_SDL=YES

X86_ASM_DESC=	Enable x86 assembly code

ALL_TARGET=	release
SUB_FILES=	pkg-message

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

.include <bsd.port.options.mk>

.for f in OPTIMIZED_CFLAGS X86_ASM
.   if ${PORT_OPTIONS:M${f}}
MAKE_ENV+=	USE_${f}=YES
.   else
MAKE_ENV+=	USE_${f}=NO
.   endif
.endfor

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/release/nehahra ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MSDL}
	${INSTALL_PROGRAM} ${WRKSRC}/release/nehahra-sdl ${STAGEDIR}${PREFIX}/bin
.endif
	@${MKDIR} ${STAGEDIR}${Q1DIR}/nehahra

.include <bsd.port.mk>