aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2009-04-03 07:45:10 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2009-04-03 07:45:10 +0800
commita93ea6d460b0cbdd9f081181092b07be17635343 (patch)
tree9208c3c1de18a215c5e32030f6cb850d4dc1dd69
parentdaf644f4a065abb4dd0f7739c0f1bc85f200363f (diff)
downloadfreebsd-ports-gnome-a93ea6d460b0cbdd9f081181092b07be17635343.tar.gz
freebsd-ports-gnome-a93ea6d460b0cbdd9f081181092b07be17635343.tar.zst
freebsd-ports-gnome-a93ea6d460b0cbdd9f081181092b07be17635343.zip
XorGramana is a maze based logical puzzle game where you must escape
each maze by arranging letters to form pre-defined words. XorGramana is based upon the game Xor which appeared in the early 1990's on 8bit home computers. XorGramana implements a version of Xor too. WWW: http://www.jwm-art.net/XorGramana/
-rw-r--r--games/Makefile1
-rw-r--r--games/xorgramana/Makefile42
-rw-r--r--games/xorgramana/distinfo3
-rw-r--r--games/xorgramana/files/patch-Makefile40
-rw-r--r--games/xorgramana/pkg-descr6
-rw-r--r--games/xorgramana/pkg-plist162
6 files changed, 254 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 655e44331cc7..7085bdf720aa 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -984,6 +984,7 @@
SUBDIR += xoids
SUBDIR += xoj
SUBDIR += xonix
+ SUBDIR += xorgramana
SUBDIR += xosmulti
SUBDIR += xpacman
SUBDIR += xpanex
diff --git a/games/xorgramana/Makefile b/games/xorgramana/Makefile
new file mode 100644
index 000000000000..3b3834b1d188
--- /dev/null
+++ b/games/xorgramana/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: xorgramana
+# Date created: 27 Mar 2009
+# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xorgramana
+PORTVERSION= 0.0.8
+CATEGORIES= games
+MASTER_SITES= http://www.jwm-art.net/XorGramana/ \
+ http://mirror.amdmi3.ru/
+DISTNAME= XorGramana-${PORTVERSION}
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= Logic word puzzle game set inside a series of mazes
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_SDL= sdl image
+USE_GL= glu
+
+ALL_TARGET= ${PORTNAME}
+
+PORTDOCS= README
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|GFX/|${DATADIR}/&|' ${WRKSRC}/icons.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${MKDIR} ${DATADIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "data GFX" ${DATADIR}
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/xorgramana/distinfo b/games/xorgramana/distinfo
new file mode 100644
index 000000000000..991e945f38f4
--- /dev/null
+++ b/games/xorgramana/distinfo
@@ -0,0 +1,3 @@
+MD5 (XorGramana-0.0.8.tar.bz2) = 24cced5953ea9331f580bc5e6ebf4e87
+SHA256 (XorGramana-0.0.8.tar.bz2) = 669dfd3f2d58663374a4c6df9bd2faf5164c8fad6c0fc816d8b50ef8976239df
+SIZE (XorGramana-0.0.8.tar.bz2) = 441460
diff --git a/games/xorgramana/files/patch-Makefile b/games/xorgramana/files/patch-Makefile
new file mode 100644
index 000000000000..d894f89096d1
--- /dev/null
+++ b/games/xorgramana/files/patch-Makefile
@@ -0,0 +1,40 @@
+--- Makefile.orig 2009-04-01 17:46:11.000000000 +0400
++++ Makefile 2009-04-02 20:31:54.000000000 +0400
+@@ -1,13 +1,13 @@
+
+-PREFIX=/usr/local/
+-BINDIR=$(PREFIX)bin/
+-SHAREDIR=$(PREFIX)share/XorGramana/
+-MAPDIR=$(SHAREDIR)maps/
++PREFIX?=/usr/local
++BINDIR=$(PREFIX)/bin
++SHAREDIR=$(PREFIX)/share/xorgramana/data
++MAPDIR=$(SHAREDIR)/maps
+
+-SDL_CFLAGS := $(shell sdl-config --cflags)
+-SDL_LDFLAGS := $(shell sdl-config --libs)
++SDL_CFLAGS := $(shell ${SDL_CONFIG} --cflags)
++SDL_LDFLAGS := $(shell ${SDL_CONFIG} --libs)
+
+-CFLAGS := -Wall -g2 $(SDL_CFLAGS) -lGLU -lSDL_image -DDATADIR=\"$(SHAREDIR)\"
++CFLAGS += -Wall $(SDL_CFLAGS) -DDATADIR=\"$(SHAREDIR)\"
+
+ # -DPLAYER_XY_DEBUG
+ # -DMAP_DEBUG
+@@ -23,14 +23,14 @@
+
+
+ PROG := xorgramana
+-CC := gcc
++CC ?= gcc
+
+ SRC := $(wildcard *.c)
+ OBJS := $(patsubst %.c, %.o, $(SRC))
+ HEADERS:= $(wildcard *.h)
+
+ $(PROG): $(OBJS)
+- $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(SDL_LDFLAGS)
++ $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(SDL_LDFLAGS) -lGLU -lSDL_image
+
+ %.o : %.c $(HEADERS)
+ $(CC) $(CFLAGS) -c $<
diff --git a/games/xorgramana/pkg-descr b/games/xorgramana/pkg-descr
new file mode 100644
index 000000000000..8fe243b1c534
--- /dev/null
+++ b/games/xorgramana/pkg-descr
@@ -0,0 +1,6 @@
+XorGramana is a maze based logical puzzle game where you must escape
+each maze by arranging letters to form pre-defined words. XorGramana
+is based upon the game Xor which appeared in the early 1990's on
+8bit home computers. XorGramana implements a version of Xor too.
+
+WWW: http://www.jwm-art.net/XorGramana/
diff --git a/games/xorgramana/pkg-plist b/games/xorgramana/pkg-plist
new file mode 100644
index 000000000000..bcc6bbe6b540
--- /dev/null
+++ b/games/xorgramana/pkg-plist
@@ -0,0 +1,162 @@
+bin/xorgramana
+%%DATADIR%%/GFX/0.png
+%%DATADIR%%/GFX/1.png
+%%DATADIR%%/GFX/2.png
+%%DATADIR%%/GFX/2/edge3_b.png
+%%DATADIR%%/GFX/2/edge3_l.png
+%%DATADIR%%/GFX/2/edge3_r.png
+%%DATADIR%%/GFX/2/edge3_t.png
+%%DATADIR%%/GFX/2/floor3.png
+%%DATADIR%%/GFX/2/wall3.png
+%%DATADIR%%/GFX/3.png
+%%DATADIR%%/GFX/3/edge2_b.png
+%%DATADIR%%/GFX/3/edge2_l.png
+%%DATADIR%%/GFX/3/edge2_r.png
+%%DATADIR%%/GFX/3/edge2_t.png
+%%DATADIR%%/GFX/3/floor2.png
+%%DATADIR%%/GFX/3/wall2.png
+%%DATADIR%%/GFX/4.png
+%%DATADIR%%/GFX/5.png
+%%DATADIR%%/GFX/6.png
+%%DATADIR%%/GFX/7.png
+%%DATADIR%%/GFX/8.png
+%%DATADIR%%/GFX/9.png
+%%DATADIR%%/GFX/a.png
+%%DATADIR%%/GFX/b.png
+%%DATADIR%%/GFX/blank.png
+%%DATADIR%%/GFX/box_blank.png
+%%DATADIR%%/GFX/c.png
+%%DATADIR%%/GFX/d.png
+%%DATADIR%%/GFX/dot.png
+%%DATADIR%%/GFX/e.png
+%%DATADIR%%/GFX/edge1_b.png
+%%DATADIR%%/GFX/edge1_l.png
+%%DATADIR%%/GFX/edge1_r.png
+%%DATADIR%%/GFX/edge1_t.png
+%%DATADIR%%/GFX/edge2_b.png
+%%DATADIR%%/GFX/edge2_l.png
+%%DATADIR%%/GFX/edge2_r.png
+%%DATADIR%%/GFX/edge2_t.png
+%%DATADIR%%/GFX/edge3_b.png
+%%DATADIR%%/GFX/edge3_l.png
+%%DATADIR%%/GFX/edge3_r.png
+%%DATADIR%%/GFX/edge3_t.png
+%%DATADIR%%/GFX/edge4_b.png
+%%DATADIR%%/GFX/edge4_l.png
+%%DATADIR%%/GFX/edge4_r.png
+%%DATADIR%%/GFX/edge4_t.png
+%%DATADIR%%/GFX/edge5_b.png
+%%DATADIR%%/GFX/edge5_l.png
+%%DATADIR%%/GFX/edge5_r.png
+%%DATADIR%%/GFX/edge5_t.png
+%%DATADIR%%/GFX/edge6_b.png
+%%DATADIR%%/GFX/edge6_l.png
+%%DATADIR%%/GFX/edge6_r.png
+%%DATADIR%%/GFX/edge6_t.png
+%%DATADIR%%/GFX/edge7_b.png
+%%DATADIR%%/GFX/edge7_l.png
+%%DATADIR%%/GFX/edge7_r.png
+%%DATADIR%%/GFX/edge7_t.png
+%%DATADIR%%/GFX/exit.png
+%%DATADIR%%/GFX/exit_open.png
+%%DATADIR%%/GFX/explode01.png
+%%DATADIR%%/GFX/explode02.png
+%%DATADIR%%/GFX/explode03.png
+%%DATADIR%%/GFX/explode04.png
+%%DATADIR%%/GFX/explode05.png
+%%DATADIR%%/GFX/explode_h.png
+%%DATADIR%%/GFX/explode_v.png
+%%DATADIR%%/GFX/f.png
+%%DATADIR%%/GFX/floor1.png
+%%DATADIR%%/GFX/floor2.png
+%%DATADIR%%/GFX/floor3.png
+%%DATADIR%%/GFX/floor4.png
+%%DATADIR%%/GFX/floor5.png
+%%DATADIR%%/GFX/floor6.png
+%%DATADIR%%/GFX/floor7.png
+%%DATADIR%%/GFX/g.png
+%%DATADIR%%/GFX/grav_d.png
+%%DATADIR%%/GFX/grav_l.png
+%%DATADIR%%/GFX/grav_r.png
+%%DATADIR%%/GFX/grav_u.png
+%%DATADIR%%/GFX/h-field.png
+%%DATADIR%%/GFX/h.png
+%%DATADIR%%/GFX/hard_push_d.png
+%%DATADIR%%/GFX/hard_push_l.png
+%%DATADIR%%/GFX/hard_push_r.png
+%%DATADIR%%/GFX/hard_push_u.png
+%%DATADIR%%/GFX/hash.png
+%%DATADIR%%/GFX/i.png
+%%DATADIR%%/GFX/j.png
+%%DATADIR%%/GFX/k.png
+%%DATADIR%%/GFX/l.png
+%%DATADIR%%/GFX/line-b.png
+%%DATADIR%%/GFX/line-bl.png
+%%DATADIR%%/GFX/line-br.png
+%%DATADIR%%/GFX/line-l.png
+%%DATADIR%%/GFX/line-r.png
+%%DATADIR%%/GFX/line-t.png
+%%DATADIR%%/GFX/line-tl.png
+%%DATADIR%%/GFX/line-tr.png
+%%DATADIR%%/GFX/m.png
+%%DATADIR%%/GFX/map.png
+%%DATADIR%%/GFX/mask.png
+%%DATADIR%%/GFX/movements.xcf
+%%DATADIR%%/GFX/n.png
+%%DATADIR%%/GFX/o.png
+%%DATADIR%%/GFX/p.png
+%%DATADIR%%/GFX/push_d.png
+%%DATADIR%%/GFX/push_l.png
+%%DATADIR%%/GFX/push_r.png
+%%DATADIR%%/GFX/push_u.png
+%%DATADIR%%/GFX/q.png
+%%DATADIR%%/GFX/r.png
+%%DATADIR%%/GFX/s.png
+%%DATADIR%%/GFX/space.png
+%%DATADIR%%/GFX/star.png
+%%DATADIR%%/GFX/t.png
+%%DATADIR%%/GFX/teleport.png
+%%DATADIR%%/GFX/u.png
+%%DATADIR%%/GFX/v-field.png
+%%DATADIR%%/GFX/v.png
+%%DATADIR%%/GFX/w.png
+%%DATADIR%%/GFX/wall1.png
+%%DATADIR%%/GFX/wall2.png
+%%DATADIR%%/GFX/wall3.png
+%%DATADIR%%/GFX/wall4.png
+%%DATADIR%%/GFX/wall5.png
+%%DATADIR%%/GFX/wall6.png
+%%DATADIR%%/GFX/wall7.png
+%%DATADIR%%/GFX/x.png
+%%DATADIR%%/GFX/y.png
+%%DATADIR%%/GFX/z.png
+%%DATADIR%%/data/maps/1.txt
+%%DATADIR%%/data/maps/2.txt
+%%DATADIR%%/data/maps/3.txt
+%%DATADIR%%/data/maps/4.txt
+%%DATADIR%%/data/maps/5.txt
+%%DATADIR%%/data/maps/6.txt
+%%DATADIR%%/data/maps/7.txt
+%%DATADIR%%/data/maps/8.txt
+%%DATADIR%%/data/xormaps/1.txt
+%%DATADIR%%/data/xormaps/10.txt
+%%DATADIR%%/data/xormaps/11.txt
+%%DATADIR%%/data/xormaps/12.txt
+%%DATADIR%%/data/xormaps/13.txt
+%%DATADIR%%/data/xormaps/14.txt
+%%DATADIR%%/data/xormaps/15.txt
+%%DATADIR%%/data/xormaps/2.txt
+%%DATADIR%%/data/xormaps/3.txt
+%%DATADIR%%/data/xormaps/4.txt
+%%DATADIR%%/data/xormaps/5.txt
+%%DATADIR%%/data/xormaps/6.txt
+%%DATADIR%%/data/xormaps/7.txt
+%%DATADIR%%/data/xormaps/8.txt
+%%DATADIR%%/data/xormaps/9.txt
+@dirrm %%DATADIR%%/data/xormaps
+@dirrm %%DATADIR%%/data/maps
+@dirrm %%DATADIR%%/data
+@dirrm %%DATADIR%%/GFX/3
+@dirrm %%DATADIR%%/GFX/2
+@dirrm %%DATADIR%%/GFX
+@dirrm %%DATADIR%%