summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Culot <culot@FreeBSD.org>2013-08-21 14:00:43 +0000
committerFrederic Culot <culot@FreeBSD.org>2013-08-21 14:00:43 +0000
commit2f685187e9b605967a4c60895c017d6cb35b93d1 (patch)
tree3a6efe2addd1e2fd96d6e028fc87aba9f772c1ce
parentUpdate to 2.50 (diff)
TomeNET is an online multiplayer rogue-like role-playing game,
derived from MAngband (Multiplayer-Angband). TomeNET loosely bases on the stories of J.R.R. Tolkien mainly "The Lord Of The Rings", hence the name "the Troubles of Middle Earth" or alternatively "the Tales of Middle Earth". WWW: http://tomenet.net/ Note: only the curses interface is available with this port. Adding support for graphical interface using X11 is not planned for now on because I could not easily test it.
-rw-r--r--games/Makefile1
-rw-r--r--games/tomenet/Makefile40
-rw-r--r--games/tomenet/distinfo2
-rw-r--r--games/tomenet/files/patch-makefile24
-rw-r--r--games/tomenet/files/pkg-message.in18
-rw-r--r--games/tomenet/pkg-descr7
-rw-r--r--games/tomenet/pkg-plist168
7 files changed, 260 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index ae29c958c9a2..19dc4d7f9d2f 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -933,6 +933,7 @@
SUBDIR += tksol
SUBDIR += tmw
SUBDIR += tomatoes
+ SUBDIR += tomenet
SUBDIR += tong
SUBDIR += toppler
SUBDIR += torcs
diff --git a/games/tomenet/Makefile b/games/tomenet/Makefile
new file mode 100644
index 000000000000..997f1190c576
--- /dev/null
+++ b/games/tomenet/Makefile
@@ -0,0 +1,40 @@
+# Created by: Frederic Culot <culot@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= tomenet
+PORTVERSION= 4.5.4
+CATEGORIES= games
+MASTER_SITES= http://tomenet.net/downloads/
+
+MAINTAINER= culot@FreeBSD.org
+COMMENT= Online multiplayer rogue-like role-playing game
+
+USE_BZIP2= yes
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+MAKEFILE= ${WRKSRC}/makefile
+
+USES= ncurses
+USE_GMAKE= yes
+CFLAGS+= -DDEFAULT_PATH="\\\"${DATADIR}/lib/\\\""
+
+SUB_FILES= pkg-message
+
+do-install:
+.for f in tomenet tomenet.server accedit evilmeta
+ ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
+.endfor
+ ${MKDIR} ${DATADIR}
+ (cd ${WRKDIR}/${DISTNAME} && ${COPYTREE_SHARE} lib ${DATADIR})
+ ${MKDIR} ${ETCDIR}
+ ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/.tomenetrc ${ETCDIR}/tomenetrc
+
+.include <bsd.port.options.mk>
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/TomeNET-Guide.txt ${DOCSDIR}
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/games/tomenet/distinfo b/games/tomenet/distinfo
new file mode 100644
index 000000000000..30b8d1087c02
--- /dev/null
+++ b/games/tomenet/distinfo
@@ -0,0 +1,2 @@
+SHA256 (tomenet-4.5.4.tar.bz2) = 3bb8955619f3da571c7982d323cae837203dfd30eb65a508f678efae2ac40f70
+SIZE (tomenet-4.5.4.tar.bz2) = 2740555
diff --git a/games/tomenet/files/patch-makefile b/games/tomenet/files/patch-makefile
new file mode 100644
index 000000000000..4051f3dd504b
--- /dev/null
+++ b/games/tomenet/files/patch-makefile
@@ -0,0 +1,24 @@
+--- makefile.orig 2013-08-20 08:00:23.000000000 -0400
++++ makefile 2013-08-20 08:03:26.000000000 -0400
+@@ -256,8 +256,8 @@
+ # attempt to "guess" at many of these flags based on your system.
+ #
+ ## With SDL
+-CFLAGS = -g -pipe -Wall -DUSE_X11 -DUSE_GCU -I${X11BASE}/include -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 -DSOUND_SDL `sdl-config --cflags`
+-LIBS = -L${X11BASE}/lib -L/usr/pkg/lib -lX11 -lncurses -lcrypt -lm `sdl-config --libs` -lSDL_mixer
++#CFLAGS = -g -pipe -Wall -DUSE_X11 -DUSE_GCU -I${X11BASE}/include -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 -DSOUND_SDL `sdl-config --cflags`
++#LIBS = -L${X11BASE}/lib -L/usr/pkg/lib -lX11 -lncurses -lcrypt -lm `sdl-config --libs` -lSDL_mixer
+ ##
+ ## Without SDL
+ #CFLAGS = -g -pipe -Wall -DUSE_X11 -DUSE_GCU -I${X11BASE}/include -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937
+@@ -304,8 +304,8 @@
+ #LDFLAGS = -Wl,-rpath,\$$ORIGIN
+ ##
+ ## Without SDL
+-#CFLAGS = -g -pipe -Wall -DUSE_X11 -DUSE_GCU -I${X11BASE}/include -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937
+-#LIBS = -L${X11BASE}/lib -L/usr/pkg/lib -lX11 -lncurses -lcrypt -lm
++CFLAGS += -g -pipe -Wall -DUSE_GCU -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937
++LIBS += -lncurses -lcrypt -lm
+
+
+ ## Added by thaler, 6/28/97
diff --git a/games/tomenet/files/pkg-message.in b/games/tomenet/files/pkg-message.in
new file mode 100644
index 000000000000..27e186b5bda9
--- /dev/null
+++ b/games/tomenet/files/pkg-message.in
@@ -0,0 +1,18 @@
+========================================================================
+
+To complete your installation of TomeNET, you should create a
+configuration file to suit your needs:
+
+ cp %%ETCDIR%%/tomenetrc ~/.tomenetrc
+ $EDITOR ~/.tomenetrc
+
+and then you can start playing the game.
+If installed, extensive documentation can be found in
+
+%%DOCSDIR%%/TomeNET-Guide.txt
+
+otherwise the guide is available online at:
+
+http://www.tomenet.net/guide.php
+
+========================================================================
diff --git a/games/tomenet/pkg-descr b/games/tomenet/pkg-descr
new file mode 100644
index 000000000000..f1f01579091b
--- /dev/null
+++ b/games/tomenet/pkg-descr
@@ -0,0 +1,7 @@
+TomeNET is an online multiplayer rogue-like role-playing game,
+derived from MAngband (Multiplayer-Angband).
+TomeNET loosely bases on the stories of J.R.R. Tolkien mainly
+"The Lord Of The Rings", hence the name "the Troubles of Middle
+Earth" or alternatively "the Tales of Middle Earth".
+
+WWW: http://tomenet.net/
diff --git a/games/tomenet/pkg-plist b/games/tomenet/pkg-plist
new file mode 100644
index 000000000000..77d5946678a1
--- /dev/null
+++ b/games/tomenet/pkg-plist
@@ -0,0 +1,168 @@
+bin/accedit
+bin/evilmeta
+bin/tomenet
+bin/tomenet.server
+%%ETCDIR%%/tomenetrc
+%%DATADIR%%/lib/config/badnames.txt
+%%DATADIR%%/lib/config/nonswearing.txt
+%%DATADIR%%/lib/config/swearing.txt
+%%DATADIR%%/lib/config/tomenet.cfg
+%%DATADIR%%/lib/data/tomenet.log
+%%DATADIR%%/lib/game/a_info.txt
+%%DATADIR%%/lib/game/ba_info.txt
+%%DATADIR%%/lib/game/d_info.txt
+%%DATADIR%%/lib/game/e_info.txt
+%%DATADIR%%/lib/game/f_info.txt
+%%DATADIR%%/lib/game/k_info.txt
+%%DATADIR%%/lib/game/ow_info.txt
+%%DATADIR%%/lib/game/r_info.txt
+%%DATADIR%%/lib/game/re_info.txt
+%%DATADIR%%/lib/game/renumber.pl
+%%DATADIR%%/lib/game/s_info.txt
+%%DATADIR%%/lib/game/st_info.txt
+%%DATADIR%%/lib/game/t_arena_pvp.txt
+%%DATADIR%%/lib/game/t_arena_tt.txt
+%%DATADIR%%/lib/game/t_arena1.txt
+%%DATADIR%%/lib/game/t_bree.txt
+%%DATADIR%%/lib/game/t_bree_arcade.txt
+%%DATADIR%%/lib/game/t_gondol.txt
+%%DATADIR%%/lib/game/t_info.txt
+%%DATADIR%%/lib/game/t_khazad.txt
+%%DATADIR%%/lib/game/t_lorien.txt
+%%DATADIR%%/lib/game/t_menegroth.txt
+%%DATADIR%%/lib/game/t_minas.txt
+%%DATADIR%%/lib/game/t_nargothrond.txt
+%%DATADIR%%/lib/game/t_pref.txt
+%%DATADIR%%/lib/game/t_valinor.txt
+%%DATADIR%%/lib/game/tr_info.txt
+%%DATADIR%%/lib/game/v_info.txt
+%%DATADIR%%/lib/save/delete.me
+%%DATADIR%%/lib/scpt/audio.lua
+%%DATADIR%%/lib/scpt/c-init.lua
+%%DATADIR%%/lib/scpt/cblue.lua
+%%DATADIR%%/lib/scpt/classes.lua
+%%DATADIR%%/lib/scpt/custom.lua
+%%DATADIR%%/lib/scpt/d_astral.lua
+%%DATADIR%%/lib/scpt/dg.lua
+%%DATADIR%%/lib/scpt/dr_arcane.lua
+%%DATADIR%%/lib/scpt/dr_physical.lua
+%%DATADIR%%/lib/scpt/evil.lua
+%%DATADIR%%/lib/scpt/init.lua
+%%DATADIR%%/lib/scpt/it.lua
+%%DATADIR%%/lib/scpt/jir.lua
+%%DATADIR%%/lib/scpt/m_mintrusion.lua
+%%DATADIR%%/lib/scpt/m_ppower.lua
+%%DATADIR%%/lib/scpt/m_tcontact.lua
+%%DATADIR%%/lib/scpt/meta.lua
+%%DATADIR%%/lib/scpt/mikaelh.lua
+%%DATADIR%%/lib/scpt/moltor.lua
+%%DATADIR%%/lib/scpt/p_curing.lua
+%%DATADIR%%/lib/scpt/p_defense.lua
+%%DATADIR%%/lib/scpt/p_offense.lua
+%%DATADIR%%/lib/scpt/p_support.lua
+%%DATADIR%%/lib/scpt/player.lua
+%%DATADIR%%/lib/scpt/player-info.lua
+%%DATADIR%%/lib/scpt/powers.lua
+%%DATADIR%%/lib/scpt/races.lua
+%%DATADIR%%/lib/scpt/s_air.lua
+%%DATADIR%%/lib/scpt/s_aux.lua
+%%DATADIR%%/lib/scpt/s_convey.lua
+%%DATADIR%%/lib/scpt/s_divin.lua
+%%DATADIR%%/lib/scpt/s_earth.lua
+%%DATADIR%%/lib/scpt/s_fire.lua
+%%DATADIR%%/lib/scpt/s_mana.lua
+%%DATADIR%%/lib/scpt/s_meta.lua
+%%DATADIR%%/lib/scpt/s_mind.lua
+%%DATADIR%%/lib/scpt/s_nature.lua
+%%DATADIR%%/lib/scpt/s_tempo.lua
+%%DATADIR%%/lib/scpt/s_udun.lua
+%%DATADIR%%/lib/scpt/s_water.lua
+%%DATADIR%%/lib/scpt/spells.lua
+%%DATADIR%%/lib/scpt/test.lua
+%%DATADIR%%/lib/scpt/traits.lua
+%%DATADIR%%/lib/scpt/update.lua
+%%DATADIR%%/lib/scpt/xml.lua
+%%DATADIR%%/lib/text/attack.txt
+%%DATADIR%%/lib/text/birth.txt
+%%DATADIR%%/lib/text/book-50.txt
+%%DATADIR%%/lib/text/book-51.txt
+%%DATADIR%%/lib/text/book-52.txt
+%%DATADIR%%/lib/text/book-60.txt
+%%DATADIR%%/lib/text/book-61.txt
+%%DATADIR%%/lib/text/book-62.txt
+%%DATADIR%%/lib/text/book-63.txt
+%%DATADIR%%/lib/text/book-64.txt
+%%DATADIR%%/lib/text/book-65.txt
+%%DATADIR%%/lib/text/book-66.txt
+%%DATADIR%%/lib/text/book-67.txt
+%%DATADIR%%/lib/text/chainswd.txt
+%%DATADIR%%/lib/text/command.txt
+%%DATADIR%%/lib/text/dead.txt
+%%DATADIR%%/lib/text/dead2.txt
+%%DATADIR%%/lib/text/death.txt
+%%DATADIR%%/lib/text/dungeon.txt
+%%DATADIR%%/lib/text/error.txt
+%%DATADIR%%/lib/text/gambling.txt
+%%DATADIR%%/lib/text/general.txt
+%%DATADIR%%/lib/text/help.hlp
+%%DATADIR%%/lib/text/hints.txt
+%%DATADIR%%/lib/text/news.txt
+%%DATADIR%%/lib/text/option.txt
+%%DATADIR%%/lib/text/randarts.txt
+%%DATADIR%%/lib/text/rumors.txt
+%%DATADIR%%/lib/text/slash.hlp
+%%DATADIR%%/lib/text/slash_ad.hlp
+%%DATADIR%%/lib/text/timefun.txt
+%%DATADIR%%/lib/text/timenorm.txt
+%%DATADIR%%/lib/text/tomenet.hlp
+%%DATADIR%%/lib/text/version.txt
+%%DATADIR%%/lib/user/arcade-win.prf
+%%DATADIR%%/lib/user/arcade-x11.prf
+%%DATADIR%%/lib/user/font-ami.prf
+%%DATADIR%%/lib/user/font-ibm.prf
+%%DATADIR%%/lib/user/font-win.prf
+%%DATADIR%%/lib/user/font-win(solid).prf
+%%DATADIR%%/lib/user/graf-ami.prf
+%%DATADIR%%/lib/user/graf-win.prf
+%%DATADIR%%/lib/user/linux_caster.prf
+%%DATADIR%%/lib/user/linux_fighter.prf
+%%DATADIR%%/lib/user/options.prf
+%%DATADIR%%/lib/user/pref.prf
+%%DATADIR%%/lib/user/pref-acn.prf
+%%DATADIR%%/lib/user/pref-emx.prf
+%%DATADIR%%/lib/user/pref-ibm.prf
+%%DATADIR%%/lib/user/pref-lsl.prf
+%%DATADIR%%/lib/user/pref-mac.prf
+%%DATADIR%%/lib/user/pref-win.prf
+%%DATADIR%%/lib/user/pref-x11.prf
+%%DATADIR%%/lib/user/pref-xaw.prf
+%%DATADIR%%/lib/user/smash-win.prf
+%%DATADIR%%/lib/user/smash-x11.prf
+%%DATADIR%%/lib/user/tron-win.prf
+%%DATADIR%%/lib/user/tron-x11.prf
+%%DATADIR%%/lib/user/window.prf
+%%DATADIR%%/lib/user/windows_caster.prf
+%%DATADIR%%/lib/user/windows_fighter.prf
+%%DATADIR%%/lib/xtra/music/music.cfg.default
+%%DATADIR%%/lib/xtra/sound/credits.txt
+%%DATADIR%%/lib/xtra/sound/sound.cfg.default
+%%DATADIR%%/lib/xtra/sound/misc/paging/ding.ogg
+%%DATADIR%%/lib/xtra/sound/misc/paging/greeting.ogg
+%%DATADIR%%/lib/xtra/sound/misc/paging/warning.ogg
+%%PORTDOCS%%%%DOCSDIR%%/TomeNET-Guide.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%ETCDIR%%
+@dirrm %%DATADIR%%/lib/config
+@dirrm %%DATADIR%%/lib/data
+@dirrm %%DATADIR%%/lib/game
+@dirrm %%DATADIR%%/lib/save
+@dirrm %%DATADIR%%/lib/scpt
+@dirrm %%DATADIR%%/lib/text
+@dirrm %%DATADIR%%/lib/user
+@dirrm %%DATADIR%%/lib/xtra/music
+@dirrm %%DATADIR%%/lib/xtra/sound/misc/paging
+@dirrm %%DATADIR%%/lib/xtra/sound/misc
+@dirrm %%DATADIR%%/lib/xtra/sound
+@dirrm %%DATADIR%%/lib/xtra
+@dirrm %%DATADIR%%/lib
+@dirrm %%DATADIR%%