Skip to content
Permalink
Browse files

untested bochs port. with a bit of cleanup this could be made freebsd

friendly as well...

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@1028 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jean-Pierre Mouilleseaux
Jean-Pierre Mouilleseaux committed Oct 10, 2002
1 parent f4e8380 commit 3e7b263520b9c8275e67626e513fd15f00799ff3
Showing with 143 additions and 0 deletions.
  1. +39 −0 emulators/bochs/Portfile
  2. +82 −0 emulators/bochs/contents
  3. +11 −0 emulators/bochs/files/patch-Makefile
  4. +11 −0 emulators/bochs/files/patch-cdrom_osx
@@ -0,0 +1,39 @@
PortSystem 1.0
name bochs
version 1.4.1
categories emulators
maintainers jpm@opendarwin.org
description cross platform ia-32 emulator
platforms darwin
master_sites http://unc.dl.sourceforge.net/sourceforge/bochs/ \
http://telia.dl.sourceforge.net/sourceforge/bochs/ \
http://easynews.dl.sourceforge.net/sourceforge/bochs/ \
http://umn.dl.sourceforge.net/sourceforge/bochs/ \
http://twtelecom.dl.sourceforge.net/sourceforge/bochs/ \
http://belnet.dl.sourceforge.net/sourceforge/bochs/ \
http://switch.dl.sourceforge.net/sourceforge/bochs/ \
http://cesnet.dl.sourceforge.net/sourceforge/bochs/
checksums md5 12e591b5cec2e0051e18605483f64678
patchfiles patch-cdrom_osx
post-patch {
set path "${portpath}/${workdir}/${worksrcdir}"
set data_dir "${prefix}/bochs"

reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bochs-dlx.1"
reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bochs.1"
reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bochsrc.1"
reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bximage.1"

reinplace "s|\@VERSION\@|${portversion}|g" "${path}/doc/man/bochs-dlx.1"
reinplace "s|\@VERSION\@|${portversion}|g" "${path}/doc/man/bochs.1"
reinplace "s|\@VERSION\@|${portversion}|g" "${path}/doc/man/bochsrc.1"
reinplace "s|\@VERSION\@|${portversion}|g" "${path}/doc/man/bximage.1"

reinplace "s|vgaromimage: bios/|vgaromimage: ${data_dir}/${portversion}/|g" "${path}/doc/man/bochsrc.1"
reinplace "s|romimage: file=bios/|romimage: file=${data_dir}/${portversion}/|g" "${path}/doc/man/bochsrc.1"

reinplace "s|vgaromimage: bios/|vgaromimage: ${data_dir}/${portversion}/|g" "${path}/.bochsrc"
reinplace "s|romimage: file=bios/|romimage: file=${data_dir}/${portversion}/|g" "${path}/.bochsrc"
}
depends_run bin:wget:wget
include contents
@@ -0,0 +1,82 @@
contents {
bin/bochs
bin/bochs-dlx
bin/bochs-docs
bin/bximage
bochs/1.4.1/BIOS-bochs-2-processors
bochs/1.4.1/BIOS-bochs-4-processors
bochs/1.4.1/BIOS-bochs-latest
bochs/1.4.1/CHANGES
bochs/1.4.1/COPYING
bochs/1.4.1/DOC-linux.html
bochs/1.4.1/README
bochs/1.4.1/VGABIOS-elpin-2.40
bochs/1.4.1/VGABIOS-elpin-LICENSE
bochs/1.4.1/VGABIOS-lgpl-0.3a
bochs/1.4.1/VGABIOS-lgpl-README
bochs/1.4.1/bochs
bochs/1.4.1/bochsrc-sample.txt
bochs/1.4.1/bximage
bochs/1.4.1/vga.pcf
bochs/1.4.1/docs-html/00README
bochs/1.4.1/docs-html/3rdparty.license.html
bochs/1.4.1/docs-html/Linux.html
bochs/1.4.1/docs-html/Minix.html
bochs/1.4.1/docs-html/OldWindows95.html
bochs/1.4.1/docs-html/Windows95.html
bochs/1.4.1/docs-html/changelog.html
bochs/1.4.1/docs-html/codingguidelines.html
bochs/1.4.1/docs-html/configure.html
bochs/1.4.1/docs-html/construction.html
bochs/1.4.1/docs-html/cosimulation.html
bochs/1.4.1/docs-html/cvs-status.html
bochs/1.4.1/docs-html/cvs-structure.txt
bochs/1.4.1/docs-html/debugger.html
bochs/1.4.1/docs-html/developers.html
bochs/1.4.1/docs-html/faq.html
bochs/1.4.1/docs-html/features.html
bochs/1.4.1/docs-html/fpu.html
bochs/1.4.1/docs-html/guestNT.html
bochs/1.4.1/docs-html/index.html
bochs/1.4.1/docs-html/install.html
bochs/1.4.1/docs-html/instrumentation.html
bochs/1.4.1/docs-html/iodebug.html
bochs/1.4.1/docs-html/mtools.html
bochs/1.4.1/docs-html/random.txt
bochs/1.4.1/docs-html/release-prep.txt
bochs/1.4.1/docs-html/smp-simulation.html
bochs/1.4.1/docs-html/sound.html
bochs/1.4.1/docs-html/undercon.gif
bochs/1.4.1/docs-html/whatisbochs.html
bochs/1.4.1/docs-html/win32.html
bochs/1.4.1/docs-html/CVS/Entries
bochs/1.4.1/docs-html/CVS/Repository
bochs/1.4.1/docs-html/CVS/Root
bochs/1.4.1/docs-html/CVS/Tag
bochs/1.4.1/docs-html/CVS/
bochs/1.4.1/docs-html/
bochs/1.4.1/keymaps/convertmap.pl
bochs/1.4.1/keymaps/x11-pc-de.map
bochs/1.4.1/keymaps/x11-pc-es.map
bochs/1.4.1/keymaps/x11-pc-fr.map
bochs/1.4.1/keymaps/x11-pc-it.map
bochs/1.4.1/keymaps/x11-pc-us.map
bochs/1.4.1/keymaps/CVS/Entries
bochs/1.4.1/keymaps/CVS/Repository
bochs/1.4.1/keymaps/CVS/Root
bochs/1.4.1/keymaps/CVS/Tag
bochs/1.4.1/keymaps/CVS/
bochs/1.4.1/keymaps/
bochs/1.4.1/
bochs/dlxlinux/README
bochs/dlxlinux/bochsrc.txt
bochs/dlxlinux/hd10meg.img.gz
bochs/dlxlinux/testform.txt
bochs/dlxlinux/
bochs/latest
bochs/
man/man1/bochs-dlx.1
man/man1/bochs.1
man/man1/bochsrc.1
man/man1/bximage.1
}
@@ -0,0 +1,11 @@
--- Makefile.in Sun Jun 23 18:19:41 2002
+++ Makefile_monkey.in Wed Oct 2 17:03:47 2002
@@ -52,7 +52,7 @@
DLXLINUX_TAR_URL=http://bochs.sourceforge.net/guestos/$(DLXLINUX_TAR)
DLXLINUX_ROMFILE=BIOS-bochs-latest
GUNZIP=gunzip
-WGET=wget
+WGET=curl -O
SED=sed
MKDIR=mkdir
RMDIR=rmdir
@@ -0,0 +1,11 @@
--- iodev/cdrom_osx.cc Sun Jun 23 22:19:44 2002
+++ iodev/cdrom_osx_monkey.cc Wed Oct 2 16:42:03 2002
@@ -312,7 +312,7 @@
}

bool
-cdrom_interface::insert_cdrom()
+cdrom_interface::insert_cdrom(char *)
{

mach_port_t masterPort = NULL;

0 comments on commit 3e7b263

Please sign in to comment.
You can’t perform that action at this time.