aboutsummaryrefslogtreecommitdiff
path: root/games/uhexen2-extras/Makefile
blob: d76ff0b0816b5daaf71dac273d07a35a1437c02f (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
PORTNAME=	uhexen2
PORTVERSION=	1.5.6
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/HoT%20-%20Other%20content/extra%20data \
		SF/${PORTNAME}/HoT%20-%20Other%20content/hexen2%20mods:mods \
		SF/${PORTNAME}/HoT%20-%20Other%20content/hexenworld%20mods:hw_mods
PKGNAMESUFFIX=	-extras
DISTFILES=	#
DIST_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Hexen II source port extras (demos, mods, etc)
WWW=		http://uhexen2.sourceforge.net/

RUN_DEPENDS=	uhexen2>0:games/uhexen2

NO_BUILD=	yes
NO_ARCH=	yes
USES=		tar:tgz

OPTIONS_MULTI=	EXTRA
OPTIONS_MULTI_EXTRA=	HEXEN2_DEMOS HEXEN2_LITS HEXEN2_MODS HW_MODS
OPTIONS_DEFAULT=	HEXEN2_DEMOS HEXEN2_LITS HEXEN2_MODS HW_MODS
OPTIONS_SUB=	yes

HEXEN2_DEMOS_DESC=	Install pre-recorded demos for Hexen II
HEXEN2_DEMOS_DISTFILES=	hexen2-demos${EXTRACT_SUFX}

HEXEN2_LITS_DESC=	Install colored light data for Hexen II
HEXEN2_LITS_DISTFILES=	hexen2-litfiles-20140628.zip

HEXEN2_MODS_DESC=	Install several mods for Hexen II
HEXEN2_MODS_DISTFILES=	apocbot-0.2.0${EXTRACT_SUFX}:mods \
			fo4d${EXTRACT_SUFX}:mods \
			hcbots-1.0.4${EXTRACT_SUFX}:mods

HW_MODS_DESC=		Install several mods for HexenWorld
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

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}

do-install-HEXEN2_DEMOS-on:
	@${MKDIR} ${STAGEDIR}${DATADIR}/data1
	${INSTALL_DATA} ${WRKDIR}/data1/*demo* ${STAGEDIR}${DATADIR}/data1

do-install-HEXEN2_LITS-on:
	@${MKDIR} ${STAGEDIR}${DATADIR}/data1/maps
	${INSTALL_DATA} ${WRKDIR}/data1/maps/*.lit ${STAGEDIR}${DATADIR}/data1/maps

do-install-HEXEN2_MODS-on:
	(cd ${WRKDIR} && ${COPYTREE_SHARE} "apocbot fo4d hcbots" \
		${STAGEDIR}${DATADIR})

do-install-HW_MODS-on:
	(cd ${WRKDIR} && ${COPYTREE_SHARE} "db hexarena hwctf rk siege" \
		${STAGEDIR}${DATADIR})
	@${MKDIR} ${STAGEDIR}${DATADIR}/data1
.for f in hexarena hwctf rk siege
	${INSTALL_DATA} ${WRKDIR}/data1/${f}.cfg ${STAGEDIR}${DATADIR}/data1
.endfor

.include <bsd.port.mk>