aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/Makefile1
-rw-r--r--games/linux-nwnclient/Makefile75
-rw-r--r--games/linux-nwnclient/distinfo2
-rw-r--r--games/linux-nwnclient/files/patch-aa14
-rw-r--r--games/linux-nwnclient/pkg-descr7
-rw-r--r--games/linux-nwnclient/pkg-install16
-rw-r--r--games/linux-nwnclient/pkg-plist38
-rw-r--r--games/linux_nwnclient/Makefile75
-rw-r--r--games/linux_nwnclient/distinfo2
-rw-r--r--games/linux_nwnclient/files/patch-aa14
-rw-r--r--games/linux_nwnclient/pkg-descr7
-rw-r--r--games/linux_nwnclient/pkg-install16
-rw-r--r--games/linux_nwnclient/pkg-plist38
13 files changed, 305 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 4810be3430f2..2d736c3ebc74 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -218,6 +218,7 @@
SUBDIR += lincity
SUBDIR += linux-nwserver
SUBDIR += linux-q3ademo
+ SUBDIR += linux_nwnclient
SUBDIR += linux_nwndata
SUBDIR += lm-solve
SUBDIR += ltris
diff --git a/games/linux-nwnclient/Makefile b/games/linux-nwnclient/Makefile
new file mode 100644
index 000000000000..61b50ac5ed42
--- /dev/null
+++ b/games/linux-nwnclient/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for: linux_nwnclient
+# Date created: 1 April 2003
+# Whom: Erik Olson <erikolson@olsonexpress.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= linux_nwnclient
+PORTVERSION= 1.30
+CATEGORIES= games linux
+MASTER_SITES= http://nwdownloads.bioware.com/neverwinternights/linux/${PORTVERSION:S/.//}/ \
+ http://nwdownloads.bioware.com/neverwinternights/linux/129/
+DISTFILES= nwclient129.tar.gz linuxclientupdate129to${PORTVERSION:S/.//}.tar.gz
+
+MAINTAINER= erikolson@olsonexpress.com
+COMMENT= Neverwinter Nights Linux (x86) Client
+
+RUN_DEPENDS= /compat/linux/usr/games/nwn/nwm:${PORTSDIR}/games/linux_nwndata \
+ /compat/linux/usr/X11R6/lib/libGL.so.1.2:${PORTSDIR}/graphics/linux_dri
+
+USE_LINUX= yes
+USE_LINUX_PREFIX= yes
+NO_BUILD= yes
+ONLY_FOR_ARCHS= i386
+NWNDIR= usr/games/nwn
+WRKSRC= ${WRKDIR}
+INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
+PLIST_SUB+= NWNDIR="${NWNDIR}"
+# Linux binary should not be stripped by INSTALL_PROGRAM
+# because as a side effect it brands the binary as FreeBSD.
+STRIP=
+
+do-install:
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}/miles
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}/override
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}/lib
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}/nwm
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}/data
+.for f in nwmain nwserver
+ ${INSTALL_PROGRAM} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}
+.endfor
+.for f in dmclient fixinstall nwn
+ ${INSTALL_SCRIPT} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}
+.endfor
+.for f in nwn.ini movies-OC.txt dialog.tlk patch.key
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}
+.endfor
+.for f in miles/mssdsp.flt miles/mssmp3.asi miles/msssoft.m3d miles/libmss.so.6.5.2 miles/libmss.so.6 miles/libmss.so
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}/miles
+.endfor
+.for f in data/patch.bif
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}/data
+.endfor
+.for f in nwm/Chapter1.nwm nwm/Chapter1E.nwm nwm/Chapter2.nwm nwm/Chapter3.nwm nwm/Prelude.nwm
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}/nwm
+.endfor
+.for f in override/soundprovider.2da override/load_legal2.tga override/load_legal.tga
+ # Removed - override/gui_srv_lst_pnl.tga
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}/override
+.endfor
+.for f in lib/libSDL-1.2.so.0 lib/libSDL-1.2.so.0.0.5
+ ${INSTALL_PROGRAM} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}/lib
+.endfor
+.ifndef (NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for f in readme.txt readme-SDL.txt EULA.txt NWNv130.txt readme.linuxserver.txt
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${DOCSDIR}
+.endfor
+.endif
+# cd ${PREFIX}/${NWNDIR}/ ; /compat/linux/bin/bash ./fixinstall
+ ${CHOWN} -R root:games ${PREFIX}/${NWNDIR}/
+ ${CHMOD} -R 775 ${PREFIX}/${NWNDIR}/
+
+.include <bsd.port.mk>
diff --git a/games/linux-nwnclient/distinfo b/games/linux-nwnclient/distinfo
new file mode 100644
index 000000000000..c42c0f558733
--- /dev/null
+++ b/games/linux-nwnclient/distinfo
@@ -0,0 +1,2 @@
+MD5 (nwclient129.tar.gz) = 73c6515fd6aa5f860802098a55000ae8
+MD5 (linuxclientupdate129to130.tar.gz) = 658bd6a2865eeb599c6730b743a852c8
diff --git a/games/linux-nwnclient/files/patch-aa b/games/linux-nwnclient/files/patch-aa
new file mode 100644
index 000000000000..629b593fcbfe
--- /dev/null
+++ b/games/linux-nwnclient/files/patch-aa
@@ -0,0 +1,14 @@
+--- nwn.orig Sun Jun 15 00:36:06 2003
++++ nwn Sun Jun 15 00:38:15 2003
+@@ -9,4 +9,11 @@
+ # ./lib from LD_LIBRARY_PATH
+ export LD_LIBRARY_PATH=./lib:./miles:$LD_LIBRARY_PATH
+
++##
++# FreeBSD Additions
++export R200_NO_TCL=1
++cd /usr/compat/linux/usr/games/nwn
++#
++###
++
+ ./nwmain $@
diff --git a/games/linux-nwnclient/pkg-descr b/games/linux-nwnclient/pkg-descr
new file mode 100644
index 000000000000..92e1e17df099
--- /dev/null
+++ b/games/linux-nwnclient/pkg-descr
@@ -0,0 +1,7 @@
+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
diff --git a/games/linux-nwnclient/pkg-install b/games/linux-nwnclient/pkg-install
new file mode 100644
index 000000000000..b05f3c671c2a
--- /dev/null
+++ b/games/linux-nwnclient/pkg-install
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if [ "$2" = "POST-INSTALL" -o -n "${BATCH}" -o -n "${PACKAGE_BUILDING}"
+]; then
+ exit 0
+fi
+
+/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
diff --git a/games/linux-nwnclient/pkg-plist b/games/linux-nwnclient/pkg-plist
new file mode 100644
index 000000000000..77ccd121e743
--- /dev/null
+++ b/games/linux-nwnclient/pkg-plist
@@ -0,0 +1,38 @@
+%%NWNDIR%%/dmclient
+%%DOCSDIR%%/EULA.txt
+%%NWNDIR%%/fixinstall
+%%NWNDIR%%/lib/libSDL-1.2.so.0.0.5
+%%NWNDIR%%/lib/libSDL-1.2.so.0
+%%NWNDIR%%/miles/mssdsp.flt
+%%NWNDIR%%/miles/mssmp3.asi
+%%NWNDIR%%/miles/msssoft.m3d
+%%NWNDIR%%/miles/libmss.so.6.5.2
+%%NWNDIR%%/miles/libmss.so.6
+%%NWNDIR%%/miles/libmss.so
+%%NWNDIR%%/movies-OC.txt
+%%NWNDIR%%/nwmain
+%%NWNDIR%%/nwn
+%%NWNDIR%%/nwn.ini
+%%NWNDIR%%/nwserver
+%%NWNDIR%%/override/soundprovider.2da
+%%NWNDIR%%/override/load_legal2.tga
+%%NWNDIR%%/override/load_legal.tga
+%%DOCSDIR%%/readme.linuxserver.txt
+%%DOCSDIR%%/readme-SDL.txt
+%%DOCSDIR%%/readme.txt
+%%NWNDIR%%/data/patch.bif
+%%NWNDIR%%/dialog.tlk
+%%NWNDIR%%/nwm/Chapter1.nwm
+%%NWNDIR%%/nwm/Chapter1E.nwm
+%%NWNDIR%%/nwm/Chapter2.nwm
+%%NWNDIR%%/nwm/Chapter3.nwm
+%%NWNDIR%%/nwm/Prelude.nwm
+%%DOCSDIR%%/NWNv130.txt
+%%NWNDIR%%/patch.key
+@unexec rmdir %D/%%NWNDIR%%/lib 2>/dev/null || true
+@unexec rmdir %D/%%NWNDIR%%/miles 2>/dev/null || true
+@unexec rmdir %D/%%NWNDIR%%/override 2>/dev/null || true
+@unexec rmdir %D/%%NWNDIR%%/data 2>/dev/null || true
+@unexec rmdir %D/%%NWNDIR%%/nwm 2>/dev/null || true
+@unexec rmdir %D/%%NWNDIR%% 2>/dev/null || true
+@unexec rmdir %D/%%DOCSDIR%% 2>/dev/null || true
diff --git a/games/linux_nwnclient/Makefile b/games/linux_nwnclient/Makefile
new file mode 100644
index 000000000000..61b50ac5ed42
--- /dev/null
+++ b/games/linux_nwnclient/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for: linux_nwnclient
+# Date created: 1 April 2003
+# Whom: Erik Olson <erikolson@olsonexpress.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= linux_nwnclient
+PORTVERSION= 1.30
+CATEGORIES= games linux
+MASTER_SITES= http://nwdownloads.bioware.com/neverwinternights/linux/${PORTVERSION:S/.//}/ \
+ http://nwdownloads.bioware.com/neverwinternights/linux/129/
+DISTFILES= nwclient129.tar.gz linuxclientupdate129to${PORTVERSION:S/.//}.tar.gz
+
+MAINTAINER= erikolson@olsonexpress.com
+COMMENT= Neverwinter Nights Linux (x86) Client
+
+RUN_DEPENDS= /compat/linux/usr/games/nwn/nwm:${PORTSDIR}/games/linux_nwndata \
+ /compat/linux/usr/X11R6/lib/libGL.so.1.2:${PORTSDIR}/graphics/linux_dri
+
+USE_LINUX= yes
+USE_LINUX_PREFIX= yes
+NO_BUILD= yes
+ONLY_FOR_ARCHS= i386
+NWNDIR= usr/games/nwn
+WRKSRC= ${WRKDIR}
+INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
+PLIST_SUB+= NWNDIR="${NWNDIR}"
+# Linux binary should not be stripped by INSTALL_PROGRAM
+# because as a side effect it brands the binary as FreeBSD.
+STRIP=
+
+do-install:
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}/miles
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}/override
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}/lib
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}/nwm
+ ${INSTALL_DIR} ${PREFIX}/${NWNDIR}/data
+.for f in nwmain nwserver
+ ${INSTALL_PROGRAM} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}
+.endfor
+.for f in dmclient fixinstall nwn
+ ${INSTALL_SCRIPT} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}
+.endfor
+.for f in nwn.ini movies-OC.txt dialog.tlk patch.key
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}
+.endfor
+.for f in miles/mssdsp.flt miles/mssmp3.asi miles/msssoft.m3d miles/libmss.so.6.5.2 miles/libmss.so.6 miles/libmss.so
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}/miles
+.endfor
+.for f in data/patch.bif
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}/data
+.endfor
+.for f in nwm/Chapter1.nwm nwm/Chapter1E.nwm nwm/Chapter2.nwm nwm/Chapter3.nwm nwm/Prelude.nwm
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}/nwm
+.endfor
+.for f in override/soundprovider.2da override/load_legal2.tga override/load_legal.tga
+ # Removed - override/gui_srv_lst_pnl.tga
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}/override
+.endfor
+.for f in lib/libSDL-1.2.so.0 lib/libSDL-1.2.so.0.0.5
+ ${INSTALL_PROGRAM} ${WRKDIR}/${f} ${PREFIX}/${NWNDIR}/lib
+.endfor
+.ifndef (NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for f in readme.txt readme-SDL.txt EULA.txt NWNv130.txt readme.linuxserver.txt
+ ${INSTALL_DATA} ${WRKDIR}/${f} ${DOCSDIR}
+.endfor
+.endif
+# cd ${PREFIX}/${NWNDIR}/ ; /compat/linux/bin/bash ./fixinstall
+ ${CHOWN} -R root:games ${PREFIX}/${NWNDIR}/
+ ${CHMOD} -R 775 ${PREFIX}/${NWNDIR}/
+
+.include <bsd.port.mk>
diff --git a/games/linux_nwnclient/distinfo b/games/linux_nwnclient/distinfo
new file mode 100644
index 000000000000..c42c0f558733
--- /dev/null
+++ b/games/linux_nwnclient/distinfo
@@ -0,0 +1,2 @@
+MD5 (nwclient129.tar.gz) = 73c6515fd6aa5f860802098a55000ae8
+MD5 (linuxclientupdate129to130.tar.gz) = 658bd6a2865eeb599c6730b743a852c8
diff --git a/games/linux_nwnclient/files/patch-aa b/games/linux_nwnclient/files/patch-aa
new file mode 100644
index 000000000000..629b593fcbfe
--- /dev/null
+++ b/games/linux_nwnclient/files/patch-aa
@@ -0,0 +1,14 @@
+--- nwn.orig Sun Jun 15 00:36:06 2003
++++ nwn Sun Jun 15 00:38:15 2003
+@@ -9,4 +9,11 @@
+ # ./lib from LD_LIBRARY_PATH
+ export LD_LIBRARY_PATH=./lib:./miles:$LD_LIBRARY_PATH
+
++##
++# FreeBSD Additions
++export R200_NO_TCL=1
++cd /usr/compat/linux/usr/games/nwn
++#
++###
++
+ ./nwmain $@
diff --git a/games/linux_nwnclient/pkg-descr b/games/linux_nwnclient/pkg-descr
new file mode 100644
index 000000000000..92e1e17df099
--- /dev/null
+++ b/games/linux_nwnclient/pkg-descr
@@ -0,0 +1,7 @@
+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
diff --git a/games/linux_nwnclient/pkg-install b/games/linux_nwnclient/pkg-install
new file mode 100644
index 000000000000..b05f3c671c2a
--- /dev/null
+++ b/games/linux_nwnclient/pkg-install
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if [ "$2" = "POST-INSTALL" -o -n "${BATCH}" -o -n "${PACKAGE_BUILDING}"
+]; then
+ exit 0
+fi
+
+/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
diff --git a/games/linux_nwnclient/pkg-plist b/games/linux_nwnclient/pkg-plist
new file mode 100644
index 000000000000..77ccd121e743
--- /dev/null
+++ b/games/linux_nwnclient/pkg-plist
@@ -0,0 +1,38 @@
+%%NWNDIR%%/dmclient
+%%DOCSDIR%%/EULA.txt
+%%NWNDIR%%/fixinstall
+%%NWNDIR%%/lib/libSDL-1.2.so.0.0.5
+%%NWNDIR%%/lib/libSDL-1.2.so.0
+%%NWNDIR%%/miles/mssdsp.flt
+%%NWNDIR%%/miles/mssmp3.asi
+%%NWNDIR%%/miles/msssoft.m3d
+%%NWNDIR%%/miles/libmss.so.6.5.2
+%%NWNDIR%%/miles/libmss.so.6
+%%NWNDIR%%/miles/libmss.so
+%%NWNDIR%%/movies-OC.txt
+%%NWNDIR%%/nwmain
+%%NWNDIR%%/nwn
+%%NWNDIR%%/nwn.ini
+%%NWNDIR%%/nwserver
+%%NWNDIR%%/override/soundprovider.2da
+%%NWNDIR%%/override/load_legal2.tga
+%%NWNDIR%%/override/load_legal.tga
+%%DOCSDIR%%/readme.linuxserver.txt
+%%DOCSDIR%%/readme-SDL.txt
+%%DOCSDIR%%/readme.txt
+%%NWNDIR%%/data/patch.bif
+%%NWNDIR%%/dialog.tlk
+%%NWNDIR%%/nwm/Chapter1.nwm
+%%NWNDIR%%/nwm/Chapter1E.nwm
+%%NWNDIR%%/nwm/Chapter2.nwm
+%%NWNDIR%%/nwm/Chapter3.nwm
+%%NWNDIR%%/nwm/Prelude.nwm
+%%DOCSDIR%%/NWNv130.txt
+%%NWNDIR%%/patch.key
+@unexec rmdir %D/%%NWNDIR%%/lib 2>/dev/null || true
+@unexec rmdir %D/%%NWNDIR%%/miles 2>/dev/null || true
+@unexec rmdir %D/%%NWNDIR%%/override 2>/dev/null || true
+@unexec rmdir %D/%%NWNDIR%%/data 2>/dev/null || true
+@unexec rmdir %D/%%NWNDIR%%/nwm 2>/dev/null || true
+@unexec rmdir %D/%%NWNDIR%% 2>/dev/null || true
+@unexec rmdir %D/%%DOCSDIR%% 2>/dev/null || true