1998-06-28 15:16:08 +00:00
|
|
|
# New ports collection makefile for: inform
|
|
|
|
# Date created: 28 June 1998
|
|
|
|
# Whom: Matthew Hunt <mph@FreeBSD.org>
|
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
1998-06-28 15:16:08 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 06:53:26 +00:00
|
|
|
PORTNAME= inform
|
|
|
|
PORTVERSION= 6.21
|
1998-06-28 15:16:08 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ftp://ftp.gmd.de/if-archive/infocom/compilers/inform6/source/ \
|
|
|
|
ftp://ftp.gmd.de/if-archive/infocom/compilers/inform6/library/
|
1999-12-05 02:07:36 +00:00
|
|
|
DISTFILES= inform621_source.zip inform_library610.zip
|
1998-06-28 15:16:08 +00:00
|
|
|
|
1999-05-01 12:34:38 +00:00
|
|
|
MAINTAINER= mph@freebsd.org
|
|
|
|
|
1998-06-28 15:16:08 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
MASTER_SITES+= ftp://ftp.gmd.de/if-archive/infocom/compilers/inform6/manuals/
|
|
|
|
DISTFILES+= designers_manual_html.zip
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DIST_SUBDIR= inform
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
1999-05-02 21:10:46 +00:00
|
|
|
EXTRACT_ONLY= inform621_source.zip
|
1999-05-01 12:34:38 +00:00
|
|
|
USE_ZIP= yes
|
1998-06-28 15:16:08 +00:00
|
|
|
|
|
|
|
# I can hardly believe it, but the ".c" and ".h" extensions are
|
|
|
|
# not present on the source files.
|
|
|
|
post-extract:
|
|
|
|
@${MV} ${WRKSRC}/header ${WRKSRC}/header.h
|
|
|
|
.for file in arrays asm bpatch chars directs errors expressc expressp \
|
|
|
|
files inform lexer linker memory objects states symbols syntax \
|
1999-05-01 12:34:38 +00:00
|
|
|
tables text veneer verbs
|
1998-06-28 15:16:08 +00:00
|
|
|
@${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.c
|
|
|
|
.endfor
|
|
|
|
@${CP} ${FILESDIR}/Makefile.inform ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
# Install the library files in ${PREFIX}/share/inform. The compiler
|
|
|
|
# is configured to use extensions under Unix, so we need to tack ".h"
|
|
|
|
# onto each filename. Set perms and ownership, because they're odd in
|
|
|
|
# the archive. Many games include "VerbLib" instead of "Verblib" so
|
|
|
|
# make a symlink. Finally, install documentation if appropriate.
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/inform
|
|
|
|
@(cd ${PREFIX}/share/inform && \
|
1999-12-05 02:07:36 +00:00
|
|
|
unzip -qq -o ${DISTDIR}/${DIST_SUBDIR}/inform_library610.zip)
|
1999-05-02 21:10:46 +00:00
|
|
|
.for file in English Grammar Parser Verblib infix linklpa linklv parserm \
|
|
|
|
verblibm
|
1998-06-28 15:16:08 +00:00
|
|
|
@${MV} ${PREFIX}/share/inform/${file} ${PREFIX}/share/inform/${file}.h
|
1999-08-22 19:01:07 +00:00
|
|
|
@ ${CHMOD} ${SHAREMODE} ${PREFIX}/share/inform/${file}.h
|
|
|
|
@ ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/inform/${file}.h
|
1998-06-28 15:16:08 +00:00
|
|
|
.endfor
|
1999-05-23 20:43:27 +00:00
|
|
|
@${LN} -fs Verblib.h ${PREFIX}/share/inform/VerbLib.h
|
1999-08-22 19:01:07 +00:00
|
|
|
@ ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/inform/VerbLib.h
|
1999-12-05 02:07:36 +00:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${RM} ${PREFIX}/share/inform/Relnote ${PREFIX}/share/inform/Relnote2
|
|
|
|
.else
|
1999-05-23 20:43:27 +00:00
|
|
|
@ (umask 222 && unzip -qq -o -d ${PREFIX}/share/doc \
|
1998-06-28 15:16:08 +00:00
|
|
|
${DISTDIR}/${DIST_SUBDIR}/designers_manual_html.zip)
|
1999-05-23 20:43:27 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/inform
|
|
|
|
@${MV} ${PREFIX}/share/doc/dman/* ${PREFIX}/share/doc/inform
|
|
|
|
@${RMDIR} ${PREFIX}/share/doc/dman
|
1999-12-05 02:07:36 +00:00
|
|
|
@${MV} ${PREFIX}/share/inform/Relnote ${PREFIX}/share/inform/Relnote2 ${PREFIX}/share/doc/inform
|
1999-08-22 19:01:07 +00:00
|
|
|
@ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/inform
|
1999-12-05 02:07:36 +00:00
|
|
|
|
1998-06-28 15:16:08 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|