1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

Update the URL's for Neverwinter Nights (Original and Diamond editions)

data and client binaries due to them being moved again.

Since the available version of the Bink Player has changed and no
archives of the old copy exist, the ability to play movies in the game
is now experimental if and only if a newer version of the nwmovies.so
hook is compiled on Linux i386 and used.  The binary for the hook is not
currently provided, hence, it is experimental.  I am currently working
with the maintainer of that hook to make a release to add to the port to
bring back movie support.

Regenerate distinfo files to add TIMESTAMP.

Reviewed by:	lifanov, mat
Approved by:	lifanov
Differential Revision:	https://reviews.freebsd.org/D12960
This commit is contained in:
Sean Farley 2017-11-09 01:53:38 +00:00
parent 240e15a191
commit f58111ade9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453788
6 changed files with 37 additions and 21 deletions

View File

@ -3,13 +3,15 @@
PORTNAME= nwnclient PORTNAME= nwnclient
PORTVERSION= 1.69 PORTVERSION= 1.69
PORTREVISION= 4 PORTREVISION= 5
CATEGORIES= games linux CATEGORIES= games linux
MASTER_SITES= http://na.llnet.bioware.cdn.ea.com/u/f/eagames/bioware/neverwinternights/updates/linux/${PORTVERSION:S/.//}/:CLIENT \ NWN_SITE_1= http://na.llnet.bioware.cdn.ea.com/u/f/eagames/bioware/neverwinternights/updates/linux/
http://nwdownloads.bioware.com/neverwinternights/linux/129/:ORIG \ NWN_SITE_2= http://lvlt.bioware.cdn.ea.com/bioware/u/f/eagames/bioware/neverwinternights/updates/linux/
http://nwdownloads.bioware.com/neverwinternights/linux/gold/:GOLD \ MASTER_SITES= ${NWN_SITE_1}${PORTVERSION:S/.//}/:CLIENT \
http://nwdownloads.bioware.com/neverwinternights/linux/161/:HOTU \ ${NWN_SITE_2}${PORTVERSION:S/.//}/:CLIENT \
http://home.roadrunner.com/~nwmovies/nwmovies/:NWMOVIES \ ${NWN_SITE_1}:ORIG,GOLD,HOTU \
${NWN_SITE_2}:ORIG,GOLD,HOTU \
https://github.com/nwnlinux/nwmovies/raw/master/:NWMOVIES \
http://www.radgametools.com/down/Bink/:BINK http://www.radgametools.com/down/Bink/:BINK
PKGNAMEPREFIX= linux- PKGNAMEPREFIX= linux-
DISTFILES= ${CLIENT_FILES} \ DISTFILES= ${CLIENT_FILES} \
@ -19,10 +21,6 @@ DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
MAINTAINER= scf@FreeBSD.org MAINTAINER= scf@FreeBSD.org
COMMENT= Neverwinter Nights Linux (x86) Client COMMENT= Neverwinter Nights Linux (x86) Client
BROKEN= does not fetch
DEPRECATED= Broken for more than 6 months
EXPIRATION_DATE= 2017-11-09
RUN_DEPENDS= ${LOCALBASE}/share/nwndata/docs/readme.txt:games/nwndata RUN_DEPENDS= ${LOCALBASE}/share/nwndata/docs/readme.txt:games/nwndata
NO_BUILD= yes NO_BUILD= yes
@ -32,7 +30,7 @@ USE_LINUX= dri sdl12 xorglibs
NWNDATADIR= ${LOCALBASE}/share/nwndata NWNDATADIR= ${LOCALBASE}/share/nwndata
OPTIONS_DEFINE= NWMOVIES OPTIONS_DEFINE= NWMOVIES
NWMOVIES_DESC= Support for movies using BinkPlayer NWMOVIES_DESC= Support for movies using BinkPlayer (experimental!)
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
@ -43,10 +41,10 @@ CLIENT_FILES= nwclientgold.tar.gz:GOLD \
English_linuxclient169_xp2.tar.gz:CLIENT English_linuxclient169_xp2.tar.gz:CLIENT
.if ${PORT_OPTIONS:MNWMOVIES} .if ${PORT_OPTIONS:MNWMOVIES}
NWMOVIESFILE= nwmovies-v4-public.20090223.080954.tar.gz NWMOVIESFILE= nwmovies-v4-public.20090223.080954.tar.gz
BINKPLAYERFILE= BinkLinuxPlayer.zip BINKPLAYERFILE= BinkLinuxPlayer.7z
CLIENT_NWMOVIES=${NWMOVIESFILE}:NWMOVIES \ CLIENT_NWMOVIES=${NWMOVIESFILE}:NWMOVIES \
${BINKPLAYERFILE}:BINK ${BINKPLAYERFILE}:BINK
USE_LINUX+= mikmod sdlmixer USE_LINUX+= sdlmixer
PLIST_SUB+= NWMOVIES="" PLIST_SUB+= NWMOVIES=""
.else .else
PLIST_SUB+= NWMOVIES="@comment " PLIST_SUB+= NWMOVIES="@comment "

