Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Aug 2010 23:11:05 GMT
From:      Michael Moorman <tensorpuddin@devio.us>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/149601: New port: games/gargoyle - a multiplatform interactive fiction player
Message-ID:  <201008122311.o7CNB5sg036535@www.freebsd.org>
Resent-Message-ID: <201008122320.o7CNKBGd064809@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         149601
>Category:       ports
>Synopsis:       New port: games/gargoyle  -  a multiplatform interactive fiction player
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 12 23:20:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Michael Moorman
>Release:        8.1 RELEASE
>Organization:
>Environment:
FreeBSD kosmos.gateway.2wire.net 8.1-RELEASE FreeBSD 8.1-RELEASE #3: Thu Aug  5 20:08:01 EDT 2010     root@kosmos.gateway.2wire.net:/usr/obj/usr/src/sys/KOSMOS  amd64

>Description:
A multiplatform interactive fiction player. It supports the most common formats (Z-machine, Glulx, TADS) and has a focus on typography.
>How-To-Repeat:
N/A
>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gargoyle
#	gargoyle/distinfo
#	gargoyle/files
#	gargoyle/files/patch-launcher.sh
#	gargoyle/files/patch-Jamrules
#	gargoyle/files/patch-terps_Jamfile
#	gargoyle/files/patch-cgunicod.c
#	gargoyle/files/patch-Jamfile
#	gargoyle/Makefile
#	gargoyle/pkg-descr
#	gargoyle/pkg-plist
#	gargoyle/
#
echo c - gargoyle
mkdir -p gargoyle > /dev/null 2>&1
echo x - gargoyle/distinfo
sed 's/^X//' >gargoyle/distinfo << '499339bd4107fef0808aee135f633c82'
XMD5 (gargoyle-2009-08-25-sources.zip) = e35af8fbcd3536ee531fb7f9cfec4c5c
XSHA256 (gargoyle-2009-08-25-sources.zip) = 8f8c49f0a5a3a3ed8720928a85317139696fa403ce1a007c8df4ea3e04faeca9
XSIZE (gargoyle-2009-08-25-sources.zip) = 11551238
499339bd4107fef0808aee135f633c82
echo c - gargoyle/files
mkdir -p gargoyle/files > /dev/null 2>&1
echo x - gargoyle/files/patch-launcher.sh
sed 's/^X//' >gargoyle/files/patch-launcher.sh << 'c1cb4401faec3686650ca37e72c010aa'
X--- ./garglk/launcher.sh.orig	2009-06-24 12:03:48.000000000 -0400
X+++ ./garglk/launcher.sh	2010-08-11 22:52:35.000000000 -0400
X@@ -7,7 +7,7 @@
X 
X if [ `uname` != Darwin ]
X then
X-    abspath=`readlink -f $0`	# get the full path of this script
X+    abspath=`realpath $0`	# get the full path of this script
X     dirpath=`dirname $abspath`	# get directory part
X     export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$dirpath
X else
c1cb4401faec3686650ca37e72c010aa
echo x - gargoyle/files/patch-Jamrules
sed 's/^X//' >gargoyle/files/patch-Jamrules << '08c99db90f2910cfdb9de28cb2b9a3b0'
X--- Jamrules.orig	2009-06-03 14:52:44.000000000 -0400
X+++ Jamrules	2010-08-12 16:52:56.000000000 -0400
X@@ -4,11 +4,11 @@
X 
X BUILD ?= RELEASE ;
X 
X-USESDL = yes ;
X+USESDL ?= no ;
X # USEFMOD = yes ;
X 
X-CC      = gcc ;
X-C++     = g++ ;
X+CC      ?= gcc ;
X+CXX	?= g++ ;
X 
X if $(CROSS)
X {
X@@ -56,6 +56,20 @@
X 	    GARGLKCCFLAGS += -I/usr/include/SDL ;
X 	    SHRLINKLIBS += -lSDL_mixer -lSDL -lsmpeg -lvorbisfile ;
X 	}
X+    case FREEBSD :
X+        Echo "OS is FREEBSD (gtk+)" ;
X+        PKGCONFIG = "pkg-config freetype2 gtk+-2.0 gdk-x11-2.0 gobject-2.0" ;
X+        #PKGCONFIG = "pkg-config freetype2 gtk+" ;
X+        SHELLHEADER = "#!/bin/sh" ;		
X+        GARGLKCCFLAGS = "`$(PKGCONFIG) --cflags`" -fPIC ;
X+        SHRLINKLIBS = "`$(PKGCONFIG) --libs`" -ljpeg -lpng -lz ;
X+        LINKLIBS = -lz ;
X+
X+	if $(USESDL)
X+	{
X+	    GARGLKCCFLAGS += -D_GNU_SOURCE=1 -I/usr/local/include/SDL ;
X+	    SHRLINKLIBS += -lSDL_mixer -lSDL_sound -lSDL -lsmpeg -lvorbisfile ;
X+	}
X 
X     case SOLARIS :
X         Echo "OS is SOLARIS (gtk+)" ;
X@@ -98,7 +112,7 @@
X 
X     case RELEASE :
X         Echo "BUILD is RELEASE" ;
X-        OPTIM = -O2 ;
X+        OPTIM = $(CFLAGS) ;
X 
X     case TURBO :
X         Echo "BUILD is TURBO" ;
X@@ -192,4 +206,3 @@
X 	return $(_full:J=) ;
X 
X }
X-
08c99db90f2910cfdb9de28cb2b9a3b0
echo x - gargoyle/files/patch-terps_Jamfile
sed 's/^X//' >gargoyle/files/patch-terps_Jamfile << '3334b13e65e7d91b9b41ff00e131b27a'
X--- terps/Jamfile.orig	2010-08-12 17:18:57.000000000 -0400
X+++ terps/Jamfile	2010-08-12 17:19:06.000000000 -0400
X@@ -14,7 +14,7 @@
X MAKE_GEAS       ?= yes ;
X MAKE_GIT        ?= yes ;
X MAKE_GLULXE     ?= yes ;
X-MAKE_HUGO       ?= yes ;
X+MAKE_HUGO       ?= no  ;
X MAKE_LEVEL9     ?= yes ;
X MAKE_MAGNETIC   ?= yes ;
X MAKE_NITFOL     ?= yes ;
3334b13e65e7d91b9b41ff00e131b27a
echo x - gargoyle/files/patch-cgunicod.c
sed 's/^X//' >gargoyle/files/patch-cgunicod.c << '344c4df8cc7bf0799607726a207d1d40'
X--- ./garglk/cgunicod.c.orig 2009-08-24 09:57:02.000000000 -0400
X+++ ./garglk/cgunicod.c      2010-08-11 23:07:00.000000000 -0400
X@@ -13,7 +13,6 @@
X 
X #include <stdio.h>
X #include <stdlib.h>
X-#include <malloc.h>
X #include <memory.h>
X #include "glk.h"
X #include "garglk.h"
344c4df8cc7bf0799607726a207d1d40
echo x - gargoyle/files/patch-Jamfile
sed 's/^X//' >gargoyle/files/patch-Jamfile << '5d8f9a98dc54a8a1d83da98495c04438'
X--- Jamfile.orig	2010-08-12 17:32:18.000000000 -0400
X+++ Jamfile	2010-08-12 17:32:58.000000000 -0400
X@@ -13,9 +13,9 @@
X # If SYSTEM is set, use values for a system wide install
X if $(SYSTEM)
X {
X-    BINDIR = /usr/local/libexec/gargoyle ;
X-    APPDIR = /usr/local/libexec/gargoyle ;
X-    LIBDIR = /usr/local/lib/gargoyle ;
X+    BINDIR ?= /usr/local/libexec/gargoyle ;
X+    APPDIR ?= /usr/local/libexec/gargoyle ;
X+    LIBDIR ?= /usr/local/lib/gargoyle ;
X     DESTDIR = / ;
X     EXEMODE = 755 ;
X     FILEMODE = 755 ;
5d8f9a98dc54a8a1d83da98495c04438
echo x - gargoyle/Makefile
sed 's/^X//' >gargoyle/Makefile << '811a1a0394509b907249cb13f3d784e3'
X# New ports collection makefile for:	gargoyle
X# Date created:		12 Aug 2010
X# Whom:			Michael Moorman <tensorpuddin@devio.us>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gargoyle
XPORTVERSION=	20090825
XCATEGORIES=	games
XMASTER_SITES=	http://garglk.googlecode.com/files/
XDISTNAME=	gargoyle-2009-08-25-sources
X
XMAINTAINER=	tensorpuddin@devio.us
XCOMMENT=	A multi-platform interactive fiction player
X
XBUILD_DEPENDS=	jam:${PORTSDIR}/devel/jam				\
X		pkg-config:${PORTSDIR}/devel/pkg-config
XLIB_DEPENDS=	gio-2.0:${PORTSDIR}/devel/glib20 			\
X		glib-2.0:${PORTSDIR}/devel/glib20 			\
X		gmodule-2.0:${PORTSDIR}/devel/glib20 			\
X		gobject-2.0:${PORTSDIR}/devel/glib20 			\
X		freetype:${PORTSDIR}/print/freetype2			\
X		gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20 		\
X		gdk_pixbuf-2.0:${PORTSDIR}/x11-toolkits/gtk20		\
X		atk-1.0:${PORTSDIR}/accessibility/atk 			\
X		pango-1.0:${PORTSDIR}/x11-toolkits/pango		\
X		pangocairo-1.0:${PORTSDIR}/x11-toolkits/pango		\
X		pangoft2-1.0:${PORTSDIR}/x11-toolkits/pango		\
X		png:${PORTSDIR}/graphics/png 				\
X	     	jpeg:${PORTSDIR}/graphics/jpeg
X
XOPTIONS=	SDL "Build with SDL support (needed for sound)" off	\
X		HUGO "Build with support for Hugo interpreter" off
X
XUSE_ZIP=	yes
XNO_WRKSUBDIR=	yes
X
X.include <bsd.port.options.mk>
X
XLICENSE=		GPLv2 BSD MIT LUXI
XLICENSE_COMB=		multi
XLICENSE_FILE_LUXI=	${WRKSRC}/licenses/"LUXI License.txt"
XLICENSE_NAME_LUXI=	Bigelow & Holmes Inc and URW+ GmbH Luxi font license
XLICENSE_PERMS_LUXI=	dist-mirror dist-sell pkg-mirror pkg-sell
X
X.if defined(WITH_HUGO)
XLICENSE_FILE_HUGO=	${WRKSRC}/licenses/"HUGO License.txt"
XLICENSE_NAME_HUGO=	The Hugo License
XLICENSE_PERMS_HUGO=	dist-mirror pkg-mirror
XLICENSE+=		HUGO
XMAKE_ENV+=		MAKE_HUGO=yes
XPLIST_SUB=		HUGO=""
X.else
XPLIST_SUB=		HUGO="@comment "
X.endif
X
X.if defined(WITH_SDL)
XUSE_SDL=	mixer sound
XLIB_DEPENDS+=	smpeg:${PORTSDIR}/multimedia/smpeg
XMAKE_ENV+=	UseSDL=yes
X.endif
X
Xdo-build:
X	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} jam
X
Xdo-install:
X	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${ALL_FAKE_FLAGS} BINDIR=${PREFIX}/libexec/gargoyle APPDIR=${PREFIX}/libexec/gargoyle LIBDIR=${PREFIX}/lib SYSTEM=1 jam install
X
Xpost-install:
X	${LN} -s -f ${PREFIX}/libexec/gargoyle/gargoyle ${PREFIX}/bin/gargoyle
X	${MKDIR} ${PREFIX}/share/examples/gargoyle
X	${INSTALL_DATA} ${WRKSRC}/garglk/garglk.ini ${PREFIX}/share/examples/gargoyle
X
X.include <bsd.port.mk>
811a1a0394509b907249cb13f3d784e3
echo x - gargoyle/pkg-descr
sed 's/^X//' >gargoyle/pkg-descr << 'dbcc50c8e8e9d62f54be6766846365e3'
XGargoyle is an IF player that plays many of the major interactive fiction 
Xformats. It acts as a frontend to several popular open-source interpreters in 
Xone unified GTK interface. 
X
XFormat Support: Alan, Alan 2 and 3, Frotz (glk port), Glulxe, Hugo, Level 9, 
XMagnetic, Scare, Tads 2 and 3. 
X
XGargoyle has a strong focus on typography; featuring kerning, ligatures, smart
Xquotes, and gamma correction. It is bundled with the Bitstream Charter and 
XLuxi Mono fonts, although it can be configured to use different ones.
X
XGargoyle is licensed under the GNU GPLv2, while the interpreters are variously
Xcovered under the GPLv2 or MIT licenses with the exception of the Hugo 
Xinterpreter, which is separately licensed under the Hugo license.
X
XWWW: http://ccxvii.net/gargoyle/
dbcc50c8e8e9d62f54be6766846365e3
echo x - gargoyle/pkg-plist
sed 's/^X//' >gargoyle/pkg-plist << 'fd9d20ef212145683d8a0d4275e1c2ef'
Xbin/gargoyle
Xlib/libgarglk.so
Xlibexec/gargoyle/agility
Xlibexec/gargoyle/alan2
Xlibexec/gargoyle/alan3
Xlibexec/gargoyle/advsys
Xlibexec/gargoyle/frotz
Xlibexec/gargoyle/gargoyle
Xlibexec/gargoyle/geas
Xlibexec/gargoyle/git
Xlibexec/gargoyle/glulxe
X%%HUGO%%libexec/gargoyle/hugo
Xlibexec/gargoyle/jacl
Xlibexec/gargoyle/level9
Xlibexec/gargoyle/magnetic
Xlibexec/gargoyle/nitfol
Xlibexec/gargoyle/scare
Xlibexec/gargoyle/tadsr
Xshare/examples/gargoyle/garglk.ini
X@dirrm libexec/gargoyle
X@dirrm share/examples/gargoyle
fd9d20ef212145683d8a0d4275e1c2ef
echo c - gargoyle/
mkdir -p gargoyle/ > /dev/null 2>&1
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008122311.o7CNB5sg036535>