ports/162393: [NEW PORT] games/nlarn Roguelike game and as such a remake of the classic game Larn
Martin Tournoij
martin at arp242.net
Wed Nov 9 00:00:19 UTC 2011
>Number: 162393
>Category: ports
>Synopsis: [NEW PORT] games/nlarn Roguelike game and as such a remake of the classic game Larn
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 09 00:00:18 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Martin Tournoij
>Release: FreeBSD 8.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD cthulhu.daemonforums.org 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Apr 14 22:52:12 CEST 2011 carpetsmoker at cthulhu.daemonforums.org:/usr/obj/usr/src/sys/CTHULHU i386
>Description:
**Note**
This port depends on ports/160006
>How-To-Repeat:
>Fix:
--- nlarn.shar begins here ---
# 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:
#
# nlarn
# nlarn/Makefile
# nlarn/pkg-descr
# nlarn/distinfo
# nlarn/pkg-plist
# nlarn/files
# nlarn/files/patch-premake4.lua
#
echo c - nlarn
mkdir -p nlarn > /dev/null 2>&1
echo x - nlarn/Makefile
sed 's/^X//' >nlarn/Makefile << '2a3f71f67cfadf33ec648fe8388db0bf'
X# Ports collection makefile for: games/nlarn
X# Date created: 2011-11-08
X# Whom: Martin Tournoij <martin at arp242.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME= nlarn
XPORTVERSION= 0.7
XCATEGORIES= games
XMASTER_SITES= SF
X
XMAINTAINER= martin at arp242.net
XCOMMENT= Roguelike game and as such a remake of the classic game Larn
X
XLICENSE= GPLv3
X
XBUILD_DEPENDS= premake4:${PORTSDIR}/devel/premake4
X
XWRKSRC= ${WRKDIR}/jaydg-nlarn-NLarn-${PORTVERSION}.0
XUSE_LUA= 5.1
XUSE_GNOME= glib20
XUSE_GMAKE= yes
X
Xdo-configure:
X cd ${WRKSRC} && ${LOCALBASE}/bin/premake4 --os=bsd gmake
X
Xpost-configure:
X @${REINPLACE_CMD} 's|$$(ARCH)||g; \
X s|-I${LOCALBASE}|-I${LUA_INCDIR} -I${LOCALBASE}|g; \
X s|-lz|-lz -llua-5.1 -lncurses -lpanel|g;' \
X ${WRKSRC}/nlarn.make
X
X @${REINPLACE_CMD} 's|/usr/share/games/nlarn|${DATADIR}|' \
X ${WRKSRC}/src/game.c
X
Xdo-install:
X ${MKDIR} ${DATADIR}
X ${INSTALL_PROGRAM} ${WRKSRC}/nlarn ${PREFIX}/bin/
X ${INSTALL_DATA} ${WRKSRC}/README.txt ${WRKSRC}/nlarn.ini-sample ${WRKSRC}/lib/* ${DATADIR}/
X
X.include <bsd.port.mk>
2a3f71f67cfadf33ec648fe8388db0bf
echo x - nlarn/pkg-descr
sed 's/^X//' >nlarn/pkg-descr << '2506f44363157777151936044d368c5b'
XNLarn is a roguelike game and as such a remake of the classic game Larn.
X
XMy intention when starting this project was to get a copy of Larn that one
Xcould actually play: I just couldn't stand the user interface of the original.
XTo improve it, I peeked into the original code, which revealed to be
Xunmaintainable. So a rewrite seemed to be the best idea - and that is what I
Xdid.
X
XAs I never really played Larn, NLarn might be quite different to Larn in
Xcertain areas, but at least I tried to follow the original. Some aspects of
XLarn's game-play (which I only experienced by reading the code) seemed a bit
Xweird and didn't suit my taste, so I changed them intentionally. Other changes
Xare caused by the unreadability of Larn's code.
X
XAs todays computers are a bit more advanced compared to those in the eighties,
XI could do a completely different approach to how things are handled under the
Xcover.
X
XVery noticeable differences to the original so far include:
X- advanced user interface
X- extremely different item handling
X- extended monster AI
X- a real town
X- colour
X
XMaintainer note: The original larn is available as part of games/bsdgames
X
XWWW: http://nlarn.sourceforge.net/
2506f44363157777151936044d368c5b
echo x - nlarn/distinfo
sed 's/^X//' >nlarn/distinfo << '1932f92f72211ff5768d3879026cf13a'
XSHA256 (nlarn-0.7.tar.gz) = 21818bbc1691a8a79d3d6ce71934076895c2708725e5a0b431d46dba39e2795a
XSIZE (nlarn-0.7.tar.gz) = 244698
1932f92f72211ff5768d3879026cf13a
echo x - nlarn/pkg-plist
sed 's/^X//' >nlarn/pkg-plist << '80a3c063bfbb127e015067d9b6a0a330'
Xbin/nlarn
X%%DATADIR%%/README.txt
X%%DATADIR%%/fortune
X%%DATADIR%%/maze
X%%DATADIR%%/maze_doc.txt
X%%DATADIR%%/monsters.lua
X%%DATADIR%%/nlarn.hlp
X%%DATADIR%%/nlarn.ini-sample
X%%DATADIR%%/nlarn.msg
X at dirrm %%DATADIR%%
80a3c063bfbb127e015067d9b6a0a330
echo c - nlarn/files
mkdir -p nlarn/files > /dev/null 2>&1
echo x - nlarn/files/patch-premake4.lua
sed 's/^X//' >nlarn/files/patch-premake4.lua << '1580844a953138e86cee6016c166559a'
X--- premake4.lua.orig 2011-11-08 23:01:23.000000000 +0100
X+++ premake4.lua 2011-11-08 23:01:44.000000000 +0100
X@@ -75,12 +75,11 @@
X -- Add configuration for Lua
X -- Debian and Ubuntu have a specific naming convention for the lua
X -- package; fortunately it can be configured with pkg-config
X- if os.is("linux") and (get_linux_distribution() == "Debian"
X- or get_linux_distribution() == "Ubuntu")
X+ if os.is("bsd")
X then
X- includedirs { get_dirs("include", "lua5.1") }
X- links { "lua5.1" }
X- libdirs { get_dirs("lib", "lua5.1") }
X+ includedirs { get_dirs("include", "lua-5.1") }
X+ links { "lua-5.1" }
X+ libdirs { get_dirs("lib", "lua-5.1") }
X else
X includedirs { get_dirs("include", "lua") }
X links { "lua" }
1580844a953138e86cee6016c166559a
exit
--- nlarn.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list