--- libglkterm-0.8.0.orig/main.c +++ libglkterm-0.8.0/main.c @@ -52,10 +52,10 @@ printf("Compile-time error: glui32 is not unsigned. Please fix glk.h.\n"); return 1; } - if (sizeof(window_t *) > 4) { +/* if (sizeof(window_t *) > 4) { printf("Compile-time error: Pointers cannot fit in a glui32. Start writing hashtable code.\n"); return 1; - } + }*/ /* Now some argument-parsing. This is probably going to hurt. */ startdata.argc = 0; --- libglkterm-0.8.0.orig/glk.h +++ libglkterm-0.8.0/glk.h @@ -17,8 +17,19 @@ /* You may have to edit the definition of glui32 to make sure it's really a 32-bit unsigned integer type, and glsi32 to make sure it's really a 32-bit signed integer type. If they're not, horrible things will happen. */ +#include +#if (USHORT_MAX == 4294967295) +typedef unsigned short glui32; +typedef signed short glsi32; +#elif (UINT_MAX == 4294967295) +typedef unsigned int glui32; +typedef signed int glsi32; +#elif (ULONG_MAX == 4294967295) typedef unsigned long glui32; typedef signed long glsi32; +#else +#error Can not find 32-bit integer type. +#endif /* These are the compile-time conditionals that reveal various Glk optional modules. */ --- libglkterm-0.8.0.orig/Makefile +++ libglkterm-0.8.0/Makefile @@ -48,4 +48,28 @@ $(GLKTERM_OBJS): glk.h $(GLKTERM_HEADERS) clean: - rm -f *~ *.o $(GLKLIB) Make.glkterm + rm -f *~ *.o $(GLKLIB) Make.glkterm libglkterm.3.gz + +distclean: clean + +libglkterm.3.gz: + rm -f libglkterm.3.gz + cp doc/libglkterm.3 . + gzip libglkterm.3 + +install: $(GLKLIB) libglkterm.3.gz + install -d $(DESTDIR)/usr/lib/ + install --mode=644 $(GLKLIB) $(DESTDIR)/usr/lib/ + install -d $(DESTDIR)/usr/include/libglkterm/ + cd $(DESTDIR)/usr/include/ ; ln -s ./libglkterm/ glkterm + install --mode=644 gi_blorb.h $(DESTDIR)/usr/include/libglkterm/ + install --mode=644 gi_dispa.h $(DESTDIR)/usr/include/libglkterm/ + install --mode=644 glk.h $(DESTDIR)/usr/include/libglkterm/ + install --mode=644 glkstart.h $(DESTDIR)/usr/include/libglkterm/ + install -d $(DESTDIR)/usr/share/man/man3/ + install --mode=644 libglkterm.3.gz $(DESTDIR)/usr/share/man/man3/ + cd $(DESTDIR)/usr/share/man/man3/ ; ln -s ./libglkterm.3.gz glkterm.3.gz + install -d $(DESTDIR)/usr/share/doc/libglkterm/ + install --mode=644 doc/README.glk-API $(DESTDIR)/usr/share/doc/libglkterm/ + cd $(DESTDIR)/usr/share/doc/ ; ln -s ./libglkterm/ glkterm + --- libglkterm-0.8.0.orig/debian/changelog +++ libglkterm-0.8.0/debian/changelog @@ -0,0 +1,10 @@ +libglkterm (0.8.0-1) unstable; urgency=low + + * Initial release (2008/06/07) of upstream version 0.8.0. + * Modified upstream release to install static library into /usr/lib/ and + header files into /usr/include/libglkterm/. Beware: this debianized version + does not provide a Make.glkterm file. + * Added a patch for 64-bit support + (see http://www.wolldingwacht.de/if/glkterm/patch-64-bit.html). + + -- Peer Schaefer Sat, 07 Jun 2008 14:07:07 +0200 --- libglkterm-0.8.0.orig/debian/copyright +++ libglkterm-0.8.0/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Peer Schaefer on +Sat, 07 Jun 2008 14:09:07 +0200. + +It was downloaded from http://www.eblong.com/zarf/glk/ + +Upstream Author(s): + + Andrew Plotkin + +Copyright: + + Copyright (C) 1998-2000 by Andrew Plotkin + +License: + Designed by Andrew Plotkin + http://eblong.com/zarf/glk/index.html + The source code in this package is copyright 1998-2000 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'. + --- libglkterm-0.8.0.orig/debian/control +++ libglkterm-0.8.0/debian/control @@ -0,0 +1,19 @@ +Source: libglkterm +Section: libdevel +Priority: optional +Maintainer: Peer Schaefer +Build-Depends: debhelper (>= 5), libncurses5-dev, libc6 +Standards-Version: 3.7.3 +Homepage: http://www.eblong.com/zarf/glk/ + +Package: libglkterm +Architecture: any +Depends: libncurses5, libc6 +Description: implementation of the glk API with ncurses support + glkterm is the reference implementation of Andrew Plotkin's glk API standard + for Interactive Fiction Interpreters with ncurses support. This package + contains the header files and static libraries that developers using glkterm + will need. The specification of the glk API is not re-distributable and + available for free download from the glk-website: + http://www.eblong.com/zarf/glk/glk-spec-070.html. + --- libglkterm-0.8.0.orig/debian/compat +++ libglkterm-0.8.0/debian/compat @@ -0,0 +1 @@ +5 --- libglkterm-0.8.0.orig/debian/README.Debian +++ libglkterm-0.8.0/debian/README.Debian @@ -0,0 +1,14 @@ +libglkterm for Debian +--------------------- + +The debianized version of glkterm is named "libglkterm". Currently there are +no versions of cheapglk and xglk available. + +The debianized version does not provide a Make.glkterm file and installs the +static library to /usr/lib/ and the header files to /usr/include/libglkterm/. +This is not the behavior of Andrew Plotkin's original glkterm, so if you want to +compile Andrew Plotkin's glulxe or other programs that rely on the original +behavior you have to patch them. A patched version of glulxe is available here: +http://www.wolldingwacht.de/if/glulxe/. + + -- Peer Schaefer Wed, 04 Jun 2008 21:03:50 +0200 --- libglkterm-0.8.0.orig/debian/rules +++ libglkterm-0.8.0/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/libglkterm.sgml > libglkterm.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/libglkterm. + $(MAKE) DESTDIR=$(CURDIR)/debian/libglkterm 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 --- libglkterm-0.8.0.orig/doc/README.glk-API +++ libglkterm-0.8.0/doc/README.glk-API @@ -0,0 +1,26 @@ +About the glk API +----------------- + +Andrew Plotkin's glk standard provides a standardized API for programmers of +Interactive Fiction interpreters. An interpreter using the glk API should (in +theory) compile with any glk implementation (e.g. xglk for X11 compatible X +Windows systems, cheapglk for a plain vanilla implementation using the ISO/ANSI +C stdio.h library, and glkterm for a text based terminal with ncurses support). +Porting a glk compliant interpreter to a platform should only require writing an +implementation of the glk API for that platform. + +The libglkterm package contains the glkterm library, Andrew Plotkin's reference +implementation of the glk API for systems that provide a ncurses library. + +The specification of the glk API itself is currently at version 0.7.0 and +available from this location: + + * http://www.eblong.com/zarf/glk/glk-spec-070.html + +The specification is copyright (c) 1998-2004 by Andrew Plotkin and is only +available for personal, non-commercial use, and re-distribution requires the +author's written permission. For this reason, it is not included in this +package, but you can download it for free for personal, non-commercial use from +the URL mentioned above. + + -- Peer Schaefer Sat, 07 Jun 2008 20:39:22 +0200 --- libglkterm-0.8.0.orig/doc/libglkterm.3 +++ libglkterm-0.8.0/doc/libglkterm.3 @@ -0,0 +1,62 @@ +.\" -*- nroff -*- +.TH LIBGLKTERM 3 0.8.0 +.SH NAME +.B glkterm +\- implementation of the glk API with ncurses support + +.SH SYNOPSIS +.B #include + +.SH DESCRIPTION +.B glkterm +is the reference implementation of the glk API for Interactive Fiction +Interpreters with ncurses support. The glk API provides a standardized +interface for programmers of Interactive Fiction interpreters. An interpreter +using the glk API should (in theory) compile with any glk implementation (e.g. +xglk for X11 compatible X Windows systems, cheapglk for a plain vanilla +implementation using the ISO/ANSI C stdio.h library, and glkterm for a text +based terminal with ncurses support). Porting a glk compliant interpreter to a +platform should only require writing an implementation of the glk API for that platform. +.P +glkterm is the ncurses version of the glk API. +.P +The specification of the glk API itself is currently at version 0.7.0 and +available from http://www.eblong.com/zarf/glk/glk-spec-070.html. The +specification is copyright (c) 1998-2004 by Andrew Plotkin and is only +available for personal, non-commercial use, and re-distribution requires the +author's written permission. For this reason, it is not included in this +package, but you can download it for free for personal, non-commercial use from +the URL mentioned above. + +.SH USAGE +The debianized version does not provide a Make.glkterm file and installs the +static library to /usr/lib/ and the header files to /usr/include/libglkterm/. +This is not the behavior of Andrew Plotkin's original glkterm, so if you want to +compile Andrew Plotkin's glulxe or other programs that rely on the original +behavior you have to patch them. A patched version of glulxe is available here: +.P +http://www.wolldingwacht.de/if/glulxe/. + +.SH BUGS +No known. + +.SH AUTHORS +.B glkterm +is written and copyright (C) 1998-2000 by Andrew Plotkin. + +.SH COPYRIGHT +Designed by Andrew Plotkin . +.P +http://eblong.com/zarf/glk/index.html. +.P +The source code in this package is copyright 1998-2000 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 glulxe (6)