blob: f3247b4b5cbe9a152288354ab93f6c4a61930744 (
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
|
# New ports collection makefile for: dungeon
# Date created: 31 October 1999
# Whom: Ryo MIYAMOTO
#
# $FreeBSD$
#
PORTNAME= dungeon
PORTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= ftp://ftp.ifarchive.org/if-archive/games/source/ \
ftp://ftp.ifarchive.com/if-archive/games/source/ \
http://mirror.ifarchive.org/if-archive/games/source/ \
ftp://ftp.funet.fi/pub/misc/if-archive/games/source/ \
ftp://ftp.planetmirror.com/pub/if-archive/games/source/ \
http://www.ibiblio.org/pub/docs/interactive-fiction/games/source/ \
http://ifarchive.flavorplex.com/if-archive/games/source/ \
http://www.vaxdungeon.com/Archive/dungeon/
DISTFILES= dungn27s.zip dungn32b.zip
MAINTAINER= ports@FreeBSD.org
COMMENT= Text adventure game of ZORK
EXTRACT_ONLY= dungn27s.zip
NO_WRKSUBDIR= yes
USE_ZIP= yes
#WRKSRC= ${WRKDIR}/${DISTNAME}
MAN6= dungeon.6
TMPFILE= ${WRKSRC}/dungeon.tmp
#do-extract:
# ${RM} -rf ${WRKSRC}
# ${MKDIR} ${WRKSRC}
# (cd ${WRKSRC} && unzip ${DISTDIR}/dungn27s.zip > /dev/null)
post-extract:
(cd ${WRKSRC} && ${LS} > ${TMPFILE}.1)
(cd ${WRKSRC} && ${AWK} -f ${FILESDIR}/aa.awk < ${TMPFILE}.1 \
> ${TMPFILE}.2)
(cd ${WRKSRC} && sh ${TMPFILE}.2)
(cd ${WRKSRC} && ${RM} ${TMPFILE}.?)
(cd ${WRKSRC} && ${CP} makefile Makefile)
pre-install:
${RM} -rf ${PREFIX}/share/dungeon
${MKDIR} ${PREFIX}/share/dungeon
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dungeon ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/dtextc.dat ${DATADIR}
${INSTALL_MAN} ${WRKSRC}/dungeon.6 ${PREFIX}/man/man6
.if !defined(NOPORTDOCS)
${INSTALL_DATA} ${WRKSRC}/history ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/manifest ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/dungn32b.zip ${DOCSDIR}
.endif
.include <bsd.port.mk>
|