mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-29 21:39:24 +00:00
04c0b3aa72
A text adventure game of ZORK. PR: 14645 Submitted by: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# New ports collection makefile for: dungeon
|
|
# Version required: 1.0
|
|
# Date created: 31 October 1999
|
|
# Whom: Ryo MIYAMOTO
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
DISTNAME= dungeon-1.0
|
|
CATEGORIES= games
|
|
MASTER_SITES= ftp://ftp.gmd.de/if-archive/games/source/
|
|
DISTFILES= dungn27s.zip dungn32b.zip
|
|
|
|
MAINTAINER= rmiya@cc.hirosaki-u.ac.jp
|
|
|
|
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 ${PREFIX}/share/dungeon
|
|
${INSTALL_MAN} ${WRKSRC}/dungeon.6 ${PREFIX}/man/man6
|
|
|
|
post-install:
|
|
strip ${PREFIX}/bin/dungeon
|
|
.if !defined(NOPORTDOCS)
|
|
${INSTALL_DATA} ${WRKSRC}/history ${PREFIX}/share/dungeon
|
|
${INSTALL_DATA} ${WRKSRC}/manifest ${PREFIX}/share/dungeon
|
|
${INSTALL_DATA} ${WRKSRC}/readme ${PREFIX}/share/dungeon
|
|
${INSTALL_DATA} ${DISTDIR}/dungn32b.zip ${PREFIX}/share/dungeon
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|