From 345a07aae402679b05df122d59b8a40363051ff5 Mon Sep 17 00:00:00 2001 From: cpiazza Date: Sat, 14 Aug 1999 03:52:28 +0000 Subject: Import of Hex. Hex is a clone of "Puzzle Bobble" for X11 w/ GTK+/Imlib. PR: 13063 Submitted by: Will Andrews --- games/hex/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ games/hex/distinfo | 1 + games/hex/files/patch-aa | 11 +++++++++++ games/hex/files/patch-ab | 10 ++++++++++ games/hex/files/patch-ac | 21 +++++++++++++++++++++ games/hex/pkg-comment | 1 + games/hex/pkg-descr | 7 +++++++ games/hex/pkg-plist | 17 +++++++++++++++++ 8 files changed, 109 insertions(+) create mode 100644 games/hex/Makefile create mode 100644 games/hex/distinfo create mode 100644 games/hex/files/patch-aa create mode 100644 games/hex/files/patch-ab create mode 100644 games/hex/files/patch-ac create mode 100644 games/hex/pkg-comment create mode 100644 games/hex/pkg-descr create mode 100644 games/hex/pkg-plist (limited to 'games') diff --git a/games/hex/Makefile b/games/hex/Makefile new file mode 100644 index 0000000..c6ecdb1 --- /dev/null +++ b/games/hex/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: Hex +# Version required: 0.0.2 +# Date created: 9 Aug 1999 +# Whom: Will Andrews +# +# $Id$ +# + +DISTNAME= hex-0.0.2 +CATEGORIES= games +MASTER_SITES= http://www.nott.ac.uk/~psystrj/ \ + http://www.psn.net/~andrews/dist/ + +MAINTAINER= andrews@technologist.com + +LIB_DEPENDS= Imlib.4:${PORTSDIR}/graphics/imlib \ + gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 + +USE_X_PREFIX= YES + +USE_GMAKE= YES +WRKSRC= ${WRKDIR}/${DISTNAME} + +pre-install: + @${MKDIR} ${X11BASE}/share/hex + @${MKDIR} ${X11BASE}/share/hex/levels + @${MKDIR} ${X11BASE}/share/hex/graphics + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/hex ${X11BASE}/bin/hex + @${INSTALL_DATA} ${WRKSRC}/HISTORY ${X11BASE}/share/hex/HISTORY + @${INSTALL_DATA} ${WRKSRC}/README ${X11BASE}/share/hex/README + @${INSTALL_DATA} ${WRKSRC}/TODO ${X11BASE}/share/hex/TODO +.for i in 0 1 2 3 4 5 6 7 8 + @${INSTALL_DATA} ${WRKSRC}/graphics/ball${i}.png \ + ${X11BASE}/share/hex/graphics/ball${i}.png +.endfor + @${INSTALL_DATA} ${WRKSRC}/levels/Level1 \ + ${X11BASE}/share/hex/levels/Level1 + +.include diff --git a/games/hex/distinfo b/games/hex/distinfo new file mode 100644 index 0000000..f2d29f4 --- /dev/null +++ b/games/hex/distinfo @@ -0,0 +1 @@ +MD5 (hex-0.0.2.tar.gz) = 13191ef9192c3f1641b009b23cb8ebe3 diff --git a/games/hex/files/patch-aa b/games/hex/files/patch-aa new file mode 100644 index 0000000..6d54475 --- /dev/null +++ b/games/hex/files/patch-aa @@ -0,0 +1,11 @@ +--- hex.c Wed Aug 4 19:36:00 1999 ++++ hex.c.new Mon Aug 9 23:02:44 1999 +@@ -17,7 +17,7 @@ + #include + #include + +-#define LEVELPATH "./levels/" ++#define LEVELPATH "/usr/X11R6/share/hex/levels/" + + #define XSIZE 8 + #define YSIZE 12 diff --git a/games/hex/files/patch-ab b/games/hex/files/patch-ab new file mode 100644 index 0000000..747fae5 --- /dev/null +++ b/games/hex/files/patch-ab @@ -0,0 +1,10 @@ +--- hex.h Fri Aug 6 17:27:05 1999 ++++ hex.h.new Mon Aug 9 23:10:17 1999 +@@ -1,5 +1,5 @@ +-#define GRAPHICPATH "./graphics/" +-#define LEVELPATH "./levels/" ++#define GRAPHICPATH "/usr/X11R6/share/hex/graphics/" ++#define LEVELPATH "/usr/X11R6/share/hex/levels/" + + #define XSIZE 8 + #define YSIZE 12 // add 1 for the ceiling line diff --git a/games/hex/files/patch-ac b/games/hex/files/patch-ac new file mode 100644 index 0000000..ef00d2d --- /dev/null +++ b/games/hex/files/patch-ac @@ -0,0 +1,21 @@ +--- Makefile.orig Fri Aug 13 20:42:49 1999 ++++ Makefile Fri Aug 13 20:43:18 1999 +@@ -1,4 +1,4 @@ +-CC = gcc -Wall -O6 -g ++#CC = gcc -Wall -O6 -g + + SRCS = main.c levels.c grid.c player.c touching.c gtkstuff.c plot.c graphics.c + OBJS = $(SRCS:.c=.o) +@@ -7,10 +7,10 @@ + all: hex + + .c.o: +- $(CC) `gtk-config --cflags` -c $*.c -o $*.o ++ $(CC) $(CFLAGS) `gtk12-config --cflags` -c $*.c -o $*.o + + hex: $(OBJS) +- $(CC) $(LIBS) `gtk-config --libs` $(OBJS) -o $@ ++ $(CC) $(LIBS) `gtk12-config --libs` $(OBJS) -o $@ + + clean: + rm -f *~ *.o hex diff --git a/games/hex/pkg-comment b/games/hex/pkg-comment new file mode 100644 index 0000000..e604654 --- /dev/null +++ b/games/hex/pkg-comment @@ -0,0 +1 @@ +Clone of "Puzzle Bobble" for X11 that uses GTK/Imlib diff --git a/games/hex/pkg-descr b/games/hex/pkg-descr new file mode 100644 index 0000000..b8ac681 --- /dev/null +++ b/games/hex/pkg-descr @@ -0,0 +1,7 @@ +Hex is a clone of "Puzzle Bobble". It is currently in a rather +developmental stage, and needs some bugtesting, so unless you +are a Puzzle Bobble diehard, this game probably isn't for you. + +WWW: http://www.nott.ac.uk/~psystrj/hex.html + +- Will diff --git a/games/hex/pkg-plist b/games/hex/pkg-plist new file mode 100644 index 0000000..58d0f26 --- /dev/null +++ b/games/hex/pkg-plist @@ -0,0 +1,17 @@ +bin/hex +share/hex/levels/Level1 +share/hex/graphics/ball0.png +share/hex/graphics/ball1.png +share/hex/graphics/ball2.png +share/hex/graphics/ball3.png +share/hex/graphics/ball4.png +share/hex/graphics/ball5.png +share/hex/graphics/ball6.png +share/hex/graphics/ball7.png +share/hex/graphics/ball8.png +share/hex/README +share/hex/TODO +share/hex/HISTORY +@dirrm share/hex/levels +@dirrm share/hex/graphics +@dirrm share/hex -- cgit v1.1