--- 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 @@ -24,11 +24,17 @@ CC = gcc OPTIONS = -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-unused -DOS_UNIX +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) + OPTIONS += -O0 +else + OPTIONS += -O2 +endif -include $(GLKINCLUDEDIR)/$(GLKMAKEFILE) +#include $(GLKINCLUDEDIR)/$(GLKMAKEFILE) +LINKLIBS = -lglkterm CFLAGS = $(OPTIONS) -I$(GLKINCLUDEDIR) -LIBS = -L$(GLKLIBDIR) $(GLKLIB) $(LINKLIBS) +LIBS = $(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 @@ -47,5 +53,19 @@ gestalt.o: gestalt.h clean: - rm -f *~ *.o glulxe glulxdump + rm -f *~ *.o glulxe glulxdump glulxe.6 glulxe.6.gz + +glulxe.6.gz: + cp debian/doc/glulxe.6 . + gzip glulxe.6 + +install: glulxe glulxe.6.gz + install -d $(DESTDIR)/usr/games/ + install --mode=755 glulxe $(DESTDIR)/usr/games/ + 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 debian/doc/README.glulx $(DESTDIR)/usr/share/doc/glulxe/ + install --mode=644 debian/doc/README.games $(DESTDIR)/usr/share/doc/glulxe/ + install --mode=644 README $(DESTDIR)/usr/share/doc/glulxe/README.original --- glulxe-0.4.3.orig/debian/control +++ glulxe-0.4.3/debian/control @@ -0,0 +1,18 @@ +Source: glulxe +Section: games +Priority: extra +Maintainer: Peer Schaefer +Build-Depends: debhelper (>= 6), libglkterm-dev +Standards-Version: 3.7.3 +Homepage: http://www.eblong.com/zarf/glulx/ + +Package: glulxe +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: interpreter for text adventures in glulx runtime format + glulxe is the reference implementation of the 'glulx' Virtual Machine (VM). + The glulx VM was specifically designed 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 be run with any standard conforming glulx interpreter, e.g. with + glulxe. + --- glulxe-0.4.3.orig/debian/rules +++ glulxe-0.4.3/debian/rules @@ -0,0 +1,58 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# 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: + dh_testdir + +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/glulxe install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installman + dh_installdocs + dh_link + dh_strip + dh_compress + dh_fixperms + 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/debian/copyright +++ glulxe-0.4.3/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Peer Schaefer on +Sun, 15 Jun 2008 20:34:42 +0200. + +It was downloaded from + +Upstream Author: + + Andrew Plotkin + +Copyright: + + Copyright (C) 1999 Andrew Plotkin + +License: + 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[1] + and the URL shown above[2]. + + Notes by Peer Schaefer : + [1] This refers to: Andrew Plotkin + [2] This refers to: http://eblong.com/zarf/glulx/index.html + +The Debian packaging is copyright (C) 2008 by Peer Schaefer + and licensed under the same terms as glulxe itself. +Please read the terms "my name" and "the URL shown above" in the license as +"Peer Schaefer " and +"http://www.wolldingwacht.de/if/debian/glulxe/", respectively. + --- glulxe-0.4.3.orig/debian/compat +++ glulxe-0.4.3/debian/compat @@ -0,0 +1 @@ +6 --- glulxe-0.4.3.orig/debian/changelog +++ glulxe-0.4.3/debian/changelog @@ -0,0 +1,9 @@ +glulxe (0.4.3-1) unstable; urgency=low + + * Initial release (Closes: #486409) + * Added a manpage. + * Modified upstream package to make it use the glkterm shared library + provided by the 'libglkterm' package. + + -- Peer Schaefer Sun, 15 Jun 2008 20:34:42 +0200 + --- glulxe-0.4.3.orig/debian/README.Debian +++ glulxe-0.4.3/debian/README.Debian @@ -0,0 +1,9 @@ +glulxe for Debian +----------------- + + * The upstream package of 'glulxe' was modified to make it use the glkterm + shared library provided by the 'libglkterm' package. Since the original + glkterm library only provides a static library, this version of glulxe + doesn't work with the upstream glkterm package. + + -- Peer Schaefer Sun, 15 Jun 2008 20:34:42 +0200 --- glulxe-0.4.3.orig/debian/doc/README.glulx +++ glulxe-0.4.3/debian/doc/README.glulx @@ -0,0 +1,22 @@ +About the glulx Virtual Machine +------------------------------- + +The glulx standard is the specification of a Virtual Machine (VM), 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 be run with +any standard conforming glulx interpreter, e.g. with Andrew Plotkin's glulxe +interpreter. Please note the spelling: "glulx" is the VM and respectively its +specification, "glulxe" is one (but not the only) implementation of the glulx +VM. + +The most recent specification of the glulx VM is version 3.1.0 and available +from this URL: + + * http://www.eblong.com/zarf/glulx/glulx-spec.html + +Please note that the license terms of the specification allows only viewing +and downloading for personal, non-commercial purposes, and disallows any form +of modification or distribution. See the specification for details. + + -- Peer Schaefer Sat, 07 Jun 2008 21:29:05 +0200 + --- glulxe-0.4.3.orig/debian/doc/glulxe.6 +++ glulxe-0.4.3/debian/doc/glulxe.6 @@ -0,0 +1,88 @@ +.\" -*- 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. the Inform compiler can generate such files). +.P +This is the ncurses version of glulxe, using the libglkterm library. + +.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. +.P +This man page was added for the debianized package of glulxe and is written +and copyright (C) 2008 by Peer Schaefer . It is licensed +under the same terms as glulxe itself. Please read the terms "my name" and "the +URL shown above" in the license as "Peer Schaefer " and +"http://www.wolldingwacht.de/if/debian/glulxe/", respectively. + +.SH "SEE ALSO" +.BR frotz (6) +.BR glkterm (3) + --- glulxe-0.4.3.orig/debian/doc/README.games +++ glulxe-0.4.3/debian/doc/README.games @@ -0,0 +1,26 @@ +About glulx-games +----------------- + +The glulx standard is the specification of a Virtual Machine (VM), 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 be run with +any standard conforming glulx interpreter, e.g. with Andrew Plotkin's glulxe +interpreter. Please note the spelling: "glulx" is the VM and respectively its +specification, "glulxe" is one (but not the only) implementation of the glulx +VM. + +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 +