Bug 53914 - [NEW PORT] games/linux_nwnclient: Neverwinter Nights Linux (x86) Client
Summary: [NEW PORT] games/linux_nwnclient: Neverwinter Nights Linux (x86) Client
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-30 03:50 UTC by Erik Olson
Modified: 2003-09-28 13:52 UTC (History)
0 users

See Also:


Attachments
linux_nwnclient.shar (6.71 KB, text/plain)
2003-06-30 03:50 UTC, Erik Olson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Olson 2003-06-30 03:50:09 UTC
NOTE:  This replaces request ports/50763, which was for the beta version of NWN

This is the Neverwinter Nights Linux based client.  It runs
under FreeBSD using the Linux emulation mode.  

WWW:  http://nwn.bioware.com/

- Erik Olson
erikolson@olsonexpress.com
Comment 1 Erik Olson 2003-06-30 13:20:03 UTC
NOTE:  Please holdoff on completing this request until after I submit a 
minor change to it.  I should submit in on 7/1/2003.
Comment 2 Erik Olson 2003-07-01 02:42:23 UTC
Here is the update.  This brings the client up to version 1.30.  I have 
included a complete shar to replace the one originally submitted.

# 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:
#
#	linux_nwnclient
#	linux_nwnclient/files
#	linux_nwnclient/files/patch-aa
#	linux_nwnclient/pkg-descr
#	linux_nwnclient/Makefile
#	linux_nwnclient/pkg-plist
#	linux_nwnclient/pkg-install
#	linux_nwnclient/distinfo
#
echo c - linux_nwnclient
mkdir -p linux_nwnclient > /dev/null 2>&1
echo c - linux_nwnclient/files
mkdir -p linux_nwnclient/files > /dev/null 2>&1
echo x - linux_nwnclient/files/patch-aa
sed 's/^X//' >linux_nwnclient/files/patch-aa << 
'END-of-linux_nwnclient/files/patch-aa'
X--- nwn.orig	Sun Jun 15 00:36:06 2003
X+++ nwn	Sun Jun 15 00:38:15 2003
X@@ -9,4 +9,11 @@
X # ./lib from LD_LIBRARY_PATH
X export LD_LIBRARY_PATH=./lib:./miles:$LD_LIBRARY_PATH
X
X+##
X+# FreeBSD Additions
X+export R200_NO_TCL=1
X+cd /usr/compat/linux/usr/games/nwn
X+#
X+###
X+
X ./nwmain $@
END-of-linux_nwnclient/files/patch-aa
echo x - linux_nwnclient/pkg-descr
sed 's/^X//' >linux_nwnclient/pkg-descr << 
'END-of-linux_nwnclient/pkg-descr'
XThis is the Neverwinter Nights Linux based client.  It runs
Xunder FreeBSD using the Linux emulation mode.
X
XWWW:  http://nwn.bioware.com/
X
X- Erik Olson
Xerikolson@olsonexpress.com
END-of-linux_nwnclient/pkg-descr
echo x - linux_nwnclient/Makefile
sed 's/^X//' >linux_nwnclient/Makefile << 'END-of-linux_nwnclient/Makefile'
X# New ports collection makefile for:    linux_nwnclient
X# Date created:         1 April 2003
X# Whom:                 Erik Olson <erikolson@olsonexpress.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	linux_nwnclient
XPORTVERSION=	1.30
XCATEGORIES=	games linux
XMASTER_SITES= 
http://nwdownloads.bioware.com/neverwinternights/linux/${PORTVERSION:S/.//}/ 
\
X		http://nwdownloads.bioware.com/neverwinternights/linux/129/
XDISTFILES=	nwclient129.tar.gz 
linuxclientupdate129to${PORTVERSION:S/.//}.tar.gz
X
XMAINTAINER=	erikolson@olsonexpress.com
XCOMMENT=	Neverwinter Nights Linux (x86) Client
X
XRUN_DEPENDS= 
/compat/linux/usr/games/nwn/nwm:${PORTSDIR}/games/linux_nwndata \
X		/compat/linux/usr/X11R6/lib/libGL.so.1.2:${PORTSDIR}/graphics/linux_dri
X
XUSE_LINUX=	yes
XUSE_LINUX_PREFIX=	yes
XNO_BUILD=	yes
XONLY_FOR_ARCHS=	i386
XNWNDIR=		usr/games/nwn
XWRKSRC=		${WRKDIR}
XINSTALL_DIR=	${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
XPLIST_SUB+=	NWNDIR="${NWNDIR}"
X# Linux binary should not be stripped by INSTALL_PROGRAM
X# because as a side effect it brands the binary as FreeBSD.
XSTRIP=
X
Xdo-install:
X	${INSTALL_DIR} ${PREFIX}/${NWNDIR}
X	${INSTALL_DIR} ${PREFIX}/${NWNDIR}/miles
X	${INSTALL_DIR} ${PREFIX}/${NWNDIR}/override
X	${INSTALL_DIR} ${PREFIX}/${NWNDIR}/lib
X	${INSTALL_DIR} ${PREFIX}/${NWNDIR}/nwm
X	${INSTALL_DIR} ${PREFIX}/${NWNDIR}/data
X.for file in nwmain nwserver
X	${INSTALL_PROGRAM} ${WRKDIR}/${file} ${PREFIX}/${NWNDIR}
X.endfor
X.for file in dmclient fixinstall nwn
X	${INSTALL_SCRIPT} ${WRKDIR}/${file} ${PREFIX}/${NWNDIR}
X.endfor
X.for file in nwn.ini movies-OC.txt dialog.tlk patch.key
X	${INSTALL_DATA} ${WRKDIR}/${file} ${PREFIX}/${NWNDIR}
X.endfor
X.for file in miles/mssdsp.flt miles/mssmp3.asi miles/msssoft.m3d 
miles/libmss.so.6.5.2 miles/libmss.so.6 miles/libmss.so
X	${INSTALL_DATA} ${WRKDIR}/${file} ${PREFIX}/${NWNDIR}/miles
X.endfor
X.for file in data/patch.bif
X	${INSTALL_DATA} ${WRKDIR}/${file} ${PREFIX}/${NWNDIR}/data
X.endfor
X.for file in nwm/Chapter1.nwm nwm/Chapter1E.nwm nwm/Chapter2.nwm 
nwm/Chapter3.nwm nwm/Prelude.nwm
X	${INSTALL_DATA} ${WRKDIR}/${file} ${PREFIX}/${NWNDIR}/nwm
X.endfor
X.for file in override/soundprovider.2da override/load_legal2.tga 
override/load_legal.tga
X	# Removed - override/gui_srv_lst_pnl.tga
X	${INSTALL_DATA} ${WRKDIR}/${file} ${PREFIX}/${NWNDIR}/override
X.endfor
X.for file in lib/libSDL-1.2.so.0 lib/libSDL-1.2.so.0.0.5
X	${INSTALL_PROGRAM} ${WRKDIR}/${file} ${PREFIX}/${NWNDIR}/lib
X.endfor
X.ifndef (NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for file in readme.txt readme-SDL.txt EULA.txt NWNv130.txt 
readme.linuxserver.txt
X	${INSTALL_DATA} ${WRKDIR}/${file} ${DOCSDIR}
X.endfor
X.endif
X#	cd ${PREFIX}/${NWNDIR}/ ; /compat/linux/bin/bash ./fixinstall
X	${CHOWN} -R root:games ${PREFIX}/${NWNDIR}/
X	${CHMOD} -R 775 ${PREFIX}/${NWNDIR}/
X
X.include <bsd.port.mk>
END-of-linux_nwnclient/Makefile
echo x - linux_nwnclient/pkg-plist
sed 's/^X//' >linux_nwnclient/pkg-plist << 
'END-of-linux_nwnclient/pkg-plist'
X%%NWNDIR%%/./dmclient
X%%DOCSDIR%%/./EULA.txt
X%%NWNDIR%%/./fixinstall
X%%NWNDIR%%/./lib/libSDL-1.2.so.0.0.5
X%%NWNDIR%%/./lib/libSDL-1.2.so.0
X%%NWNDIR%%/./miles/mssdsp.flt
X%%NWNDIR%%/./miles/mssmp3.asi
X%%NWNDIR%%/./miles/msssoft.m3d
X%%NWNDIR%%/./miles/libmss.so.6.5.2
X%%NWNDIR%%/./miles/libmss.so.6
X%%NWNDIR%%/./miles/libmss.so
X%%NWNDIR%%/./movies-OC.txt
X%%NWNDIR%%/./nwmain
X%%NWNDIR%%/./nwn
X%%NWNDIR%%/./nwn.ini
X%%NWNDIR%%/./nwserver
X%%NWNDIR%%/./override/soundprovider.2da
X%%NWNDIR%%/./override/load_legal2.tga
X%%NWNDIR%%/./override/load_legal.tga
X%%DOCSDIR%%/./readme.linuxserver.txt
X%%DOCSDIR%%/./readme-SDL.txt
X%%DOCSDIR%%/./readme.txt
X%%NWNDIR%%/./data/patch.bif
X%%NWNDIR%%/./dialog.tlk
X%%NWNDIR%%/./nwm/Chapter1.nwm
X%%NWNDIR%%/./nwm/Chapter1E.nwm
X%%NWNDIR%%/./nwm/Chapter2.nwm
X%%NWNDIR%%/./nwm/Chapter3.nwm
X%%NWNDIR%%/./nwm/Prelude.nwm
X%%DOCSDIR%%/./NWNv130.txt
X%%NWNDIR%%/./patch.key
X@unexec rmdir %D/%%NWNDIR%%/. 2>/dev/null || true
X@unexec rmdir %D/%%NWNDIR%%/./lib 2>/dev/null || true
X@unexec rmdir %D/%%NWNDIR%%/./miles 2>/dev/null || true
X@unexec rmdir %D/%%NWNDIR%%/./override 2>/dev/null || true
X@unexec rmdir %D/%%NWNDIR%%/./data 2>/dev/null || true
X@unexec rmdir %D/%%NWNDIR%%/./nwm 2>/dev/null || true
END-of-linux_nwnclient/pkg-plist
echo x - linux_nwnclient/pkg-install
sed 's/^X//' >linux_nwnclient/pkg-install << 
'END-of-linux_nwnclient/pkg-install'
X#!/bin/sh
X
Xif [ "$2" = "POST-INSTALL" -o -n "${BATCH}" -o -n "${PACKAGE_BUILDING}" 
]; then
X  exit 0
Xfi
X
X/usr/bin/dialog --msgbox "In order to play Neverwinter Nights, you will 
need the data files from the game.  This can be accomplished in a few 
different ways.  You can copy them manually into the 
/usr/compat/linux/games/nwn directory, or you use the 
games/linux-nwndata port.  The files will be automatically checked for. 
  If they are not available, then the games/linux-nwndata port will 
automatically be installed.  NOTE:  This port is installed so that you 
will need to be a member of the games group in order to play." 12 70 || 
/usr/bin/false
END-of-linux_nwnclient/pkg-install
echo x - linux_nwnclient/distinfo
sed 's/^X//' >linux_nwnclient/distinfo << 'END-of-linux_nwnclient/distinfo'
XMD5 (nwclient129.tar.gz) = 73c6515fd6aa5f860802098a55000ae8
XMD5 (linuxclientupdate129to130.tar.gz) = 658bd6a2865eeb599c6730b743a852c8
END-of-linux_nwnclient/distinfo
exit
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2003-09-28 13:52:11 UTC
State Changed
From-To: open->closed

Commited, thanks!