blob: 0a2ec16541f21ea27711a7ffd411c6e5f713ee72 (
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
|
# New ports collection makefile for: doom-data
# Date created: 21 Sep 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= data
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.ijs.si/~lesi/distfiles/doom/
PKGNAMEPREFIX= ${DMPKGNAMEPREFIX}
EXTRACT_SUFX= .bz2
DISTFILES= #
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Doom data files (Doom, Doom II, Hexen, Heretic and Strife)
USE_BZIP2= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
OPTIONS= DOOM "Install Doom shareware data" on \
HERETIC "Install Heretic shareware data" off \
HEXEN "Install Hexen shareware data" off \
STRIFE "Install Strife shareware data" off
SUB_FILES= pkg-message
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
DATADIR= ${DMDIR}
LIST= DOOM HERETIC HEXEN STRIFE
DOOM_WAD= doom1.wad
HERETIC_WAD= heretic1.wad
HEXEN_WAD= hexen.wad
STRIFE_WAD= strife0.wad
.include "Makefile.include"
.include <bsd.port.pre.mk>
.for f in ${LIST}
. if defined(WITH_${f}) || !defined(WITHOUT_${f})
DISTFILES+= ${${f}_WAD}${EXTRACT_SUFX}
PLIST_SUB+= ${f}=""
. else
PLIST_SUB+= ${f}="@comment "
. endif
.endfor
.if ${DISTFILES} == ""
. undef DIST_SUBDIR
.endif
do-extract:
@${MKDIR} ${WRKDIR}
.for f in ${LIST}
. if defined(WITH_${f}) || !defined(WITHOUT_${f})
@${BZIP2_CMD} -dc ${_DISTDIR}/${${f}_WAD}${EXTRACT_SUFX} > \
${WRKDIR}/${${f}_WAD}
. endif
.endfor
do-install:
@${MKDIR} ${DATADIR}
.for f in ${LIST}
. if defined(WITH_${f}) || !defined(WITHOUT_${f})
${INSTALL_DATA} ${WRKSRC}/${${f}_WAD} ${DATADIR}
. endif
.endfor
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.post.mk>
|