ports/164156: Update port: emulators/bochs to 2.5.1

KATO Tsuguru tkato432 at yahoo.com
Sun Jan 15 18:10:11 UTC 2012


>Number:         164156
>Category:       ports
>Synopsis:       Update port: emulators/bochs to 2.5.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 15 18:10:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Update to version 2.5.1

Remove file:
files/patch-iodev::cdrom.cc

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/emulators/bochs/Makefile emulators/bochs/Makefile
--- /usr/ports/emulators/bochs/Makefile	2011-09-24 13:40:21.000000000 +0900
+++ emulators/bochs/Makefile	2012-01-15 05:27:18.000000000 +0900
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	bochs
-PORTVERSION=	2.4.6
-PORTREVISION=	1
+PORTVERSION=	2.5.1
 PORTEPOCH=	2
 CATEGORIES=	emulators
 MASTER_SITES=	SF
@@ -15,31 +14,29 @@
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	An IA-32 (x86) PC emulator that runs DOS, Win 95, and more
 
-LIB_DEPENDS=	asound.2:${PORTSDIR}/audio/alsa-lib
-
-USE_GMAKE=	yes
-USE_AUTOTOOLS=	libtool
-CONFIGURE_ARGS=	--disable-docbook
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 OPTIONS=	A20_PIN "Enable support for A20 pin" on \
-		ACPI "Enable ACPI emulation" off \
 		ALIGN_CHECK "Enable alignment check support" on \
 		ASSERT_CHECK "Enable BX_ASSERT checks" off \
 		CDROM "Enable CDROM support" on \
+		CHAINING "Enable handlers-chaining emulation speedups" off \
 		CLGD54XX "Enable Cirrus Logic GD54xx video card" off \
 		CONF_MSRS "Enable configurable MSR registers support" on \
 		CPP_SUFX "Use .cpp as C++ suffix" off \
 		DEBUGGER "Enable debugger support" off \
 		DEBUGGER_X86 "Enable x86 hardware debugger" off \
-		DISASM "Enable disassemler support " on \
+		DISASM "Enable disassemler support" on \
+		ES1370 "Enable ES1370 soundcard support" off \
 		FAST_FUNCCALL "Enable fast function calls support (x86 only)" off \
 		FPU "Enable FPU emulator" on \
 		GAMEPORT "Enable standard PC gameport support" off \
 		GDB_STUB "Enable GDB stub support" off \
-		HS_ASMS "Enable support for host specific inline asms" off \
 		IDLE_HACK "Keep Bochs from using all CPU time" off \
 		INSTRUMENT "Enable support for instrumentation" off \
 		IODEBUG "Enable I/O interface to debugger" off \
+		LARGE_RAMFILE "Enable large ramfile support" off \
 		LOGGING "Enable logging" on \
 		LONG_PHY_ADDR "Enable support for physical address >= 32bit" off \
 		MISALIGNEDSSE "Enable misaligned SSE support" off \
@@ -58,18 +55,21 @@
 		SHOW_IPS "Enable logging of measured IPS" off \
 		SMP "Enable SMP simulation support (CPU level 6)" off \
 		SVGA "Enable SVGAlib support" off \
-		TCACHE "Enable trace cache" on \
 		TERM "Use text only, console based interface" off \
 		USB "Enable limited USB UHCI support" off \
 		USB_OHCI "Enable limited USB OHCI support" off \
-		VBE "Enable VGA BIOS Extensions" on \
+		USB_XHCI "Enable limited USB xHCI support" off \
 		VMX "Enable Virtialization extensions" off \
 		WX "Use WxWidgets display interface" off \
 		X11 "Use X11 display interface" on \
-		X2APIC "Enable support for X2APIC" off \
 		X86_64 "Enable AMD x86-64 support" off \
 		XPM "Enable XPM library support" off
 
+USE_GMAKE=	yes
+USE_AUTOTOOLS=	libtool
+CONFIGURE_ARGS=	--disable-docbook
+MAKE_JOBS_SAFE=	yes
+
 CFLAGS+=	-fno-exceptions -fomit-frame-pointer ${CPPFLAGS}
 CXXFLAGS+=	-fno-rtti
 CPPFLAGS+=	-I${LOCALBASE}/include
