blob: 9a5cfb788f85e053f236cbcf3a1179f3bb6a3d38 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Created by: Will Andrews <andrews@technologist.com>
# $FreeBSD$
PORTNAME= heretic
PORTVERSION= 1.2
PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= http://heretic.linuxgames.com/heretic/src/:source \
http://heretic.linuxgames.com/wad/:wad
DISTNAME= gl${PORTNAME}-${PORTVERSION}
MAINTAINER= oliver@FreeBSD.org
COMMENT= Unix source-port of the famous Heretic game by id Software
USE_XORG= x11 xi xpm xau
USE_GMAKE= yes
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
OPTIONS_DEFINE= WAD
OPTIONS_SINGLE= SG1
OPTIONS_SINGLE_SG1= X11 FASTX11 SDL
FASTX11_DESC= Use FastX11
WAD_DESC= With shareware WAD
SG1_DESC= Graphics Selections
OPTIONS_DEFAULT= X11 WAD
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
ALL_TARGET= x11
BINARY= xheretic
.endif
.if ${PORT_OPTIONS:MFASTX11}
ALL_TARGET= fastx11
BINARY= xaheretic
.endif
.if ${PORT_OPTIONS:MSDL}
USE_SDL= yes
ALL_TARGET= sdl
BINARY= sdlheretic
CFLAGS+= `${SDL_CONFIG} --cflags`
.endif
.if ${PORT_OPTIONS:MWAD}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source heretic_share.wad.gz:wad
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
PLIST_SUB= WAD:=""
.else
PLIST_SUB= WAD:="@comment "
.endif
post-extract:
.if ${PORT_OPTIONS:MWAD}
@${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/heretic_share.wad.gz \
> ${WRKSRC}/heretic_share.wad
.endif
@${FIND} ${WRKSRC} -name .depend -type f -delete
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/heretic
${INSTALL_PROGRAM} ${WRKSRC}/sndserver ${PREFIX}/bin/sndserver
.if ${PORT_OPTIONS:MWAD}
@${MKDIR} ${PREFIX}/share/heretic
${INSTALL_DATA} ${WRKSRC}/heretic_share.wad ${PREFIX}/share/heretic
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in "End User License Heretic Source Code.txt" Gamekeys.txt README.txt AUTHORS SourceReadme.txt Changelog README.opengl
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|