aboutsummaryrefslogtreecommitdiffstats
path: root/games/doom-hr/Makefile
blob: b8c1fe3f1d1ed50ac83db963f3edfcb515ca7214 (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
# New ports collection makefile for:    doom-hr
# Date created:             21 Sep 2005
# Whom:                 Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#

PORTNAME=   hr
PORTVERSION=    1.0
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   ftp://ftp.planetmirror.com/pub/idgames/themes/hr/ \
        ftp://ftp.fu-berlin.de/pc/msdos/games/idgames/themes/hr/ \
        ftp://ftp.ntua.gr/pub/vendors/idgames/themes/hr/ \
        http://ftp.sunet.se/pub/pc/games/idgames/themes/hr/ \
        ftp://3darchives.in-span.net/pub/idgames/themes/hr/
PKGNAMEPREFIX=  ${DMPKGNAMEPREFIX}
DISTFILES=  ${PORTNAME}${EXTRACT_SUFX}
DIST_SUBDIR=    ${PKGNAMEPREFIX}${PORTNAME}

MAINTAINER= alepulver@FreeBSD.org
COMMENT=    Hell Revealed is a megawad, a 32-level replacement for DooM II

USE_ZIP=    yes
USE_CRLF=   yes
NO_BUILD=   yes
NO_WRKSUBDIR=   yes

OPTIONS=    DEMO_NM "Install demos with -nomonsters" on \
        DEMO_UV "Install Ultra-Violence demos" on

DATADIR=    ${DMDIR}/${PORTNAME}

post-extract:
    @(cd ${WRKDIR} && ${SH} ${SCRIPTDIR}/lowercase.sh)

.include "${.CURDIR}/../doom-data/Makefile.include"

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_DEMO_NM)
DISTFILES+= hrhelp${EXTRACT_SUFX}
PLIST_SUB+= DEMO_NM=""
.else
PLIST_SUB+= DEMO_NM="@comment "
.endif

.if !defined(WITHOUT_DEMO_UV)
DISTFILES+= hruvlmp2${EXTRACT_SUFX}
PLIST_SUB+= DEMO_UV=""
.else
PLIST_SUB+= DEMO_UV="@comment "
.endif

do-install:
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/*.wad ${DATADIR}
.if !defined(WITHOUT_DEMO_NM) || !defined(WITHOUT_DEMO_UV)
    ${INSTALL_DATA} ${WRKSRC}/*.lmp ${DATADIR}
.endif
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
.endif

.include <bsd.port.post.mk>