1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/games/inform/Makefile

71 lines
2.5 KiB
Makefile
Raw Normal View History

# 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$
#
PORTNAME= inform
PORTVERSION= 6.21
CATEGORIES= games
MASTER_SITES= ftp://ftp.gmd.de/if-archive/infocom/compilers/inform6/source/ \
ftp://ftp.gmd.de/if-archive/infocom/compilers/inform6/library/
DISTFILES= inform621_source.zip inform_library610.zip
MAINTAINER= mph@freebsd.org
.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
EXTRACT_ONLY= inform621_source.zip
USE_ZIP= yes
# 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 \
tables text veneer verbs
@${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 && \
unzip -qq -o ${DISTDIR}/${DIST_SUBDIR}/inform_library610.zip)
.for file in English Grammar Parser Verblib infix linklpa linklv parserm \
verblibm
@${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
.endfor
@${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
.if defined(NOPORTDOCS)
@${RM} ${PREFIX}/share/inform/Relnote ${PREFIX}/share/inform/Relnote2
.else
@ (umask 222 && unzip -qq -o -d ${PREFIX}/share/doc \
${DISTDIR}/${DIST_SUBDIR}/designers_manual_html.zip)
@${MKDIR} ${PREFIX}/share/doc/inform
@${MV} ${PREFIX}/share/doc/dman/* ${PREFIX}/share/doc/inform
@${RMDIR} ${PREFIX}/share/doc/dman
@${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
.endif
.include <bsd.port.mk>