Bochs version 2.3.7 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 2.3.7

      View the most recent changes for the bochs port at: bochs.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for bochs.
      The raw portfile for bochs 2.3.7 is located here:
      http://bochs.darwinports.com/dports/emulators/bochs/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/bochs


      The bochs Portfile 55327 2009-08-09 06:27:42Z ryandesign macports.org $

      PortSystem 1.0

      Name: bochs
      Version: 2.3.7
      Category: emulators
      Maintainers: nomaintainer
      Description: cross platform ia-32 emulator
      Long Description: Bochs is a highly portable open source IA-32 (x86) PC emulator written in C++, that runs on most popular platforms. It emulates the Intel x86 CPU, common I/O devices, and a custom BIOS.

      Platform: darwin
      Homepage: http://bochs.sourceforge.net/
      Master Sites: sourceforge
      Checksums: md5 a2e5f922505bf16cabd36bb9d571a2c4

      Patch Files: patch-.bochsrc.diff

      depends_run port:wget

      configure.args --exec-prefix=${prefix} --bindir=${prefix}/bin --mandir=${prefix}/share/man --enable-all-optimizations --enable-sb16=osx --enable-vbe --enable-cdrom

      Variant: smp description {Enable symmetric multi-processor support} {
      configure.args-append --enable-smp --enable-cpu-level=6
      }

      pre-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/bin
      xinstall -m 755 -d ${destroot}${prefix}/share/bochs
      xinstall -m 755 -d ${destroot}${applications_dir}
      }

      post-destroot {
      file copy ${worksrcpath}/bochs.app ${destroot}${prefix}/share/bochs
      system "ln -s ${prefix}/share/bochs/bochs.app ${destroot}${applications_dir}/bochs.app"
      xinstall -m 755 ${worksrcpath}/bochs ${destroot}${prefix}/bin
      xinstall -m 755 ${worksrcpath}/bximage ${destroot}${prefix}/bin
      xinstall -m 755 ${worksrcpath}/bxcommit ${destroot}${prefix}/bin
      reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" ${destroot}${prefix}/share/bochs/bochsrc-sample.txt
      }

      post-activate {
      ui_msg "\n

      **** 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

      2) Create a disk image for the emulator.
      -cd ${prefix}/share/bochs
      -sudo bximage (prompts will guide you)
      -sudo chmod 777

      3) 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)
      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. \n"
      }

      platform darwin 10 {
      configure.build_arch i386
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/bochs
      % sudo port install bochs
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching bochs
      ---> Verifying checksum for bochs
      ---> Extracting bochs
      ---> Configuring bochs
      ---> Building bochs with target all
      ---> Staging bochs into destroot
      ---> Installing bochs
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using bochs with these commands:
      %  man bochs
      % apropos bochs
      % which bochs
      % locate bochs

     Where to find more information:

    Darwin Ports



    Lightbox this page.