blob: 259d99a54a0b57190c624fa42a863e7d376712b7 (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# New ports collection makefile for: wolf3d
# Date created: 13 Jan 2004
# Whom: Travis Poppe <tlp@liquidx.org>
#
# $FreeBSD$
#
PORTNAME= wolf3d
PORTVERSION= 20011028
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://www.icculus.org/wolf3d/:wolf \
http://cvsup.theplanet.com/distfiles/:wolf \
http://www.liquidx.org/distfiles/:sw \
DISTNAME= wolf3d-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:wolf
MAINTAINER= tlp@liquidx.org
COMMENT= "Wolfenstein 3D Linux" by Steven Fuller (1992)
USE_SDL= sdl
OPTIONS= WOLF_SW "Install shareware data for Wolfenstein 3D" on \
SPEAR_SW "Install shareware data for Spear of Destiny" off
SUB_FILES= pkg-message wolf3d
WOLF_BIN= sdlwolf3d
WOLF_VERS= wf ws sf ss
WF_CF= -DWMODE=1
WS_CF= -DWMODE=0
SF_CF= -DWMODE=3
SS_CF= -DWMODE=2
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_WOLF_SW)
DISTFILES+= wolfdata${EXTRACT_SUFX}:sw
PLIST_SUB+= WOLF_SW=""
.else
PLIST_SUB+= WOLF_SW="@comment "
.endif
.if defined(WITH_SPEAR_SW)
DISTFILES+= speardata${EXTRACT_SUFX}:sw
PLIST_SUB+= SPEAR_SW=""
.else
PLIST_SUB+= SPEAR_SW="@comment "
.endif
post-extract:
.if defined(WITH_SPEAR_SW)
@${MV} ${WRKDIR}/audit.sdm ${WRKDIR}/audiot.sdm
.endif
do-build:
.for f in ${WOLF_VERS}
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} WF=${${f:U}_CF} ${ALL_TARGET}
@cd ${WRKSRC} && ${MV} ${WOLF_BIN} ${WOLF_BIN}-${f}
@cd ${WRKSRC}; ${MAKE} clean
.endfor
do-install:
${MKDIR} ${PREFIX}/libexec/wolf3d
.for f in ${WOLF_VERS}
${INSTALL_PROGRAM} ${WRKSRC}/${WOLF_BIN}-${f} ${PREFIX}/libexec/wolf3d
.endfor
${INSTALL_SCRIPT} ${WRKDIR}/wolf3d ${PREFIX}/bin/wolf3d
${MKDIR} ${DATADIR}
.if !defined(WITHOUT_WOLF_SW)
${INSTALL_DATA} ${WRKDIR}/wolfdata/* ${DATADIR}
.endif
.if defined(WITH_SPEAR_SW)
${INSTALL_DATA} ${WRKDIR}/*.sdm ${DATADIR}
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${MKDIR} ${DOCSDIR}/docs
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}/docs
. for f in IDEAS NOTES README TODO
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/IDEAS
. endfor
.endif
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.post.mk>
|