freebsd-ports/games/dungeon/Makefile
Greg Lewis 2b06336d80 . Update checksums on the distribution files and restore a more complete
MASTER_SITE list.  The changes to the distribution files are:

  "The source archives of both ``dungn27s.zip'' and ``dungn32b.zip''
   were re-build, without changing archive file names.
   The executable file was deleted in the former; some corrections
   were performed for g77 in the latter, while important document files
   included was remain unchanged."

PR:		68200
Submitted by:	Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp> (maintainer)
2004-06-22 15:54:16 +00:00

65 lines
1.8 KiB
Makefile

# New ports collection makefile for: dungeon
# Date created: 31 October 1999
# Whom: Ryo MIYAMOTO
#
# $FreeBSD$
#
PORTNAME= dungeon
PORTVERSION= 1.0
PORTREVISION= 1
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= rmiya@cc.hirosaki-u.ac.jp
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 ${PREFIX}/share/dungeon
${INSTALL_MAN} ${WRKSRC}/dungeon.6 ${PREFIX}/man/man6
post-install:
${STRIP_CMD} ${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>