openbsd-ports/emulators/bochs/Makefile

86 lines
2.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.20 2001/05/26 05:52:55 todd 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
COMMENT= "x86 machine simulator"
DISTNAME= bochs-1.2.pre1
CATEGORIES= emulators
2001-03-26 10:58:17 -05:00
NEED_VERSION= 1.364
MASTER_SITES= http://prdownloads.sourceforge.net/bochs/
1998-10-15 00:33:25 -04:00
HOMEPAGE= http://bochs.sourceforge.net/
MAINTAINER= Todd T. Fries <todd@OpenBSD.org>
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
2000-07-18 01:16:58 -04:00
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-vga \
2000-07-18 01:16:58 -04:00
--enable-fpu --enable-cdrom
FLAVORS= debug i386 i486 i686 pci smp net no_x11 term
FLAVOR?=
2000-07-18 01:16:58 -04:00
.if ${FLAVOR:L:Mdebug}
CONFIGURE_ARGS+= --enable-debugger --enable-disasm --enable-x86-debugger
.endif
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+= --with-nogui
.elif ${FLAVOR:L:Mterm}
CONFIGURE_ARGS+= --with-term
.else
CONFIGURE_ARGS+= --with-x11
.endif
.if ${FLAVOR:L:Mi386}
CONFIGURE_ARGS+= --enable-cpu-level="3"
.elif ${FLAVOR:L:Mi486}
CONFIGURE_ARGS+= --enable-cpu-level="4"
.elif ${FLAVOR:L:Mi686}
CONFIGURE_ARGS+= --enable-cpu-leve="6"
.else
CONFIGURE_ARGS+= --enable-cpu-level="5"
.endif
.if ${FLAVOR:L:Mpci}
CONFIGURE_ARGS+= --enable-pci
.endif
.if ${FLAVOR:L:Msmp}
CONFIGURE_ARGS+= --enable-processors=2
.endif
.if ${FLAVOR:L:Mnet}
CONFIGURE_ARGS+= --enable-ne2000
2000-07-18 01:16:58 -04:00
.endif
post-extract:
@rm -f ${WRKSRC}/debug/lexer.c
1998-05-20 03:11:31 -04:00
1998-11-18 06:06:52 -05:00
post-configure:
2000-07-18 01:16:58 -04:00
@sed -e 's@!!PREFIX!!@${PREFIX}@' \
< ${WRKSRC}/.bochsrc > ${WRKSRC}/bochsrc
1998-05-20 03:11:31 -04:00
BIOS = BIOS-bochs-4-processors BIOS-bochs-2-processors
BIOS += BIOS-bochs-2001_0524 BIOS-bochs-2001_0517
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
${INSTALL_PROGRAM} ${WRKBUILD}/bochs ${PREFIX}/bin
cd ${WRKSRC}/bios; ${INSTALL_DATA} ${BIOS} ${PREFIX}/share/bochs/bios
${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
mkfontdir ${PREFIX}/share/bochs/fonts
1998-05-20 03:11:31 -04:00
.include <bsd.port.mk>