--- glulxe-0.4.3.orig/Makefile +++ glulxe-0.4.3/Makefile @@ -7,11 +7,11 @@ # sets of values appear below; uncomment one of them and change the # directories appropriately. -GLKINCLUDEDIR = ../cheapglk -GLKLIBDIR = ../cheapglk -GLKMAKEFILE = Make.cheapglk +#GLKINCLUDEDIR = ../cheapglk +#GLKLIBDIR = ../cheapglk +#GLKMAKEFILE = Make.cheapglk -#GLKINCLUDEDIR = ../glkterm +GLKINCLUDEDIR = /usr/include/libglkterm #GLKLIBDIR = ../glkterm #GLKMAKEFILE = Make.glkterm @@ -25,15 +25,17 @@ OPTIONS = -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-unused -DOS_UNIX -include $(GLKINCLUDEDIR)/$(GLKMAKEFILE) +#include $(GLKINCLUDEDIR)/$(GLKMAKEFILE) +LINKLIBS = -lncurses +GLKLIB = -lglkterm CFLAGS = $(OPTIONS) -I$(GLKINCLUDEDIR) -LIBS = -L$(GLKLIBDIR) $(GLKLIB) $(LINKLIBS) +LIBS = $(GLKLIB) $(LINKLIBS) OBJS = main.o files.o vm.o exec.o funcs.o operand.o string.o glkop.o \ heap.o serial.o search.o gestalt.o osdepend.o -all: glulxe +all: glulxe glulxe.6.gz glulxe: $(OBJS) unixstrt.o $(CC) $(OPTIONS) -o glulxe $(OBJS) unixstrt.o $(LIBS) @@ -46,6 +48,18 @@ exec.o operand.o: opcodes.h gestalt.o: gestalt.h +glulxe.6.gz: + cp doc/glulxe.6 . + gzip glulxe.6 clean: - rm -f *~ *.o glulxe glulxdump + rm -f *~ *.o glulxe glulxdump glulxe.6.gz + +install: glulxe glulxe.6.gz + install -d $(DESTDIR)/usr/bin/ + install --mode=755 glulxe $(DESTDIR)/usr/bin/ + install -d $(DESTDIR)/usr/share/man/man6/ + install --mode=644 glulxe.6.gz $(DESTDIR)/usr/share/man/man6/ + install -d $(DESTDIR)/usr/share/doc/glulxe/ + install --mode=644 doc/README.glulx-VM $(DESTDIR)/usr/share/doc/glulxe/ + install --mode=644 doc/README.glulx-games $(DESTDIR)/usr/share/doc/glulxe/ --- glulxe-0.4.3.orig/debian/changelog +++ glulxe-0.4.3/debian/changelog @@ -0,0 +1,7 @@ +glulxe (0.4.3-1) unstable; urgency=low + + * Initial release (2008/06/07). + * Modified to use the debianized version of the glkterm library (libglkterm), + available from here: http://www.wolldingwacht.de/if/glkterm/. + + -- Peer Schaefer Sat, 07 Jun 2008 14:38:14 +0200 --- glulxe-0.4.3.orig/debian/copyright +++ glulxe-0.4.3/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Peer Schaefer on +Fri, 06 Jun 2008 10:55:31 +0200. + +It was downloaded from http://www.eblong.com/zarf/glulx/ + +Upstream Author(s): + + Andrew Plotkin + +Copyright: + + Copyright (C) 1999 by Andrew Plotkin + +License: + Designed by Andrew Plotkin + http://eblong.com/zarf/glulx/index.html + The source code in this package is copyright 1999 by Andrew Plotkin. You + may copy and distribute it freely, by any means and under any conditions, + as long as the code and documentation is not changed. You may also + incorporate this code into your own program and distribute that, or modify + this code and use and distribute the modified version, as long as you retain + a notice in your program or documentation which mentions my name and the + URL shown above. + +The Debian packaging is (C) 2008, Peer Schaefer and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + --- glulxe-0.4.3.orig/debian/control +++ glulxe-0.4.3/debian/control @@ -0,0 +1,17 @@ +Source: glulxe +Section: games +Priority: optional +Maintainer: Peer Schaefer +Build-Depends: debhelper (>= 5), libncurses5-dev, libglkterm +Standards-Version: 3.7.3 +Homepage: http://www.eblong.com/zarf/glulx/ + +Package: glulxe +Architecture: any +Depends: libc6, libncurses5 +Description: A glulx interpreter with ncurses support + Glulxe is an interpreter for programs written for the glulx virtual machine. + The glulx virtual machine was specifically designed to run Interactive Fiction + (a.k.a. Text Adventures). This versions uses the ncurses library and runs in + text-only terminals. + --- glulxe-0.4.3.orig/debian/compat +++ glulxe-0.4.3/debian/compat @@ -0,0 +1 @@ +5 --- glulxe-0.4.3.orig/debian/README.Debian +++ glulxe-0.4.3/debian/README.Debian @@ -0,0 +1,10 @@ +glulxe for Debian +----------------- + +The debianized version of glulxe was modified to work with the debianized +version of the glkterm library ("libglkterm"). For example, the debianized +version of glkterm places the static library into /usr/lib/ and the header +files into /usr/include/glkterm/, and it doesn't provide a Make.glkterm file. +The sourcecode of glulxe was adjusted to work with that. + + -- Peer Schaefer Sat, 07 Jun 2008 14:39:33 +0200 --- glulxe-0.4.3.orig/debian/rules +++ glulxe-0.4.3/debian/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/glulxe.sgml > glulxe.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/glulxe. + $(MAKE) DESTDIR=$(CURDIR)/debian/glulxe install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- glulxe-0.4.3.orig/doc/glulxe.6 +++ glulxe-0.4.3/doc/glulxe.6 @@ -0,0 +1,84 @@ +.\" -*- nroff -*- +.TH GLULXE 6 0.4.3 +.SH NAME +glulxe \- an implementation of the glulx VM using the glk API + +.SH SYNOPSIS +.B glulxe +[\fIOPTIONS\fR]... \fIFILE\fR... +.SH DESCRIPTION +.\" Add any additional description here +.PP +Runs the game file \fIFILE\fR. +.PP +Possible \fIOPTIONS\fR are: +.TP +\fB\-width NUM\fR +manual screen width (if not specified, will try to measure) +.TP +\fB\-height NUM\fR +manual screen height (if not specified, will try to measure) +.TP +\fB\-ml BOOL\fR +use message line (default \'yes\') +.TP +\fB\-historylen NUM\fR +length of command history (default 20) +.TP +\fB\-revgrid BOOL\fR +reverse text in grid (status) windows (default \'no\') +.TP +\fB\-border BOOL\fR +draw borders between windows (default \'yes\') +.TP +\fB\-defprompt BOOL\fR +provide defaults for file prompts (default \'yes\') +.TP +\fB\-precise BOOL\fR +more precise timing for timed input (burns more CPU time) (default \'no\') +.TP +\fB\-version\fR +display Glk library version +.TP +\fB\-help\fR +display this list +.PP +.B NUM +values can be any number. +.B BOOL +values can be \'yes\' or \'no\', or no value to toggle. + +.SH DESCRIPTION +.B glulxe +is the reference implementation of the glulx Virtual Machine. The glulx VM was +specifically designed for Interactive Fiction (a.k.a. Text Adventures). You need +the glulxe interpreter to run games that are encoded as binaries for the glulx +VM (e.g. Inform can produce such files). +.P +This is the ncurses version of glulxe, using the libglkterm library. Debian +packages of the libglkterm library are available here: +http://www.wolldingwacht.de/if/glkterm/. + +.SH BUGS +No known. + +.SH AUTHORS +.B glulxe +is written and copyright (C) 1999 by Andrew Plotkin. + +.SH COPYRIGHT +Designed by Andrew Plotkin . +http://eblong.com/zarf/glulx/index.html. +.P +The source code in this package is copyright 1999 by Andrew Plotkin. You +may copy and distribute it freely, by any means and under any conditions, +as long as the code and documentation is not changed. You may also +incorporate this code into your own program and distribute that, or modify +this code and use and distribute the modified version, as long as you retain +a notice in your program or documentation which mentions my name and the +URL shown above. + +.SH "SEE ALSO" +.BR frotz (6) +.BR libglkterm (6) + --- glulxe-0.4.3.orig/doc/README.glulx-VM +++ glulxe-0.4.3/doc/README.glulx-VM @@ -0,0 +1,21 @@ +About the glulx VM +------------------ + +glulx is a virtual machine, designed specifically for the needs of Interactive +Fiction (a.k.a. Text Adventures). Games that ship in the form of runtime-code +for the glulx VM can run on any glulx interpreter, e.g. on Andrew Plotkin's +glulxe interpreter. Please note the spelling: "glulx" is the VM resp. its +specification, "glulxe" is one (but not the only) implementation of the glulx +VM. + +The specification of the glulx VM is currently on version 3.1.0 and available +from this URL: + + * http://www.eblong.com/zarf/glulx/glulx-spec.html + +The document is only available for personal, non-commercial use and any +redistribution requires the written permission of the author. For this reason, +it is not included this package. However, you may download the specification +from the URL above for free for personal, non-commercial use. + + -- Peer Schaefer Sat, 07 Jun 2008 21:29:05 +0200 --- glulxe-0.4.3.orig/doc/README.glulx-games +++ glulxe-0.4.3/doc/README.glulx-games @@ -0,0 +1,22 @@ +About glulx-games +----------------- + +glulx is a virtual machine, designed specifically for the needs of Interactive +Fiction (a.k.a. Text Adventures). Games that ship in the form of runtime-code +for the glulx VM can run on any glulx interpreter, e.g. on Andrew Plotkin's +glulxe interpreter. + +Interactive Fiction in the form of glulx-code is available from the Interactive +Fiction archive: + + * http://mirror.ifarchive.org/if-archive/games/glulx/ + +For more information about Interactive Fiction and how to play it please visit +the following URLs: + + * http://en.wikipedia.org/wiki/Interactive_fiction + * http://www.brasslantern.org/beginners/ + * http://inform-fiction.org/I7Downloads/Examples/dm/IntroductionToIF.pdf + * http://www.andybrain.com/archive/interactive_fiction.htm + + -- Peer Schaefer Sat, 07 Jun 2008 21:29:05 +0200