GLK is a library interface for programming cross-platform interactive fiction interfaces. XGLK is an implementation of this interface for X11. The attached ebuild uses a patch (also attached) to fix some build issues, add support for sound and truecolor graphics. It PROVIDEs thus proposed virtual/glk, as there are more implementations of glk (such as cheapglk, glkterm and also a gtk-based implementation; ebuilds for these are not provided at this time). The library itself is compiled as a shared object to permit usage of glkloader (a wrapper glk library that allows selection of implementation at runtime, to be provided in a future bugreport).
Created attachment 75112 [details] xglk-0.4.11.ebuild
Created attachment 75113 [details] 0.4.11-Makefile
Created attachment 75114 [details] 0.4.11-xglk.rc
Created attachment 75115 [details, diff] xglk-sdl-mixer-24bit-sanity.diff
Time to start working on these, as I promised some time ago :-)
Assigned to myself
After a lot of time, some issues resolved, some others not, I decided against merging this set of changes into Portage. The main point is that I find this solution a bit overkill and too complicated, while simpler ones are already in Portage. Sorry :-(
Created attachment 124571 [details] xglk-0.4.11.ebuild Updated ebuild based on the above: * Use mirror.ifarchive.org in SRC_URI * Respect user CFLAGS * Use -fPIC to compile, multilib tweak, and tested on amd64 One small problem is that the static library also gets build with -fPIC, because the Makefile only builds each object file once. I'm not sure if it's worth fixing this.
Created attachment 124572 [details] 0.4.11-Makefile Updated Makefile
Created attachment 124574 [details, diff] 0.4.11-64bit.patch
Created attachment 126149 [details] xglk-0.4.11.ebuild Small update: nicer way of handling user CFLAGS, more multilib fixing, turn off debugging in the sound module (which sneakily fixes some 64bit-related warnings).
Created attachment 126150 [details] 0.4.11-Makefile
Created attachment 126152 [details, diff] 0.4.11-64bit.patch
Created attachment 138039 [details] xglk-0.4.11.ebuild Updated ebuild. Notable changes: use libtool to build the shared library (fixes the -fPIC issue mentioned above), use headers from glkloader (bug 116062) instead of bundled (saves applying fixes in multiple places, in particular a 64-bit incompatibility), modular X dependencies, fix a mistake in the multilib handling in the previous ebuild that left a stray "xglk.rce" file lying around, don't PROVIDE virtual/glk anymore (new-style virtual attached to the glkloader bug). I'm also now using this as dev-games/xglk, rather than dev-libs as before.
Created attachment 138040 [details, diff] xglk-0.4.11-64bit.patch Updated 64-bit patch - the glk.h part is no longer necessary, as mentioned above.
Created attachment 138042 [details, diff] xglk-0.4.11-Makefile.patch Updated Makefile (now as a patch, rather than the whole thing as before).
Created attachment 148245 [details] xglk-0.4.11.ebuild Updated ebuild, to go with the newest glkloader on bug 116062. Again, it uses a here doc instead of xglk.rc in files/, and requires ifarchive http://ifarchive.plover.net/if-archive/ ftp://ifarchive.plover.net/if-archive/ http://ifarchive.smallwhitehouse.org/if-archive/ http://ifarchive.wurb.com/if-archive/ http://ifarchive.heanet.ie/if-archive/ http://ifarchive.giga.or.at/if-archive/ ftp://ftp.giga.or.at/pub/ifarchive/ http://www.ibiblio.org/pub/docs/interactive-fiction/ ftp://ftp.ibiblio.org/pub/docs/interactive-fiction/ ftp://ftp.guetech.org/pub/guetech/if-archive/ ftp://ftp.funet.fi/pub/misc/ifarchive/ in thirdpartymirrors.
Created attachment 148247 [details, diff] xglk-0.4.11-optional-sdl.patch Make SDL usage optional.
Created attachment 148249 [details, diff] xglk-0.4.11-garglk-extensions.patch Implements some Gargoyle extensions to the Glk API, mostly as no-ops, so that applications can use them safely.
Created attachment 148251 [details] xglk-0.4.11-configure.ac Again, I gave up on fixing the build system, so I wrote simple autotools files instead.
Created attachment 148252 [details] xglk-0.4.11-Makefile.am