@@ -81,7 +81,7 @@
 
 SUB_FILES=	pkg-message
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if defined(WITHOUT_TERM) && defined(WITHOUT_WX) && defined(WITHOUT_X11)
 CONFIGURE_ARGS+=--with-nogui
@@ -93,12 +93,6 @@
 CONFIGURE_ARGS+=--enable-a20-pin
 .endif
 
-.if defined(WITH_ACPI)
-CONFIGURE_ARGS+=--enable-acpi
-.else
-CONFIGURE_ARGS+=--disable-acpi
-.endif
-
 .if !defined(WITH_ALIGN_CHECK)
 CONFIGURE_ARGS+=--disable-alignment-check
 .else
@@ -117,6 +111,12 @@
 CONFIGURE_ARGS+=--enable-cdrom
 .endif
 
+.if defined(WITH_CHAINING)
+CONFIGURE_ARGS+=--enable-handlers-chaining
+.else
+CONFIGURE_ARGS+=--disable-handlers-chaining
+.endif
+
 .if defined(WITH_CLGD54XX)
 CONFIGURE_ARGS+=--enable-clgd54xx
 .else
@@ -177,12 +177,6 @@
 CONFIGURE_ARGS+=--disable-gdb-stub
 .endif
 
-.if defined(WITH_HS_ASMS)
-CONFIGURE_ARGS+=--enable-host-specific-asms
-.else
-CONFIGURE_ARGS+=--disable-host-specific-asms
-.endif
-
 .if defined(WITH_IDLE_HACK)
 CONFIGURE_ARGS+=--enable-idle-hack
 .else
@@ -190,6 +184,7 @@
 .endif
 
 .if defined(WITH_INSTRUMENT)
+BROKEN=		currently unbuildable
 CONFIGURE_ARGS+=--enable-instrumentation
 .else
 CONFIGURE_ARGS+=--disable-instrumentation
@@ -201,6 +196,12 @@
 CONFIGURE_ARGS+=--disable-iodebug
 .endif
 
+.if defined(WITH_LARGE_RAMFILE)
+CONFIGURE_ARGS+=--enable-large-ramfile
+.else
+CONFIGURE_ARGS+=--disable-large-ramfile
+.endif
+
 .if !defined(WITH_LOGGING)
 CONFIGURE_ARGS+=--disable-logging
 .else
@@ -280,7 +281,7 @@
 .endif
 
 .if defined(WITH_SB16)
-CONFIGURE_ARGS+=--enable-sb16=freebsd
+CONFIGURE_ARGS+=--enable-sb16
 .endif
 
 .if defined(WITH_SDL)
@@ -308,12 +309,6 @@
 CONFIGURE_ARGS+=--with-term
 .endif
 
-.if !defined(WITH_TCACHE)
-CONFIGURE_ARGS+=--disable-trace-cache
-.else
-CONFIGURE_ARGS+=--enable-trace-cache
-.endif
-
 .if defined(WITH_USB)
 CONFIGURE_ARGS+=--enable-usb
 .else
@@ -326,10 +321,10 @@
 CONFIGURE_ARGS+=--disable-usb-ohci
 .endif
 
-.if !defined(WITH_VBE)
-CONFIGURE_ARGS+=--disable-vbe
+.if defined(WITH_USB_XHCI)
+CONFIGURE_ARGS+=--enable-usb-xhci
 .else
-CONFIGURE_ARGS+=--enable-vbe
+CONFIGURE_ARGS+=--disable-usb-xhci
 .endif
 
 .if defined(WITH_VMX)
@@ -352,12 +347,6 @@
 CONFIGURE_ARGS+=--with-x11
 .endif
 
-.if defined(WITH_X2APIC)
-CONFIGURE_ARGS+=--enable-x2apic
-.else
-CONFIGURE_ARGS+=--disable-x2apic
-.endif
-
 .if defined(WITH_X86_64)
 CONFIGURE_ARGS+=--enable-x86-64
 .else
@@ -378,6 +367,19 @@
 CONFIGURE_ARGS+=--enable-cpu-level=${WITH_CPU_LEVEL}
 .endif
 
