[75891] trunk/dports/emulators/bochs/Portfile

raimue at macports.org raimue at macports.org
Fri Feb 11 17:41:44 PST 2011


Revision: 75891
          http://trac.macports.org/changeset/75891
Author:   raimue at macports.org
Date:     2011-02-11 17:41:43 -0800 (Fri, 11 Feb 2011)
Log Message:
-----------
emulators/bochs:
Disable sound support and switch to X11 frontend instead of Carbon as the
deprecated APIs do no longer work, see #23938

Modified Paths:
--------------
    trunk/dports/emulators/bochs/Portfile

Modified: trunk/dports/emulators/bochs/Portfile
===================================================================
--- trunk/dports/emulators/bochs/Portfile	2011-02-12 01:39:41 UTC (rev 75890)
+++ trunk/dports/emulators/bochs/Portfile	2011-02-12 01:41:43 UTC (rev 75891)
@@ -4,6 +4,7 @@
 
 name                bochs
 version             2.4.5
+revision            1
 categories          emulators
 platforms           darwin
 maintainers         nomaintainer
@@ -31,44 +32,46 @@
                     --bindir=${prefix}/bin \
                     --mandir=${prefix}/share/man \
                     --enable-all-optimizations \
-                    --enable-sb16=osx \
                     --enable-vbe \
-                    --enable-cdrom
+                    --enable-cdrom \
+                    --enable-gdb-stub \
+                    --with-x11
 
+# Disable sound support, see ticket #23938
+#configure.args-append --enable-sb16=osx
+
 variant smp description {Enable symmetric multi-processor support} {
     configure.args-append --enable-smp --enable-cpu-level=6
 }
 
 post-destroot {
-    xinstall -d ${destroot}${prefix}/share/bochs
-    file copy ${worksrcpath}/bochs.app ${destroot}${prefix}/share/bochs
-    system "ln -s ${prefix}/share/bochs/bochs.app ${destroot}${applications_dir}/bochs.app"
-    xinstall -W ${worksrcpath} bochs bximage bxcommit ${destroot}${prefix}/bin
     reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" \
-        ${destroot}${prefix}/share/bochs/bochsrc-sample.txt
+        ${destroot}${prefix}/share/doc/bochs/bochsrc-sample.txt
 }
 
+post-activate {
+    if {![file exists ${prefix}/share/bochs/bochsrc.txt]} {
+        ui_msg "File ${prefix}/share/bochs/bochsrc.txt not found, installing sample configuration file"
+        xinstall -m 0644 ${prefix}/share/doc/bochs/bochsrc-sample.txt ${prefix}/share/bochs/bochsrc.txt
+    }
+}
+
 notes "
-**** To prepare bochs for use ****
+To prepare bochs for use:
 
-1) Rename file bochsrc-sample.txt to bochrc.txt for use.
-   -cd ${prefix}/share/bochs
-   -sudo cp bochsrc-sample.txt bochrc.txt
+1) Create a disk image for the emulator.
+     cd ${prefix}/share/bochs
+     sudo bximage (prompts will guide you)
+     sudo chmod 777 <diskimg-name>
 
-2) Create a disk image for the emulator.
-   -cd ${prefix}/share/bochs
-   -sudo bximage (prompts will guide you)
-   -sudo chmod 777 <diskimg-name>
-
-3) Remove the current 'ata0-master:' statement in ${prefix}/share/bochs/bochsrc.txt
+2) Remove the current 'ata0-master:' statement in ${prefix}/share/bochs/bochsrc.txt
    and replace it with the 'ata0-master:' string displayed at the end of the bximage
    process.
 
-4) Format the disk image using FreeDOS (http://bochs.sourceforge.net/diskimages.html)
+3) Format the disk image using FreeDOS (http://bochs.sourceforge.net/diskimages.html)
    according to the bochs documentation. (http://bochs.sourceforge.net/)
 
-5) Now start bochs using the ${applications_dir}/bochs.app program;
-   you may also use the bochs command line utility.
+4) Now start bochs from the command line.
 "
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110211/6cf6314c/attachment.html>


More information about the macports-changes mailing list