Skip to content

Commit

Permalink
bochs, x86 emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Safiullin committed May 20, 1998
1 parent 71c6432 commit 28269b8
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 0 deletions.
56 changes: 56 additions & 0 deletions emulators/bochs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# New ports collection makefile for: bochs
# Version required: 980513a
# Date created: 20 Apr 1998
# Whom: form
#
# $OpenBSD: Makefile,v 1.1.1.1 1998/05/20 07:11:31 form Exp $
# FreeBSD: Makefile,v 1.9 1998/05/18 23:49:17 alex Exp
#

VGABIOS= VGABIOS-elpin-2.00A
BIOS= BIOS-bochs-980331a
DATE= 980513

DISTNAME= bochs-${DATE}a
CATEGORIES= emulators
MASTER_SITES= ftp://ftp.std.com/pub/bochs/

MAINTAINER= [email protected]

GNU_CONFIGURE= YES
CONFIGURE_ARGS= --enable-80386 --enable-memory=16 \
--enable-v8086-mode --enable-paging --enable-vga \
--enable-bochs-bios-hooks --enable-dma-floppy-io \
--enable-processor-ips=200000

WRKSRC= ${WRKDIR}/bochs-${DATE}

RESTRICTED= "Commercial software"
NO_CDROM= ${RESTRICTED}
NO_PACKAGE= ${RESTRICTED}

ONLY_FOR_ARCHS= i386

GZIP!= which gzip
MKFONTDIR!= which mkfontdir

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bochs ${PREFIX}/bin
-@${MKDIR} ${PREFIX}/lib/bochs
${INSTALL_DATA} ${WRKSRC}/.bochsrc ${PREFIX}/lib/bochs/bochsrc.sample
-@${MKDIR} ${PREFIX}/lib/bochs/bios
${INSTALL_DATA} ${WRKSRC}/bios/${VGABIOS} \
${PREFIX}/lib/bochs/bios
${INSTALL_DATA} ${WRKSRC}/bios/${BIOS} \
${PREFIX}/lib/bochs/bios
.if !defined(NOPORTDOCS)
-@${MKDIR} ${PREFIX}/share/doc/bochs
${INSTALL_MAN} ${WRKSRC}/docs-html/LICENSE ${PREFIX}/share/doc/bochs
${INSTALL_MAN} ${WRKSRC}/docs-html/*.html ${PREFIX}/share/doc/bochs
${MKDIR} ${PREFIX}/lib/bochs/fonts
${CP} ${WRKSRC}/font/vga.pcf ${PREFIX}/lib/bochs/fonts
if [ "${GZIP}" ]; then ${GZIP} ${PREFIX}/lib/bochs/fonts/vga.pcf; fi
if [ "${MKFONTDIR}" ]; then ${MKFONTDIR} ${PREFIX}/lib/bochs/fonts; fi
.endif

.include <bsd.port.mk>
1 change: 1 addition & 0 deletions emulators/bochs/files/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MD5 (bochs-980513a.tar.gz) = d858055d376aa5ce378cd4a3649f602f
27 changes: 27 additions & 0 deletions emulators/bochs/patches/patch-aa
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
*** .bochsrc.orig Sun Jan 25 17:57:25 1998
--- .bochsrc Sun Jan 25 17:58:13 1998
***************
*** 20,30 ****
#floppya: 1_44=../1.44.yodlowsk
#floppya: 1_2=../1.2
#floppyb: 1_44=../1.680
! vgaromimage: bios/VGABIOS-elpin-2.00A
! romimage: bios/BIOS-bochs-980331a
#romimage: bios/rombios.bin
! #log: /dev/null
! log: ./bochs.out
vga_update_interval: 300000 #microseconds
keyboard_serial_delay: 200 #microseconds
floppy_command_delay: 500 #microseconds
--- 20,30 ----
#floppya: 1_44=../1.44.yodlowsk
#floppya: 1_2=../1.2
#floppyb: 1_44=../1.680
! vgaromimage: /usr/local/lib/bochs/bios/VGABIOS-elpin-2.00A
! romimage: /usr/local/lib/bochs/bios/BIOS-bochs-980331a
#romimage: bios/rombios.bin
! log: /dev/null
! #log: ./bochs.out
vga_update_interval: 300000 #microseconds
keyboard_serial_delay: 200 #microseconds
floppy_command_delay: 500 #microseconds
1 change: 1 addition & 0 deletions emulators/bochs/pkg/COMMENT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Intel 80386 CPU emulator.
3 changes: 3 additions & 0 deletions emulators/bochs/pkg/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bochs is a portable x86 PC emulation software package that emulates
enough of the x86 CPU, related AT hardware, and BIOS to run DOS,
Windows '95, Minix 2.0, and other OS's, all on your workstation.
3 changes: 3 additions & 0 deletions emulators/bochs/pkg/MESSAGE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bochs requires a .bochsrc file to be present in either your current
directory or your home directory before starting. A sample of the
.bochsrc file can be found in /usr/local/lib/bochs/bochsrc.sample.
30 changes: 30 additions & 0 deletions emulators/bochs/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
bin/bochs
lib/bochs/bios/VGABIOS-elpin-2.00A
lib/bochs/bios/BIOS-bochs-980331a
lib/bochs/bochsrc.sample
@dirrm lib/bochs/bios
@unexec rm -f %D/lib/bochs/fonts/fonts.{alias,dir} %D/lib/bochs/fonts/vga.pcf.*
@dirrm lib/bochs/fonts
@dirrm lib/bochs
share/doc/bochs/LICENSE
share/doc/bochs/3rdparty.license.html
share/doc/bochs/DOS.html
share/doc/bochs/Linux.html
share/doc/bochs/Minix.html
share/doc/bochs/OldWindows95.html
share/doc/bochs/Windows31.html
share/doc/bochs/Windows95.html
share/doc/bochs/changelog.html
share/doc/bochs/company.html
share/doc/bochs/construction.html
share/doc/bochs/debugger.html
share/doc/bochs/developers.html
share/doc/bochs/drawing_board.html
share/doc/bochs/features.html
share/doc/bochs/index.html
share/doc/bochs/install.html
share/doc/bochs/jbochs.html
share/doc/bochs/licensing.html
share/doc/bochs/mtools.html
share/doc/bochs/whatisbochs.html
@dirrm share/doc/bochs

0 comments on commit 28269b8

Please sign in to comment.