[66395] users/ryandesign/ports/games/mystonline-wine
ryandesign at macports.org
ryandesign at macports.org
Sat Apr 10 18:07:49 PDT 2010
Revision: 66395
http://trac.macports.org/changeset/66395
Author: ryandesign at macports.org
Date: 2010-04-10 18:07:47 -0700 (Sat, 10 Apr 2010)
Log Message:
-----------
mystonline-wine:
* update to use mystonline-bootstrap instead of MOULInstaller.exe
* remove dosdevices from wine prefix to prevent errors when reinstalling with different disks mounted
* add comments
* update notes
Modified Paths:
--------------
users/ryandesign/ports/games/mystonline-wine/Portfile
users/ryandesign/ports/games/mystonline-wine/files/MOUL.sh
Modified: users/ryandesign/ports/games/mystonline-wine/Portfile
===================================================================
--- users/ryandesign/ports/games/mystonline-wine/Portfile 2010-04-11 01:05:57 UTC (rev 66394)
+++ users/ryandesign/ports/games/mystonline-wine/Portfile 2010-04-11 01:07:47 UTC (rev 66395)
@@ -5,29 +5,23 @@
name mystonline-wine
set my_name mystonline
version 2010
-revision 1
+revision 2
platforms darwin
categories games x11
maintainers ryandesign
homepage http://mystonline.com/
dist_subdir ${my_name}
-master_sites https://account.mystonline.com/download/
-set installer_exe MOULInstaller.exe
-distfiles ${installer_exe}
+distfiles
extract.mkdir yes
-extract.only
description Myst Online: URU Live Again
long_description ${description} (MO:ULagain) running via Wine
-checksums md5 6e33d2f380698d0f552b7a5a1e3634a3 \
- sha1 5221729d62b9c9578c3b2da5042a2fd69443b05b \
- rmd160 29ff37d4768105061e96b517d7f4d99b406accef
-
depends_build port:winetricks
-depends_run path:bin/wine:wine-devel
+depends_run path:bin/wine:wine-devel \
+ port:mystonline-bootstrap
set libexec_dir ${prefix}/libexec/${name}
set share_dir ${prefix}/share/${my_name}
@@ -42,7 +36,7 @@
}
post-patch {
- reinplace "s|@INSTALLER@|${bootstrap_dir}/${installer_exe}|g" ${worksrcpath}/MOUL.sh
+ reinplace "s|@BOOTSTRAP_LAUNCHER@|${bootstrap_dir}/UruLauncher.exe|g" ${worksrcpath}/MOUL.sh
reinplace "s|@LAUNCHER@|${assets_dir}/UruLauncher.exe|g" ${worksrcpath}/MOUL.sh
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/MOUL.sh
reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/MOUL.sh
@@ -54,63 +48,83 @@
use_configure no
build {
- system "WINEPREFIX=${worksrcpath}/wineprefix ${prefix}/bin/wineprefixcreate"
+ # Create the wine prefix
+ system "WINEPREFIX=${worksrcpath}/wineprefix ${prefix}/bin/wineprefixcreate -w"
+ # Delete any temporary directory definitions; use the default C:\windows\temp
+ reinplace -E {/^"TE?MP"=/d} ${worksrcpath}/wineprefix/user.reg
+
+ # Map C:\windows\temp to /tmp so any temp files that get created
+ # (e.g. by the PhysX installer) get cleaned up by Mac OS X as usual
+ delete ${worksrcpath}/wineprefix/drive_c/windows/temp
+ ln -s /tmp ${worksrcpath}/wineprefix/drive_c/windows/temp
+
+ # If winetricks needs to download any files, put them where the other distfiles are
if {![file exists ${distpath}/winetrickscache]} {
ln -s . ${distpath}/winetrickscache
}
+
+ # Enable font antialiasing
system "WINEPREFIX=${worksrcpath}/wineprefix HOME=${distpath} ${prefix}/bin/winetricks -q fontsmooth-rgb"
+ # Delete dosdevices -- it might contain references to transient disks
+ # the user happens to have mounted, and wine will recreate it anyway
+ delete ${worksrcpath}/wineprefix/dosdevices
+
+ # Link "Uru Live" to our assets dir
set program_files "${worksrcpath}/wineprefix/drive_c/Program Files"
file mkdir ${program_files}
ln -s ${assets_dir} "${program_files}/Uru Live"
+ # Build the chown wrapper program
system "cd ${worksrcpath} && ${configure.cc} chown-data.c -o chown-data"
}
-destroot.keepdirs ${destroot}${assets_dir}
destroot {
xinstall -d ${destroot}${libexec_dir} \
- ${destroot}${bootstrap_dir} \
- ${destroot}${assets_dir} \
+ ${destroot}${share_dir} \
${destroot}${app_package}/Contents/MacOS
xinstall -m 4755 -W ${worksrcpath} chown-data ${destroot}${libexec_dir}
xinstall -W ${worksrcpath} MOUL.sh ${destroot}${app_package}/Contents/MacOS/${app_name}
- xinstall -m 644 -W ${distpath} ${installer_exe} ${destroot}${bootstrap_dir}
-
copy ${worksrcpath}/wineprefix ${destroot}${wineprefix}
}
-notes This is Myst Online running via Wine. \
+notes Welcome to Myst Online: Uru Live Again (MO:ULagain) \
+ \n\n* To play Myst Online, you need an account, which you can create for free by visiting \
+ ${homepage} and clicking Play. \
+ \n* Myst Online automatically updates itself. \
+ The first time you open Myst Online, it will download several gigabytes of game data. \
+ Be patient\; this will take some time. \
+ If you already have the game data from a non-MacPorts installation of Myst Online, \
+ you can save time by copying or moving it into ${assets_dir} \
+ \n\nThis version of Myst Online runs via Wine. \
Peculiarities of this method of running Myst Online include: \
- \n\n* The first time you open Myst Online, the installer runs. Don't change the default install location. \
- Later, you will also be prompted to install PhysX. \
- \n* If you click anywhere in the updater window, the window will follow the mouse and will not go away. \
- \n* You cannot hold down the Command key while dragging to look around. \
+ \n* Don't click anywhere in the updater window. If you do, the window will follow the mouse \
+ cursor and will not go away. If you need to cancel the updater, press the Escape key. \
+ \n* The first time you log into Myst Online, you will be prompted to install PhysX. \
+ \n* The mouse cursor image is wrong. \
+ \n* You cannot look around by holding down the Command key while dragging. \
\n* The menubar cannot be hidden. \
\n* The dock does not hide automatically. It can be hidden using the normal ways \
(e.g. Apple menu > Dock > Turn hiding on) but you may also want to move the dock \
to the side of the screen as otherwise it gets in the way of game play. \
\n* The game's dock icon keeps bouncing longer than it should, doesn't show that \
it's running even when it is, and doesn't bring the game to the front if you click it. \
- Accessing the dock icon's context menu doesn't let you quit the game normally, \
+ \n* Accessing the dock icon's context menu doesn't let you quit the game normally, \
though it does let you force-quit it. \
- \n* The Relto-book application icon is missing. \
+ \n* The application has a generic icon. \
\n* The game starts in fullscreen mode. If in fullscreen mode you access the game's \
graphics settings, you cannot return to the game\; you must force-quit. \
\n* To switch between fullscreen and windowed mode, use the checkbox in the graphics settings. \
\n* Intel GMA 950 integrated graphics cards are not supported. Some graphics including your avatar \
will not display correctly. \
- \n* On Macs with NVIDIA graphics cards, Eder Kemo has graphics glitches and severe \
- performance problems. \
\n* Sounds sometimes pop and crackle. \
+ \n* The microphone cannot be used to talk to other players, though you can hear other players talking to you. \
\n\nOther methods of running Myst Online on a Mac include the Cider version in the \
mystonline-cider port, and running the game in Windows via VMware, Parallels or Boot Camp. \
- \n\nIf you already have the game files from a non-MacPorts installation of Myst Online, \
- you can copy or move them to ${assets_dir} to save some download time. \
\n\nTo play Myst Online, open ${app_package}.
universal_variant no
Modified: users/ryandesign/ports/games/mystonline-wine/files/MOUL.sh
===================================================================
--- users/ryandesign/ports/games/mystonline-wine/files/MOUL.sh 2010-04-11 01:05:57 UTC (rev 66394)
+++ users/ryandesign/ports/games/mystonline-wine/files/MOUL.sh 2010-04-11 01:07:47 UTC (rev 66395)
@@ -1,7 +1,6 @@
#!/bin/bash
-# This script runs the game launcher (if it's already been installed)
-# or the installer (if it hasn't).
+# This script runs the game launcher, installing it if it's not already there.
export PREFIX="@PREFIX@"
export WINEPREFIX="@WINEPREFIX@"
@@ -37,18 +36,16 @@
#fi
LAUNCHER="@LAUNCHER@"
-INSTALLER="@INSTALLER@"
-if [ -r "$LAUNCHER" ]; then
- PROGRAM="$LAUNCHER"
-else
- PROGRAM="$INSTALLER"
+BOOTSTRAP_LAUNCHER="@BOOTSTRAP_LAUNCHER@"
+if [ ! -r "$LAUNCHER" ]; then
+ cp -p "$BOOTSTRAP_LAUNCHER" "$LAUNCHER"
fi
-"$PREFIX/bin/wine" "$PROGRAM" &
+"$PREFIX/bin/wine" "$LAUNCHER"
sleep 5
-# If we're running the installer, the installer will run the launcher
-# after it's done. Wait for all apps to exit before exiting this script.
+# The launcher might have downloaded and launched a new launcher.
+# Wait for all apps to exit before exiting this script.
#"$PREFIX/bin/wineserver" -w
SOCKET="$(printf "/tmp/.wine-$USER/server-%x-%x/socket" $(stat -f '%d %i' "$WINEPREFIX"))"
while [ -r "$SOCKET" ]; do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100410/507a5de6/attachment.html>
More information about the macports-changes
mailing list