aboutsummaryrefslogtreecommitdiff
path: root/games/ivan
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-11-03 19:39:22 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-11-03 19:39:22 +0000
commite678f97bcc454b20a3276c70b18d447f1aebdbf9 (patch)
treef77dfed2a6d2c81a5e9b84905d193183a07c4d5a /games/ivan
parent86c35e7576b02cfa2ec2f1dc0545d4bb25a2eac1 (diff)
downloadports-e678f97bcc454b20a3276c70b18d447f1aebdbf9.tar.gz
ports-e678f97bcc454b20a3276c70b18d447f1aebdbf9.zip
Notes
Diffstat (limited to 'games/ivan')
-rw-r--r--games/ivan/Makefile41
-rw-r--r--games/ivan/distinfo2
-rw-r--r--games/ivan/files/patch-configure19
-rw-r--r--games/ivan/pkg-descr21
-rw-r--r--games/ivan/pkg-install15
-rw-r--r--games/ivan/pkg-plist24
6 files changed, 122 insertions, 0 deletions
diff --git a/games/ivan/Makefile b/games/ivan/Makefile
new file mode 100644
index 000000000000..ca437d74fc46
--- /dev/null
+++ b/games/ivan/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: ivan
+# Date created: 11 Nov 2005
+# Whom: Dmitry Marakasov <amdmi3@mail.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ivan
+PORTVERSION= 0.50
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ivan
+
+MAINTAINER= amdmi3@mail.ru
+COMMENT= A graphical roguelike game
+
+USE_SDL= sdl
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS= --localstatedir=/var/games
+
+STATEDIR= /var/games/ivan
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|IvanSave|.IvanSave|g' ${WRKSRC}/Main/Source/game.cpp
+
+post-install:
+ ${CHGRP} games ${PREFIX}/bin/ivan
+ ${CHMOD} g+s ${PREFIX}/bin/ivan
+.if !exists(${STATEDIR})
+ ${MKDIR} ${STATEDIR}
+ ${TOUCH} ${STATEDIR}/ivan-highscore.scores
+ ${MKDIR} ${STATEDIR}/Bones
+ ${CHGRP} -R games ${STATEDIR}
+ ${CHMOD} -R g+w ${STATEDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/ivan/distinfo b/games/ivan/distinfo
new file mode 100644
index 000000000000..7e83b3cc718e
--- /dev/null
+++ b/games/ivan/distinfo
@@ -0,0 +1,2 @@
+MD5 (ivan-0.50.tar.gz) = 88de761ea3ed34a977cd412ff7d2a36e
+SIZE (ivan-0.50.tar.gz) = 803651
diff --git a/games/ivan/files/patch-configure b/games/ivan/files/patch-configure
new file mode 100644
index 000000000000..d7d97b0faabd
--- /dev/null
+++ b/games/ivan/files/patch-configure
@@ -0,0 +1,19 @@
+--- Makefile.in.orig Thu Nov 3 04:38:15 2005
++++ Makefile.in Thu Nov 3 04:38:57 2005
+@@ -338,16 +338,6 @@
+
+
+ install-data-local:
+- -./mkinstalldirs -p $(localstatedir) $(bindir) $(datadir)/ivan/Script/ $(datadir)/ivan/Graphics/ $(localstatedir)/ivan/Bones/
+- -touch $(localstatedir)/ivan/ivan-highscore.scores
+- -chown games.games $(localstatedir)/ivan/ivan-highscore.scores
+- -chmod 664 $(localstatedir)/ivan/ivan-highscore.scores
+- -chown -R games.games $(localstatedir)/ivan/Bones/
+- -chmod -R u=rwx $(localstatedir)/ivan/Bones/
+- -chmod -R g=rwx $(localstatedir)/ivan/Bones/
+- -chmod -R o=r $(localstatedir)/ivan/Bones/
+- -chgrp games $(bindir)/ivan
+- -chmod 2111 $(bindir)/ivan
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/games/ivan/pkg-descr b/games/ivan/pkg-descr
new file mode 100644
index 000000000000..9ff626df07e7
--- /dev/null
+++ b/games/ivan/pkg-descr
@@ -0,0 +1,21 @@
+Iter Vehemens ad Necem (IVAN) is a graphical roguelike game, which
+currently runs in Linux, Windows, and DOS. It features advanced
+bodypart and material handling, multi-colored lighting and, above
+all, deep gameplay.
+
+From developer's website:
+
+Fellow adventurer, turn back while you can! For here begins the
+roguelike Iter Vehemens ad Necem, a Violent Road to Death. If you
+choose to travel along it, you will dive into countless exciting
+adventures to gain items of great magic, attain powerful equipment
+made of mysterious materials, bathe in the blessings of mighty gods
+and recruit loyal allies of various shapes and sizes. Unfortunately,
+along the way you will also often be dangerously injured, poisoned,
+catch numerous diseases, lose several limbs and transform into
+manifold different kinds of pitiful creatures in the darkest depths
+of hostile dungeons. And, at the end of the road, you are bound to
+perish in a most gruesome and painful way. Don't say we didn't warn
+you.
+
+WWW: http://ivan.sourceforge.net/
diff --git a/games/ivan/pkg-install b/games/ivan/pkg-install
new file mode 100644
index 000000000000..96fe89ac6077
--- /dev/null
+++ b/games/ivan/pkg-install
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+STATEDIR="/var/games/ivan"
+
+[ "$2" != "POST-INSTALL" -o -d "$SCOREDIR" ] && exit 0
+
+echo "Creating state directory..."
+
+mkdir "$STATEDIR"
+touch "$STATEDIR/ivan-highscore.scores"
+mkdir "$STATEDIR/Bones"
+chgrp -R games "$STATEDIR"
+chmod -R g+w "$STATEDIR"
diff --git a/games/ivan/pkg-plist b/games/ivan/pkg-plist
new file mode 100644
index 000000000000..e52dd91d06c9
--- /dev/null
+++ b/games/ivan/pkg-plist
@@ -0,0 +1,24 @@
+bin/ivan
+%%DATADIR%%/Script/char.dat
+%%DATADIR%%/Script/define.dat
+%%DATADIR%%/Script/dungeon.dat
+%%DATADIR%%/Script/glterra.dat
+%%DATADIR%%/Script/item.dat
+%%DATADIR%%/Script/material.dat
+%%DATADIR%%/Script/olterra.dat
+%%DATADIR%%/Graphics/Char.pcx
+%%DATADIR%%/Graphics/Cursor.pcx
+%%DATADIR%%/Graphics/Effect.pcx
+%%DATADIR%%/Graphics/Font.pcx
+%%DATADIR%%/Graphics/FOW.pcx
+%%DATADIR%%/Graphics/GLTerra.pcx
+%%DATADIR%%/Graphics/Humanoid.pcx
+%%DATADIR%%/Graphics/Icon.bmp
+%%DATADIR%%/Graphics/Item.pcx
+%%DATADIR%%/Graphics/Menu.pcx
+%%DATADIR%%/Graphics/OLTerra.pcx
+%%DATADIR%%/Graphics/Symbol.pcx
+%%DATADIR%%/Graphics/WTerra.pcx
+@dirrm %%DATADIR%%/Graphics
+@dirrm %%DATADIR%%/Script
+@dirrm %%DATADIR%%