2002-06-09 12:24:57 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.24 2002/06/09 16:24:57 brad Exp $
|
1999-02-21 23:52:22 -05:00
|
|
|
# $NetBSD: Makefile,v 1.2 1998/09/22 06:11:36 garbled Exp $
|
1998-05-20 03:11:31 -04:00
|
|
|
|
2001-05-26 01:52:55 -04:00
|
|
|
COMMENT= "x86 machine simulator"
|
2002-06-09 12:24:57 -04:00
|
|
|
|
|
|
|
DISTNAME= bochs-1.4
|
1999-10-31 15:22:37 -05:00
|
|
|
CATEGORIES= emulators
|
2002-06-09 12:24:57 -04:00
|
|
|
NEED_VERSION= 1.525
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bochs/}
|
1998-10-15 00:33:25 -04:00
|
|
|
|
2001-05-26 01:52:55 -04:00
|
|
|
HOMEPAGE= http://bochs.sourceforge.net/
|
1999-10-31 15:22:37 -05:00
|
|
|
|
2002-05-08 13:19:36 -04:00
|
|
|
MAINTAINER= Todd T. Fries <todd@openbsd.org>
|
1999-10-31 15:22:37 -05:00
|
|
|
|
2000-07-18 01:16:58 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2000-03-16 17:26:18 -05:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-06-09 12:24:57 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS= --enable-cdrom \
|
|
|
|
--enable-fpu \
|
|
|
|
--enable-ne2000 \
|
|
|
|
--enable-vga
|
1999-10-31 15:22:37 -05:00
|
|
|
|
2002-06-09 12:24:57 -04:00
|
|
|
FLAVORS= debug i386 i486 i686 pci smp no_x11 term
|
2001-03-02 09:51:35 -05:00
|
|
|
FLAVOR?=
|
2000-07-18 01:16:58 -04:00
|
|
|
|
o take over maintainership
o too many changes to mention specifically, but amongst them:
- better error reporting
- openbsd boots, freebsd boots
- new 'term' flavor, I added a textmode interface, the only drawback
is that control-c is intercepted, and you must kill -9 it from
another tty if it doesn't exit normally
- new flavors:
- debugger -> debug (for shortness)
- i386
- pci
- smp
- net (compiles, does not yet provide networking, if anyone
wants to help, I'd be ELATED to have this fixed!)
- no_x11 (made it actually work)
- term (make sure to use 'log: /dev/null' or something else
on the cmdline, otherwise, debugging and the screen will
start getting quite confusing!)
- better error reporting (and no error reporting where it is not
necessary; a typicall boot of cdrom28.fs is a screenful of output now)
- in general, if the hardware reaches an unknown state, fail
gracefully instead of calling exit(1) .. are we trying to work or
are we trying to .. fail? I like working myself.
2001-02-02 11:59:05 -05:00
|
|
|
.if ${FLAVOR:L:Mdebug}
|
|
|
|
CONFIGURE_ARGS+= --enable-debugger --enable-disasm --enable-x86-debugger
|
2001-09-19 16:44:53 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-readline
|
o take over maintainership
o too many changes to mention specifically, but amongst them:
- better error reporting
- openbsd boots, freebsd boots
- new 'term' flavor, I added a textmode interface, the only drawback
is that control-c is intercepted, and you must kill -9 it from
another tty if it doesn't exit normally
- new flavors:
- debugger -> debug (for shortness)
- i386
- pci
- smp
- net (compiles, does not yet provide networking, if anyone
wants to help, I'd be ELATED to have this fixed!)
- no_x11 (made it actually work)
- term (make sure to use 'log: /dev/null' or something else
on the cmdline, otherwise, debugging and the screen will
start getting quite confusing!)
- better error reporting (and no error reporting where it is not
necessary; a typicall boot of cdrom28.fs is a screenful of output now)
- in general, if the hardware reaches an unknown state, fail
gracefully instead of calling exit(1) .. are we trying to work or
are we trying to .. fail? I like working myself.
2001-02-02 11:59:05 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
CONFIGURE_ARGS+= --with-nogui
|
2001-03-02 09:51:35 -05:00
|
|
|
.elif ${FLAVOR:L:Mterm}
|
o take over maintainership
o too many changes to mention specifically, but amongst them:
- better error reporting
- openbsd boots, freebsd boots
- new 'term' flavor, I added a textmode interface, the only drawback
is that control-c is intercepted, and you must kill -9 it from
another tty if it doesn't exit normally
- new flavors:
- debugger -> debug (for shortness)
- i386
- pci
- smp
- net (compiles, does not yet provide networking, if anyone
wants to help, I'd be ELATED to have this fixed!)
- no_x11 (made it actually work)
- term (make sure to use 'log: /dev/null' or something else
on the cmdline, otherwise, debugging and the screen will
start getting quite confusing!)
- better error reporting (and no error reporting where it is not
necessary; a typicall boot of cdrom28.fs is a screenful of output now)
- in general, if the hardware reaches an unknown state, fail
gracefully instead of calling exit(1) .. are we trying to work or
are we trying to .. fail? I like working myself.
2001-02-02 11:59:05 -05:00
|
|
|
CONFIGURE_ARGS+= --with-term
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-x11
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mi386}
|
|
|
|
CONFIGURE_ARGS+= --enable-cpu-level="3"
|
2001-03-02 09:51:35 -05:00
|
|
|
.elif ${FLAVOR:L:Mi486}
|
o take over maintainership
o too many changes to mention specifically, but amongst them:
- better error reporting
- openbsd boots, freebsd boots
- new 'term' flavor, I added a textmode interface, the only drawback
is that control-c is intercepted, and you must kill -9 it from
another tty if it doesn't exit normally
- new flavors:
- debugger -> debug (for shortness)
- i386
- pci
- smp
- net (compiles, does not yet provide networking, if anyone
wants to help, I'd be ELATED to have this fixed!)
- no_x11 (made it actually work)
- term (make sure to use 'log: /dev/null' or something else
on the cmdline, otherwise, debugging and the screen will
start getting quite confusing!)
- better error reporting (and no error reporting where it is not
necessary; a typicall boot of cdrom28.fs is a screenful of output now)
- in general, if the hardware reaches an unknown state, fail
gracefully instead of calling exit(1) .. are we trying to work or
are we trying to .. fail? I like working myself.
2001-02-02 11:59:05 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-cpu-level="4"
|
2001-05-26 01:52:55 -04:00
|
|
|
.elif ${FLAVOR:L:Mi686}
|
|
|
|
CONFIGURE_ARGS+= --enable-cpu-leve="6"
|
2001-03-02 09:51:35 -05:00
|
|
|
.else
|
2001-03-01 17:43:49 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-cpu-level="5"
|
o take over maintainership
o too many changes to mention specifically, but amongst them:
- better error reporting
- openbsd boots, freebsd boots
- new 'term' flavor, I added a textmode interface, the only drawback
is that control-c is intercepted, and you must kill -9 it from
another tty if it doesn't exit normally
- new flavors:
- debugger -> debug (for shortness)
- i386
- pci
- smp
- net (compiles, does not yet provide networking, if anyone
wants to help, I'd be ELATED to have this fixed!)
- no_x11 (made it actually work)
- term (make sure to use 'log: /dev/null' or something else
on the cmdline, otherwise, debugging and the screen will
start getting quite confusing!)
- better error reporting (and no error reporting where it is not
necessary; a typicall boot of cdrom28.fs is a screenful of output now)
- in general, if the hardware reaches an unknown state, fail
gracefully instead of calling exit(1) .. are we trying to work or
are we trying to .. fail? I like working myself.
2001-02-02 11:59:05 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpci}
|
|
|
|
CONFIGURE_ARGS+= --enable-pci
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Msmp}
|
2001-05-26 01:52:55 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-processors=2
|
o take over maintainership
o too many changes to mention specifically, but amongst them:
- better error reporting
- openbsd boots, freebsd boots
- new 'term' flavor, I added a textmode interface, the only drawback
is that control-c is intercepted, and you must kill -9 it from
another tty if it doesn't exit normally
- new flavors:
- debugger -> debug (for shortness)
- i386
- pci
- smp
- net (compiles, does not yet provide networking, if anyone
wants to help, I'd be ELATED to have this fixed!)
- no_x11 (made it actually work)
- term (make sure to use 'log: /dev/null' or something else
on the cmdline, otherwise, debugging and the screen will
start getting quite confusing!)
- better error reporting (and no error reporting where it is not
necessary; a typicall boot of cdrom28.fs is a screenful of output now)
- in general, if the hardware reaches an unknown state, fail
gracefully instead of calling exit(1) .. are we trying to work or
are we trying to .. fail? I like working myself.
2001-02-02 11:59:05 -05:00
|
|
|
.endif
|
|
|
|
|
1998-11-18 06:06:52 -05:00
|
|
|
post-configure:
|
2000-07-18 01:16:58 -04:00
|
|
|
@sed -e 's@!!PREFIX!!@${PREFIX}@' \
|
1999-10-31 15:22:37 -05:00
|
|
|
< ${WRKSRC}/.bochsrc > ${WRKSRC}/bochsrc
|
1998-05-20 03:11:31 -04:00
|
|
|
|
2001-05-26 01:52:55 -04:00
|
|
|
BIOS = BIOS-bochs-4-processors BIOS-bochs-2-processors
|
2001-06-13 12:12:49 -04:00
|
|
|
BIOS += BIOS-bochs-latest
|
2001-05-26 01:52:55 -04:00
|
|
|
BIOS += VGABIOS-elpin-2.40
|
|
|
|
|
1998-05-20 03:11:31 -04:00
|
|
|
do-install:
|
2000-07-18 01:16:58 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/bochs/bios
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/bochs/fonts
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bochs
|
2002-06-09 12:24:57 -04:00
|
|
|
cd ${WRKBUILD}; ${INSTALL_PROGRAM} bochs bximage ${PREFIX}/bin
|
2001-05-26 01:52:55 -04:00
|
|
|
cd ${WRKSRC}/bios; ${INSTALL_DATA} ${BIOS} ${PREFIX}/share/bochs/bios
|
2002-06-09 12:24:57 -04:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${PREFIX}/man/man1
|
1999-10-31 15:22:37 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs-html/*.html ${PREFIX}/share/doc/bochs
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs-html/*.gif ${PREFIX}/share/doc/bochs
|
1998-11-18 06:06:52 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/font/hercules.bdf ${PREFIX}/share/bochs/fonts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/font/vga.bdf ${PREFIX}/share/bochs/fonts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/font/vga.pcf ${PREFIX}/share/bochs/fonts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bochsrc ${PREFIX}/share/bochs
|
2001-06-13 12:12:49 -04:00
|
|
|
${X11BASE}/bin/mkfontdir ${PREFIX}/share/bochs/fonts
|
1998-05-20 03:11:31 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|