Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 1999 22:47:25 -0400 (EDT)
From:      Will Andrews <andrews@technologist.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13063: new port: games/hex
Message-ID:  <199908110247.WAA25386@shadow.blackdawn.com>

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

>Number:         13063
>Category:       ports
>Synopsis:       new port: games/hex
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 10 20:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Will Andrews
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
none
>Environment:

FreeBSD 5042-243.008.popsite.net 3.2-STABLE FreeBSD 3.2-STABLE #0: Sun Jul 25 01:17:53 EDT 1999     root@shadow.blackdawn.com:/usr/src/sys/compile/SHADOW  i386

>Description:

This is a port of the quick'n'dirty GTK/Imlib clone of "Puzzle Bobble".
The author indicated that the name might be changed in the future, so
don't expect this game to be around forever in its current incarnation.

>How-To-Repeat:

Use the shar below to create the port.

>Fix:

# 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:
#
#	hex
#	hex/pkg
#	hex/pkg/PLIST
#	hex/pkg/DESCR
#	hex/pkg/COMMENT
#	hex/files
#	hex/files/md5
#	hex/Makefile
#	hex/patches
#	hex/patches/patch-aa
#	hex/patches/patch-ab
#
echo c - hex
mkdir -p hex > /dev/null 2>&1
echo c - hex/pkg
mkdir -p hex/pkg > /dev/null 2>&1
echo x - hex/pkg/PLIST
sed 's/^X//' >hex/pkg/PLIST << 'END-of-hex/pkg/PLIST'
Xbin/hex
Xshare/hex/levels/Level1
X@dirrm share/hex/levels/
Xshare/hex/graphics/ball0.png
Xshare/hex/graphics/ball1.png
Xshare/hex/graphics/ball2.png
Xshare/hex/graphics/ball3.png
Xshare/hex/graphics/ball4.png
Xshare/hex/graphics/ball5.png
Xshare/hex/graphics/ball6.png
Xshare/hex/graphics/ball7.png
Xshare/hex/graphics/ball8.png
X@dirrm share/hex/graphics/
Xshare/hex/README
Xshare/hex/TODO
Xshare/hex/HISTORY
X@dirrm share/hex/
END-of-hex/pkg/PLIST
echo x - hex/pkg/DESCR
sed 's/^X//' >hex/pkg/DESCR << 'END-of-hex/pkg/DESCR'
XHex is a clone of "Puzzle Bobble". It is currently in a rather
Xdevelopmental stage, and needs some bugtesting, so unless you
Xare a Puzzle Bobble diehard, this game probably isn't for you.
X
XWWW: http://www.nott.ac.uk/~psystrj/hex.html
X
X- Will <andrews@technologist.com>
END-of-hex/pkg/DESCR
echo x - hex/pkg/COMMENT
sed 's/^X//' >hex/pkg/COMMENT << 'END-of-hex/pkg/COMMENT'
XClone of "Puzzle Bobble" for X11 that uses GTK/Imlib.
END-of-hex/pkg/COMMENT
echo c - hex/files
mkdir -p hex/files > /dev/null 2>&1
echo x - hex/files/md5
sed 's/^X//' >hex/files/md5 << 'END-of-hex/files/md5'
XMD5 (hex-0.0.2.tar.gz) = 13191ef9192c3f1641b009b23cb8ebe3
END-of-hex/files/md5
echo x - hex/Makefile
sed 's/^X//' >hex/Makefile << 'END-of-hex/Makefile'
X# New ports collection makefile for:	Hex
X# Version required:	0.0.2
X# Date created:		9 Aug 1999
X# Whom:			Will Andrews <andrews@technologist.com>
X#
X# $Id$
X#
X
XDISTNAME=	hex-0.0.2
XCATEGORIES=	games
XMASTER_SITES=	http://www.nott.ac.uk/~psystrj/ \
X		http://www.psn.net/~andrews/dist/
X
XMAINTAINER=	andrews@technologist.com
X
XLIB_DEPENDS=	Imlib.4:${PORTSDIR}/graphics/imlib \
X		gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
X
XUSE_X_PREFIX=	YES
X
XUSE_GMAKE=	YES
XWRKSRC=		${WRKDIR}/${DISTNAME}
X
Xpre-install:
X	@${MKDIR} ${X11BASE}/share/hex
X	@${MKDIR} ${X11BASE}/share/hex/levels
X	@${MKDIR} ${X11BASE}/share/hex/graphics
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/hex ${X11BASE}/bin/hex
X	@${INSTALL_DATA} ${WRKSRC}/HISTORY ${X11BASE}/share/hex/HISTORY
X	@${INSTALL_DATA} ${WRKSRC}/README ${X11BASE}/share/hex/README
X	@${INSTALL_DATA} ${WRKSRC}/TODO ${X11BASE}/share/hex/TODO
X.for i in 0 1 2 3 4 5 6 7 8
X	@${INSTALL_DATA} ${WRKSRC}/graphics/ball${i}.png \
X			 ${X11BASE}/share/hex/graphics/ball${i}.png
X.endfor
X	@${INSTALL_DATA} ${WRKSRC}/levels/Level1 \
X			 ${X11BASE}/share/hex/levels/Level1
X
X.include <bsd.port.mk>
END-of-hex/Makefile
echo c - hex/patches
mkdir -p hex/patches > /dev/null 2>&1
echo x - hex/patches/patch-aa
sed 's/^X//' >hex/patches/patch-aa << 'END-of-hex/patches/patch-aa'
X--- hex.c	Wed Aug  4 19:36:00 1999
X+++ hex.c.new	Mon Aug  9 23:02:44 1999
X@@ -17,7 +17,7 @@
X #include <string.h>
X #include <ctype.h>
X 
X-#define LEVELPATH "./levels/"
X+#define LEVELPATH "/usr/X11R6/share/hex/levels/"
X 
X #define XSIZE 8 
X #define YSIZE 12
END-of-hex/patches/patch-aa
echo x - hex/patches/patch-ab
sed 's/^X//' >hex/patches/patch-ab << 'END-of-hex/patches/patch-ab'
X--- hex.h	Fri Aug  6 17:27:05 1999
X+++ hex.h.new	Mon Aug  9 23:10:17 1999
X@@ -1,5 +1,5 @@
X-#define GRAPHICPATH "./graphics/"
X-#define LEVELPATH "./levels/"
X+#define GRAPHICPATH "/usr/X11R6/share/hex/graphics/"
X+#define LEVELPATH "/usr/X11R6/share/hex/levels/"
X 
X #define XSIZE 8
X #define YSIZE 12 // add 1 for the ceiling line
END-of-hex/patches/patch-ab
exit


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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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