1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/games/inform7/Makefile

49 lines
1.2 KiB
Makefile

# Created by: Andy Kosela <akosela@andykosela.com>
# $FreeBSD$
PORTNAME= inform7
PORTVERSION= 6G60
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://ftp.ifarchive.org/if-archive/infocom/compilers/inform7/source/:1 \
http://ifarchive.heanet.ie/if-archive/infocom/compilers/inform7/source/:1 \
http://ftp.ifarchive.org/if-archive/infocom/compilers/inform7/executables/:2 \
http://ifarchive.heanet.ie/if-archive/infocom/compilers/inform7/executables/:2
DISTFILES= inform6.zip:1 \
I7_6G60_FreeBSD.zip:2
MAINTAINER= akosela@andykosela.com
COMMENT= Inform 7 programming language (CLI edition)
RUN_DEPENDS= frotz:${PORTSDIR}/games/frotz
ONLY_FOR_ARCHS= i386 amd64
USE_ZIP= yes
SUB_FILES= i7.sh
MAN6= i7.6
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-build:
@cd ${WRKDIR} && ${CC} ${CFLAGS} -o inform6 *.c
do-install:
@${INSTALL_SCRIPT} ${WRKDIR}/i7.sh ${PREFIX}/bin/i7
@${INSTALL_PROGRAM} ${WRKDIR}/inform6 ${PREFIX}/bin/inform6
@${MKDIR} ${DATADIR}
@${CP} -R ${WRKDIR}/Extensions ${DATADIR}
@${INSTALL_MAN} ${FILESDIR}/i7.6 ${MAN6PREFIX}/man/man6
.if ${ARCH} == "i386"
@${INSTALL_PROGRAM} ${WRKDIR}/ni.i386 ${PREFIX}/bin/ni
.else
@${INSTALL_PROGRAM} ${WRKDIR}/ni.amd64 ${PREFIX}/bin/ni
.endif
.include <bsd.port.post.mk>