+.if defined(WITH_SB16) || defined(WITH_ES1370)
+LIB_DEPENDS+=	asound.2:${PORTSDIR}/audio/alsa-lib
+CONFIGURE_ENV+=	SOUND_LINK_OPTS="-L${LOCALBASE}/lib"
+.endif
+
+.if defined(WITH_DEBUGGER) && defined(WITH_GDB_STUB)
+IGNORE=		DEBUGGER and GDB_STUB are mutialy exclusive
+.endif
+
+.if defined(WITH_GDB_STUB) && defined(WITH_SMP)
+IGNORE=		GDB_STUB is incompatible with multiprocessor
+.endif
+
 pre-everything::
 	@${ECHO_CMD}
 .if !defined(WITH_CPU_LEVEL)
@@ -403,7 +405,7 @@
 		 s|/usr/local/share/doc/bochs|${DOCSDIR}|' \
 		 ${WRKSRC}/doc/docbook/user/user.dbk ${WRKSRC}/doc/man/*.[15]
 	@${REINPLACE_CMD} -Ee 's|/usr/(include/vga\.h)|${LOCALBASE}/\1|' \
-		${WRKSRC}/gui/svga.cc
+		 ${WRKSRC}/gui/svga.cc
 	@${REINPLACE_CMD} -Ee \
 		's|(^LOCAL_CXXFLAGS.+=)|\1 @CPPFLAGS@|; \
 		 s|(-lvgagl)$$|\1 @LDFLAGS@|' \
@@ -428,4 +430,4 @@
 .endif
 	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/emulators/bochs/distinfo emulators/bochs/distinfo
--- /usr/ports/emulators/bochs/distinfo	2011-06-25 19:34:37.000000000 +0900
+++ emulators/bochs/distinfo	2012-01-14 22:30:32.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (bochs-2.4.6.tar.gz) = 689dcc5fccfd70c8340a54986f0cb9c2824009ed602718802868333da9ac53b9
-SIZE (bochs-2.4.6.tar.gz) = 4067147
+SHA256 (bochs-2.5.1.tar.gz) = 8d3f2ccd8fc3df2aff7ea370afc521cadd4a4f545faf6b0421013453ce3ea26e
+SIZE (bochs-2.5.1.tar.gz) = 4126651
diff -urN /usr/ports/emulators/bochs/files/patch-iodev::cdrom.cc emulators/bochs/files/patch-iodev::cdrom.cc
--- /usr/ports/emulators/bochs/files/patch-iodev::cdrom.cc	2002-03-12 08:21:06.000000000 +0900
+++ emulators/bochs/files/patch-iodev::cdrom.cc	1970-01-01 09:00:00.000000000 +0900
@@ -1,13 +0,0 @@
-
-$FreeBSD: ports/emulators/bochs/files/patch-iodev::cdrom.cc,v 1.1 2002/03/11 23:21:06 sobomax Exp $
-
---- iodev/cdrom.cc	2002/03/11 23:15:19	1.1
-+++ iodev/cdrom.cc	2002/03/11 23:15:57
-@@ -37,6 +37,7 @@
- #define LOG_THIS /* no SMF tricks here, not needed */
- 
- extern "C" {
-+#include <arpa/inet.h>
- #include <errno.h>
- }
-  
diff -urN /usr/ports/emulators/bochs/pkg-plist emulators/bochs/pkg-plist
--- /usr/ports/emulators/bochs/pkg-plist	2009-05-24 00:19:25.000000000 +0900
+++ emulators/bochs/pkg-plist	2011-11-30 03:18:32.000000000 +0900
@@ -29,8 +29,9 @@
 %%PORTDOCS%%%%DOCSDIR%%/TODO
 %%PORTDOCS%%%%DOCSDIR%%/biossums.txt
 %%PORTDOCS%%%%DOCSDIR%%/bochsrc-sample.txt
+%%PORTDOCS%%%%DOCSDIR%%/cpu_configurability.txt
 %%PORTDOCS%%%%DOCSDIR%%/enh_dbg_user_man.txt
-%%PORTDOCS%%%%DOCSDIR%%/html/cosimulation.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bxdebugger.html
 %%PORTDOCS%%%%DOCSDIR%%/memory.txt
 %%PORTDOCS%%%%DOCSDIR%%/random.txt
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/html
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list