Ignore:
Timestamp:
Feb 12, 2011, 1:41:43 AM (9 years ago)
Author:
raimue@…
Message:

emulators/bochs:
Disable sound support and switch to X11 frontend instead of Carbon as the
deprecated APIs do no longer work, see #23938
Handle configuration file in post-activate, adjust notes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/emulators/bochs/Portfile

    r70583 r75891  
    55name                bochs
    66version             2.4.5
     7revision            1
    78categories          emulators
    89platforms           darwin
     
    3233                    --mandir=${prefix}/share/man \
    3334                    --enable-all-optimizations \
    34                     --enable-sb16=osx \
    3535                    --enable-vbe \
    36                     --enable-cdrom
     36                    --enable-cdrom \
     37                    --enable-gdb-stub \
     38                    --with-x11
     39
     40# Disable sound support, see ticket #23938
     41#configure.args-append --enable-sb16=osx
    3742
    3843variant smp description {Enable symmetric multi-processor support} {
     
    4146
    4247post-destroot {
    43     xinstall -d ${destroot}${prefix}/share/bochs
    44     file copy ${worksrcpath}/bochs.app ${destroot}${prefix}/share/bochs
    45     system "ln -s ${prefix}/share/bochs/bochs.app ${destroot}${applications_dir}/bochs.app"
    46     xinstall -W ${worksrcpath} bochs bximage bxcommit ${destroot}${prefix}/bin
    4748    reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" \
    48         ${destroot}${prefix}/share/bochs/bochsrc-sample.txt
     49        ${destroot}${prefix}/share/doc/bochs/bochsrc-sample.txt
     50}
     51
     52post-activate {
     53    if {![file exists ${prefix}/share/bochs/bochsrc.txt]} {
     54        ui_msg "File ${prefix}/share/bochs/bochsrc.txt not found, installing sample configuration file"
     55        xinstall -m 0644 ${prefix}/share/doc/bochs/bochsrc-sample.txt ${prefix}/share/bochs/bochsrc.txt
     56    }
    4957}
    5058
    5159notes "
    52 **** To prepare bochs for use ****
     60To prepare bochs for use:
    5361
    54 1) Rename file bochsrc-sample.txt to bochrc.txt for use.
    55    -cd ${prefix}/share/bochs
    56    -sudo cp bochsrc-sample.txt bochrc.txt
     621) Create a disk image for the emulator.
     63     cd ${prefix}/share/bochs
     64     sudo bximage (prompts will guide you)
     65     sudo chmod 777 <diskimg-name>
    5766
    58 2) Create a disk image for the emulator.
    59    -cd ${prefix}/share/bochs
    60    -sudo bximage (prompts will guide you)
    61    -sudo chmod 777 <diskimg-name>
    62 
    63 3) Remove the current 'ata0-master:' statement in ${prefix}/share/bochs/bochsrc.txt
     672) Remove the current 'ata0-master:' statement in ${prefix}/share/bochs/bochsrc.txt
    6468   and replace it with the 'ata0-master:' string displayed at the end of the bximage
    6569   process.
    6670
    67 4) Format the disk image using FreeDOS (http://bochs.sourceforge.net/diskimages.html)
     713) Format the disk image using FreeDOS (http://bochs.sourceforge.net/diskimages.html)
    6872   according to the bochs documentation. (http://bochs.sourceforge.net/)
    6973
    70 5) Now start bochs using the ${applications_dir}/bochs.app program;
    71    you may also use the bochs command line utility.
     744) Now start bochs from the command line.
    7275"
    7376
Note: See TracChangeset for help on using the changeset viewer.