source: trunk/dports/games/mystonline-wine/Portfile @ 66695

Last change on this file since 66695 was 66695, checked in by ryandesign@…, 10 years ago

Myst Online ports: no livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.2 KB
1# $Id: Portfile 66695 2010-04-20 16:27:29Z $
3PortSystem                  1.0
5name                        mystonline-wine
6set my_name                 mystonline
7version                     2010
8revision                    2
9platforms                   darwin
10categories                  games x11
11maintainers                 ryandesign
13dist_subdir                 ${my_name}
15extract.mkdir               yes
17description                 Myst Online: URU Live Again
19long_description            ${description} (MO:ULagain) running via Wine
21depends_build               port:winetricks
23depends_run                 path:bin/wine:wine-devel \
24                            port:mystonline-bootstrap
26set libexec_dir             ${prefix}/libexec/${name}
27set share_dir               ${prefix}/share/${my_name}
28set bootstrap_dir           ${share_dir}/bootstrap
29set assets_dir              ${share_dir}/data
30set wineprefix              ${share_dir}/wine
31set app_name                "Myst Online (Wine)"
32set app_package             ${applications_dir}/${app_name}.app
34post-extract {
35    xinstall -m 644 -W ${filespath} chown-data.c ${worksrcpath}
38post-patch {
39    reinplace "s|@BOOTSTRAP_LAUNCHER@|${bootstrap_dir}/UruLauncher.exe|g" ${worksrcpath}/
40    reinplace "s|@LAUNCHER@|${assets_dir}/UruLauncher.exe|g" ${worksrcpath}/
41    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/
42    reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/
43    reinplace "s|@LIBEXEC@|${libexec_dir}|g" ${worksrcpath}/
44    reinplace "s|@WINEPREFIX@|${wineprefix}|g" ${worksrcpath}/ ${worksrcpath}/chown-data.c
45    reinplace "s|@ASSETS@|${assets_dir}|g" ${worksrcpath}/chown-data.c
48use_configure               no
50build {
51    # Create the wine prefix
52    system "WINEPREFIX=${worksrcpath}/wineprefix ${prefix}/bin/wineprefixcreate -w"
54    # Delete any temporary directory definitions; use the default C:\windows\temp
55    reinplace -E {/^"TE?MP"=/d} ${worksrcpath}/wineprefix/user.reg
57    # Map C:\windows\temp to /tmp so any temp files that get created
58    # (e.g. by the PhysX installer) get cleaned up by Mac OS X as usual
59    delete ${worksrcpath}/wineprefix/drive_c/windows/temp
60    ln -s /tmp ${worksrcpath}/wineprefix/drive_c/windows/temp
62    # If winetricks needs to download any files, put them where the other distfiles are
63    if {![file exists ${distpath}/winetrickscache]} {
64        ln -s . ${distpath}/winetrickscache
65    }
67    # Enable font antialiasing
68    system "WINEPREFIX=${worksrcpath}/wineprefix HOME=${distpath} ${prefix}/bin/winetricks -q fontsmooth-rgb"
70    # Delete dosdevices -- it might contain references to transient disks
71    # the user happens to have mounted, and wine will recreate it anyway
72    delete ${worksrcpath}/wineprefix/dosdevices
74    # Link "Uru Live" to our assets dir
75    set program_files "${worksrcpath}/wineprefix/drive_c/Program Files"
76    file mkdir ${program_files}
77    ln -s ${assets_dir} "${program_files}/Uru Live"
79    # Build the chown wrapper program
80    system "cd ${worksrcpath} && ${} chown-data.c -o chown-data"
83destroot {
84    xinstall -d ${destroot}${libexec_dir} \
85                ${destroot}${share_dir} \
86                ${destroot}${app_package}/Contents/MacOS
88    xinstall -m 4755 -W ${worksrcpath} chown-data ${destroot}${libexec_dir}
90    xinstall -W ${worksrcpath} ${destroot}${app_package}/Contents/MacOS/${app_name}
92    copy ${worksrcpath}/wineprefix ${destroot}${wineprefix}
95notes                       Welcome to Myst Online: Uru Live Again (MO:ULagain) \
96                            \n\n* To play Myst Online, you need an account, which you can create for free by visiting \
97                            ${homepage} and clicking Play. \
98                            \n* Myst Online automatically updates itself. \
99                            The first time you open Myst Online, it will download several gigabytes of game data. \
100                            Be patient\; this will take some time. \
101                            If you already have the game data from a non-MacPorts installation of Myst Online, \
102                            you can save time by copying or moving it into ${assets_dir} \
103                            \n\nThis version of Myst Online runs via Wine. \
104                            Peculiarities of this method of running Myst Online include: \
105                            \n* Don't click anywhere in the updater window. If you do, the window will follow the mouse \
106                            cursor and will not go away. If you need to cancel the updater, press the Escape key. \
107                            \n* The first time you log into Myst Online, you will be prompted to install PhysX. \
108                            \n* The mouse cursor image is wrong. \
109                            \n* To be able to look around by holding down the Command key while dragging, \
110                            enable the \"Emulate three button mouse\" option in X11 preferences. \
111                            \n* The menubar cannot be hidden. \
112                            \n* The dock does not hide automatically. It can be hidden using the normal ways \
113                            (e.g. Apple menu > Dock > Turn hiding on) but you may also want to move the dock \
114                            to the side of the screen as otherwise it gets in the way of game play. \
115                            \n* The game's dock icon keeps bouncing longer than it should, doesn't show that \
116                            it's running even when it is, and doesn't bring the game to the front if you click it. \
117                            \n* Accessing the dock icon's context menu doesn't let you quit the game normally, \
118                            though it does let you force-quit it. \
119                            \n* The application has a generic icon. \
120                            \n* The game starts in fullscreen mode. If in fullscreen mode you access the game's \
121                            graphics settings, you cannot return to the game\; you must force-quit. \
122                            \n* To switch between fullscreen and windowed mode, use the checkbox in the graphics settings. \
123                            \n* Intel GMA 950 integrated graphics cards are not supported. Some graphics including your avatar \
124                            will not display correctly. \
125                            \n* Sounds sometimes pop and crackle. \
126                            \n* The microphone cannot be used to talk to other players, though you can hear other players talking to you. \
127                            \n* On Macs with NVIDIA graphics cards, water does not show up properly in Er'cana. \
128                            \n* On Macs with NVIDIA graphics cards that have not upgraded to Mac OS X 10.6.3, \
129                            Eder Kemo has severe performance problems. \
130                            \n\nOther methods of running Myst Online on a Mac include the Cider version in the \
131                            mystonline-cider port, and running the game in Windows via VMware, Parallels or Boot Camp. \
132                            \n\nTo play Myst Online, open ${app_package}.
134universal_variant           no
136livecheck.type              none
Note: See TracBrowser for help on using the repository browser.