View File

@ -1,3 +1,4 @@
TIMESTAMP = 1510192086
SHA256 (linux-nwnclient/English_linuxclient169_orig.tar.gz) = 50932f9647ea7968dbb8f7ab1fc6478035fff0826379a45762c1de8e46d1d2b0 SHA256 (linux-nwnclient/English_linuxclient169_orig.tar.gz) = 50932f9647ea7968dbb8f7ab1fc6478035fff0826379a45762c1de8e46d1d2b0
SIZE (linux-nwnclient/English_linuxclient169_orig.tar.gz) = 473297170 SIZE (linux-nwnclient/English_linuxclient169_orig.tar.gz) = 473297170
SHA256 (linux-nwnclient/English_linuxclient169_xp2.tar.gz) = 09715e2b95c025ef7f00d218deec1b1edce501530d8cba51d61097c69699763f SHA256 (linux-nwnclient/English_linuxclient169_xp2.tar.gz) = 09715e2b95c025ef7f00d218deec1b1edce501530d8cba51d61097c69699763f
@ -10,5 +11,5 @@ SHA256 (linux-nwnclient/nwclienthotu.tar.gz) = 0a4ace1aacd69fb166d09bd249ce5ae98
SIZE (linux-nwnclient/nwclienthotu.tar.gz) = 39611339 SIZE (linux-nwnclient/nwclienthotu.tar.gz) = 39611339
SHA256 (linux-nwnclient/nwmovies-v4-public.20090223.080954.tar.gz) = 4ce60791183a0623d09b37c9f00ba42a2f7e7d953eba35b090a96cc891254f14 SHA256 (linux-nwnclient/nwmovies-v4-public.20090223.080954.tar.gz) = 4ce60791183a0623d09b37c9f00ba42a2f7e7d953eba35b090a96cc891254f14
SIZE (linux-nwnclient/nwmovies-v4-public.20090223.080954.tar.gz) = 137697 SIZE (linux-nwnclient/nwmovies-v4-public.20090223.080954.tar.gz) = 137697
SHA256 (linux-nwnclient/BinkLinuxPlayer.zip) = ba3102eb70627f7a97c82f3a9efaacbccef64d1f48dda2b4338b0f27d5f50418 SHA256 (linux-nwnclient/BinkLinuxPlayer.7z) = 055c9cc22acad954962159c1c5963772cb82a3c3b4a024659c20a027cbad24e1
SIZE (linux-nwnclient/BinkLinuxPlayer.zip) = 85507 SIZE (linux-nwnclient/BinkLinuxPlayer.7z) = 826686

View File

