blob: e4b1aa120525963e61d745e54819e3aff58c9006 (
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
52
53
54
55
56
57
58
59
60
61
62
|
PORTNAME= nehquake
PORTVERSION= 1.0
PORTREVISION= 9
CATEGORIES= games
MASTER_SITES= LOCAL/alepulver
DISTNAME= NehQuake-bjp-bin-src.linux
MAINTAINER= danfe@FreeBSD.org
COMMENT= Quake engine designed for playing Nehahra
WWW= https://quakewiki.org/wiki/Nehahra \
https://www.quaddicted.com/reviews/nehahra.html
LICENSE= GPLv2+
USES= gl gmake tar:bzip2 xorg
USE_GL= gl
USE_XORG= x11 xext xxf86dga xxf86vm
OPTIONS_DEFINE= OPTIMIZED_CFLAGS SDL
OPTIONS_DEFINE_amd64= X86_ASM
OPTIONS_DEFINE_i386= X86_ASM
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS SDL
OPTIONS_DEFAULT_amd64= X86_ASM
OPTIONS_DEFAULT_i386= X86_ASM
OPTIONS_SUB= yes
SDL_USES= sdl
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
post-patch:
@${REINPLACE_CMD} -E '/^int[[:blank:]]+sb_lines;/d' \
${WRKSRC}/src/gl_screen.c
@${REINPLACE_CMD} -e '/text\[/s/4096/MAX_PRINTMSG/' \
${WRKSRC}/src/sys_linux.c
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>
PATCH_ARGS+= -l
|