blob: ebe4fba50d400378338977ad9b98316c6159cf69 (
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: uhexen2-extras
# Date created: 2006-12-30
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= uhexen2
PORTVERSION= 1.4.1
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/HoT%20-%20Other%20content/extra%20data
PKGNAMESUFFIX= -extras
EXTRACT_SUFX= .tgz
DISTFILES= #
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Hexen II source port extras (demos, mods, etc)
RUN_DEPENDS= ${DATADIR}:${PORTSDIR}/games/uhexen2
NO_BUILD= yes
OPTIONS_MULTI= EXTRA
OPTIONS_MULTI_EXTRA= HEXEN2_DEMOS HEXEN2_LITS HEXEN2_MODS HW_MODS
OPTIONS_DEFAULT= HEXEN2_DEMOS HEXEN2_LITS HEXEN2_MODS HW_MODS
HEXEN2_DEMOS_DESC= Install pre-recorded demos for Hexen II
HEXEN2_LITS_DESC= Install colored light data for Hexen II
HEXEN2_MODS_DESC= Install several mods for Hexen II
HW_MODS_DESC= Install several mods for HexenWorld
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MHEXEN2_DEMOS}
DISTFILES+= hexen2-demos${EXTRACT_SUFX}
PLIST_SUB+= HEXEN2_DEMOS=""
.else
PLIST_SUB+= HEXEN2_DEMOS="@comment "
.endif
.if ${PORT_OPTIONS:MHEXEN2_LITS}
DISTFILES+= hexen2-lit_files${EXTRACT_SUFX}
PLIST_SUB+= HEXEN2_LITS=""
.else
PLIST_SUB+= HEXEN2_LITS="@comment "
.endif
.if ${PORT_OPTIONS:MHEXEN2_MODS}
MASTER_SITES+= SF/${PORTNAME}/HoT%20-%20Other%20content/hexen2%20mods:mods
DISTFILES+= apocbot-0.2.0${EXTRACT_SUFX}:mods \
fo4d${EXTRACT_SUFX}:mods \
hcbots-1.0.4${EXTRACT_SUFX}:mods
PLIST_SUB+= HEXEN2_MODS=""
.else
PLIST_SUB+= HEXEN2_MODS="@comment "
.endif
.if ${PORT_OPTIONS:MHW_MODS}
MASTER_SITES+= SF/${PORTNAME}/HoT%20-%20Other%20content/hexenworld%20mods:hw_mods
DISTFILES+= dungeonbreak${EXTRACT_SUFX}:hw_mods \
hexarena${EXTRACT_SUFX}:hw_mods \
hwctf${EXTRACT_SUFX}:hw_mods \
rivalkingdoms${EXTRACT_SUFX}:hw_mods \
siege${EXTRACT_SUFX}:hw_mods
PLIST_SUB+= HW_MODS=""
.else
PLIST_SUB+= HW_MODS="@comment "
.endif
do-install:
.if ${PORT_OPTIONS:MHEXEN2_DEMOS}
${INSTALL_DATA} ${WRKDIR}/data1/*demo* ${DATADIR}/data1
.endif
.if ${PORT_OPTIONS:MHEXEN2_LITS}
${MKDIR} ${DATADIR}/data1/maps
${INSTALL_DATA} ${WRKDIR}/data1/maps/*.lit ${DATADIR}/data1/maps
.endif
.if ${PORT_OPTIONS:MHEXEN2_MODS}
.for f in apocbot fo4d hcbots
@(cd ${WRKDIR} && ${COPYTREE_SHARE} ${f} ${DATADIR})
.endfor
.endif
.if ${PORT_OPTIONS:MHW_MODS}
.for f in db hexarena hwctf rk siege
@(cd ${WRKDIR} && ${COPYTREE_SHARE} ${f} ${DATADIR})
.endfor
.for f in hexarena hwctf rk siege
${INSTALL_DATA} ${WRKDIR}/data1/${f}.cfg ${DATADIR}/data1
.endfor
.endif
.include <bsd.port.mk>
|