@ -6,6 +6,7 @@
NWNDATADIR="%%NWNDATADIR%%" NWNDATADIR="%%NWNDATADIR%%"
NWNCLIENTDIR="%%NWNCLIENTDIR%%" NWNCLIENTDIR="%%NWNCLIENTDIR%%"
NWNUSERDIR="${HOME}/.nwn" NWNUSERDIR="${HOME}/.nwn"
NWNMOVIEDIR="${NWNUSERDIR}/nwmovies"
LCDIRS="ambient data dmvault hak localvault music override portraits" LCDIRS="ambient data dmvault hak localvault music override portraits"
set -e set -e
@ -91,7 +92,8 @@ cd "${NWNUSERDIR}"
rm -f ${NWNUSERDIR}/nwmovies.log rm -f ${NWNUSERDIR}/nwmovies.log
# Prevent flickering at beginning and ending of playing a movie. # Prevent flickering at beginning and ending of playing a movie.
export NWMOVIES_GRAB_HACK=1 # NOTE: this breaks using an external player (i.e., ffplay, mpv).
#export NWMOVIES_GRAB_HACK=1
# SDL settings # SDL settings
export SDL_MOUSE_RELATIVE=0 export SDL_MOUSE_RELATIVE=0
@ -105,7 +107,22 @@ export LD_LIBRARY_PATH="${NWNUSERDIR}/lib:${NWNUSERDIR}/miles"
ulimit -c 0 ulimit -c 0
echo "Starting Neverwinter Nights..." echo "Starting Neverwinter Nights..."
if [ -e ./nwmovies/nwmovies.so ] ; then if [ -e ${NWNMOVIEDIR}/nwmovies.so ] ; then
export LD_PRELOAD=./nwmovies/nwmovies.so if [ ! -e ${NWNUSERDIR}/lib/libdisasm.so ]
then
# Needed for generation of nwmovies.ini. Linked here since the code
# calls dlopen() from the user directory.
ln -sf ${NWNMOVIEDIR}/libdis/libdisasm.so \
${NWNUSERDIR}/lib/libdisasm.so
fi
export LD_PRELOAD=${NWNMOVIEDIR}/nwmovies.so
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${NWNMOVIEDIR}"
# Support for newer nwmovies.so that can use an external application.
# Does not work all that well at the moment.
export NWMOVIES_PLAY_COMMAND="mpv --fullscreen --keep-open=no" \
"--no-config --no-input-cursor --no-osc --no-terminal" \
"--osd-level=0"
fi fi
./nwmain "${@}" ./nwmain "${@}"

View File

@ -5,8 +5,7 @@ PORTNAME= nwndata
PORTVERSION= ${NWNVER} PORTVERSION= ${NWNVER}
PORTREVISION= ${NWNREV} PORTREVISION= ${NWNREV}
CATEGORIES= games CATEGORIES= games
MASTER_SITES= http://files.bioware.com/neverwinternights/updates/linux/ \ MASTER_SITES= http://na.llnet.bioware.cdn.ea.com/u/f/eagames/bioware/neverwinternights/updates/linux/ \
http://nwdownloads.bioware.com/neverwinternights/linux/129/ \
http://lvlt.bioware.cdn.ea.com/bioware/u/f/eagames/bioware/neverwinternights/updates/linux/ http://lvlt.bioware.cdn.ea.com/bioware/u/f/eagames/bioware/neverwinternights/updates/linux/
DISTNAME= ${NWRESOURCES} DISTNAME= ${NWRESOURCES}
.if defined(CDROM_MOUNT) && exists(${CDROM_MOUNT}/KingmakerSetup.exe) .if defined(CDROM_MOUNT) && exists(${CDROM_MOUNT}/KingmakerSetup.exe)

View File

@ -1,2 +1,3 @@
TIMESTAMP = 1510192144
SHA256 (nwresources129.tar.gz) = 4da35c38c63d7cbe40047833103fe0d56f417d1895fb572d52c23a873619f537 SHA256 (nwresources129.tar.gz) = 4da35c38c63d7cbe40047833103fe0d56f417d1895fb572d52c23a873619f537
SIZE (nwresources129.tar.gz) = 1212356127 SIZE (nwresources129.tar.gz) = 1212356127

View File

@ -365,5 +365,5 @@
%%ORIGINAL%%%%DATADIR%%/dialog.tlk %%ORIGINAL%%%%DATADIR%%/dialog.tlk
@dir %%DATADIR%%/servervault @dir %%DATADIR%%/servervault
@dir %%DATADIR%%/saves @dir %%DATADIR%%/saves
@dir %%DATADIR%%/portraits %%ORIGINAL%%@dir %%DATADIR%%/portraits
@dir %%DATADIR%%/hak @dir %%DATADIR%%/hak