Import games/inform6/{compiler,library}, the dev tools for interactive

fiction games.
tweaks and ok sthen@

Inform 6 is an object-oriented language for writing interactive fiction,
also known as "text adventures" or "adventure games".

As an interactive fiction developer, you create Inform 6 source code
defining the story. Then compile from source code to a "story file".
The resulting story files are highly portable, with interpreters
available for many different platforms.
This commit is contained in:
bcallah 2021-01-03 16:42:30 +00:00
parent ac8424cbb2
commit 94193f59c7
11 changed files with 125 additions and 0 deletions

7
games/inform6/Makefile Normal file
View File

@ -0,0 +1,7 @@
# $OpenBSD: Makefile,v 1.1.1.1 2021/01/03 16:42:30 bcallah Exp $
SUBDIR =
SUBDIR += compiler
SUBDIR += library
.include <bsd.port.subdir.mk>

View File

@ -0,0 +1,11 @@
# $OpenBSD: Makefile.inc,v 1.1.1.1 2021/01/03 16:42:30 bcallah Exp $
CATEGORIES ?= games
HOMEPAGE ?= https://inform-fiction.org/
MAINTAINER ?= Brian Callahan <bcallah@openbsd.org>
# Artistic License 2.0
PERMIT_PACKAGE ?= Yes
NO_TEST ?= Yes

View File

@ -0,0 +1,19 @@
# $OpenBSD: Makefile,v 1.1.1.1 2021/01/03 16:42:30 bcallah Exp $
COMMENT = compiler for Inform 6 interactive fiction
PKGNAME = ${DISTNAME:L}
GH_ACCOUNT = DavidKinder
GH_PROJECT = Inform6
GH_TAGNAME = v6.34
WANTLIB += c
RUN_DEPENDS = games/inform6/library
MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/inform ${PREFIX}/bin
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Inform6-6.34.tar.gz) = aA/LoK77C+/wrjtxLIarf+dPZWyrFXjvqg6KZIioids=
SIZE (Inform6-6.34.tar.gz) = 320895

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2021/01/03 16:42:30 bcallah Exp $
No Makefile! Upstream says to execute
cc -o inform *.c
So let's make a simple Makefile
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -0,0 +1,12 @@
+# Inform6 compiler Makefile
+# Written by Brian Callahan <bcallah@openbsd.org>
+# and released into the Public Domain
+
+PROG = inform
+OBJS = arrays.o asm.o bpatch.o chars.o directs.o errors.o \
+ expressc.o expressp.o files.o inform.o lexer.o \
+ linker.o memory.o objects.o states.o symbols.o \
+ syntax.o tables.o text.o veneer.o verbs.o
+
+all: ${OBJS}
+ ${CC} ${LDFLAGS} -o ${PROG} ${OBJS}

View File

@ -0,0 +1,13 @@
Inform 6 is an object-oriented language for writing interactive fiction,
also known as "text adventures" or "adventure games".
As an interactive fiction developer, you create Inform 6 source code
defining the story. Then compile from source code to a "story file".
The resulting story files are highly portable, with interpreters
available for many different platforms.
This package contains the Inform 6 compiler.
The Inform 6 compiler can produce a story file in these formats:
* Z-code, executed by implementations of the Infocom Z-machine.
* Glulx, a modern platform for interactive fiction.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2021/01/03 16:42:30 bcallah Exp $
@bin bin/inform

View File

@ -0,0 +1,22 @@
# $OpenBSD: Makefile,v 1.1.1.1 2021/01/03 16:42:30 bcallah Exp $
V = 6.12.4
COMMENT = standard library for Inform 6 interactive fiction
DISTNAME = inform6lib-${V}
MASTER_SITES = https://gitlab.com/DavidGriffith/inform6lib/-/archive/${V}/
PKG_ARCH = *
NO_BUILD = Yes
# Upstream says you need the symlinks
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/inform
${INSTALL_DATA} ${WRKSRC}/ARTISTIC ${PREFIX}/share/inform
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/share/inform
.for i in English.h Grammar.h Parser.h Verblib.h VerbLib.h
ln -s ${i:L} ${PREFIX}/share/inform/$i
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (inform6lib-6.12.4.tar.gz) = Tl2PFwCopjrhDYe/X4XaSIuqbCiktK4mGVuxBvK+C50=
SIZE (inform6lib-6.12.4.tar.gz) = 135514

View File

@ -0,0 +1,9 @@
Inform 6 is an object-oriented language for writing interactive fiction,
also known as "text adventures" or "adventure games".
As an interactive fiction developer, you create Inform 6 source code
defining the story. Then compile from source code to a "story file".
The resulting story files are highly portable, with interpreters
available for many different platforms.
This package contains the Inform 6 standard library.

View File

@ -0,0 +1,16 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2021/01/03 16:42:30 bcallah Exp $
share/inform/
share/inform/ARTISTIC
share/inform/English.h
share/inform/Grammar.h
share/inform/Parser.h
share/inform/VerbLib.h
share/inform/Verblib.h
share/inform/english.h
share/inform/grammar.h
share/inform/infglk.h
share/inform/infix.h
share/inform/linklpa.h
share/inform/parser.h
share/inform/verblib.h
share/inform/version.h