Tweak games/blinken version 4.14.3
[dports.git] / games / nehquake / Makefile
1 # Created by: alepulver
2 # $FreeBSD$
3
4 PORTNAME=       nehquake
5 PORTVERSION=    1.0
6 PORTREVISION=   7
7 CATEGORIES=     games
8 MASTER_SITES=   LOCAL/alepulver
9 DISTNAME=       NehQuake-bjp-bin-src.linux
10
11 MAINTAINER=     ports@FreeBSD.org
12 COMMENT=        Quake engine designed for playing Nehahra
13
14 USES=           gmake dos2unix tar:bzip2
15 USE_GL=         gl
16 USE_XORG=       xxf86dga
17
18 OPTIONS_DEFINE= OPTIMIZED_CFLAGS SDL X86_ASM
19 OPTIONS_DEFAULT=        OPTIMIZED_CFLAGS SDL X86_ASM
20 OPTIONS_SUB=    yes
21
22 SDL_USE=        SDL=sdl
23 SDL_MAKE_ENV=   BUILD_SDL=YES
24
25 X86_ASM_DESC=   Enable x86 assembly code
26
27 ALL_TARGET=     release
28 SUB_FILES=      pkg-message
29
30 .include "${.CURDIR}/../quake-data/Makefile.include"
31
32 .include <bsd.port.options.mk>
33
34 .for f in OPTIMIZED_CFLAGS X86_ASM
35 .   if ${PORT_OPTIONS:M${f}}
36 MAKE_ENV+=      USE_${f}=YES
37 .   else
38 MAKE_ENV+=      USE_${f}=NO
39 .   endif
40 .endfor
41
42 do-install:
43         ${INSTALL_PROGRAM} ${WRKSRC}/release/nehahra ${STAGEDIR}${PREFIX}/bin
44 .if ${PORT_OPTIONS:MSDL}
45         ${INSTALL_PROGRAM} ${WRKSRC}/release/nehahra-sdl ${STAGEDIR}${PREFIX}/bin
46 .endif
47         @${MKDIR} ${STAGEDIR}${Q1DIR}/nehahra
48
49 .include <bsd.port.mk>