View | Details | Raw Unified | Return to bug 178586
Collapse All | Expand All

(-)emulators/bochs/Makefile (-22 / +43 lines)
Lines 3-27 Link Here
3
3
4
PORTNAME=	bochs
4
PORTNAME=	bochs
5
PORTVERSION=	2.6.1
5
PORTVERSION=	2.6.1
6
PORTREVISION=	1
6
PORTEPOCH=	2
7
PORTEPOCH=	2
7
CATEGORIES=	emulators
8
CATEGORIES=	emulators
8
MASTER_SITES=	SF
9
MASTER_SITES=	SF
9
10
10
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	An IA-32 (x86) PC emulator that runs DOS, Win 95, and more
12
COMMENT=	IA-32 (x86) PC emulator that runs DOS, Win 95, and more
12
13
13
LICENSE=	LGPL21
14
LICENSE=	LGPL21
14
15
15
OPTIONS_DEFINE=	A20_PIN ALIGN_CHECK ASSERT_CHECK \
16
OPTIONS_DEFINE=	A20_PIN ALIGN_CHECK ASSERT_CHECK AVX \
16
		CDROM CHAINING CLGD54XX CONF_MSRS CPP_SUFX \
17
		CDROM CHAINING CLGD54XX CONF_MSRS CPP_SUFX \
17
		DISASM DOCS \
18
		DISASM DOCS \
18
		E1000 ES1370 FAST_FUNCCALL FPU \
19
		E1000 ES1370 FPU \
19
		GAMEPORT IDLE_HACK IODEBUG \
20
		GAMEPORT IDLE_HACK IODEBUG \
20
		LARGE_RAMFILE LOGGING LONG_PHY_ADDR \
21
		LARGE_RAMFILE LOGGING LONG_PHY_ADDR \
21
		MWAIT NE2000 OPTIMIZATIONS PCI PLUGINS PNIC \
22
		MWAIT NE2000 OPTIMIZATIONS PCI PLUGINS PNIC \
22
		RAW_SERIAL READLINE REPEAT_SPEED RFB \
23
		RAW_SERIAL READLINE REPEAT_SPEED RFB \
23
		SB16 SDL SHOW_IPS SMP SVGA SVM TERM USB USB_OHCI USB_XHCI \
24
		SB16 SDL SHOW_IPS SMP SVGALIB SVM TERM USB USB_OHCI USB_XHCI \
24
		VMX VOODOO WXGTK X11 X86_64 XPM
25
		VMX VOODOO WXGTK X11 X86_64 XPM
26
OPTIONS_DEFINE_i386=	FAST_FUNCCALL
25
OPTIONS_RADIO=	DEBUG
27
OPTIONS_RADIO=	DEBUG
26
OPTIONS_RADIO_DEBUG=	DEBUGGER GDB_STUB
28
OPTIONS_RADIO_DEBUG=	DEBUGGER GDB_STUB
27
OPTIONS_DEFAULT=A20_PIN ALIGN_CHECK CDROM CONF_MSRS DISASM FPU LOGGING \
29
OPTIONS_DEFAULT=A20_PIN ALIGN_CHECK CDROM CONF_MSRS DISASM FPU LOGGING \
Lines 30-35 Link Here
30
A20_PIN_DESC=	Enable support for A20 pin
32
A20_PIN_DESC=	Enable support for A20 pin
31
ALIGN_CHECK_DESC=	Enable alignment check support
33
ALIGN_CHECK_DESC=	Enable alignment check support
32
ASSERT_CHECK_DESC=	Enable BX_ASSERT checks
34
ASSERT_CHECK_DESC=	Enable BX_ASSERT checks
35
AVX_DESC=	Enable AVX instructions support
33
CDROM_DESC=	Enable CDROM support
36
CDROM_DESC=	Enable CDROM support
34
CHAINING_DESC=	Enable handlers-chaining emulation speedups
37
CHAINING_DESC=	Enable handlers-chaining emulation speedups
35
CLGD54XX_DESC=	Enable Cirrus Logic GD54xx video card
38
CLGD54XX_DESC=	Enable Cirrus Logic GD54xx video card
Lines 51-59 Link Here
51
LOGGING_DESC=	Enable logging
54
LOGGING_DESC=	Enable logging
52
LONG_PHY_ADDR_DESC=	Enable support for physical address >= 32bit
55
LONG_PHY_ADDR_DESC=	Enable support for physical address >= 32bit
53
MWAIT_DESC=	Enable experimental MONITOR/MWAIT support
56
MWAIT_DESC=	Enable experimental MONITOR/MWAIT support
54
NE2000_DESC=	Enable limited ne2000 support
57
NE2000_DESC=	Enable ne2000 support
55
OPTIMIZATIONS_DESC=	Enable all safe speed optimizations
58
OPTIMIZATIONS_DESC=	Enable all safe speed optimizations
56
PCI_DESC=	Enable limited i440FX PCI support
59
PCI_DESC=	Enable i440FX PCI support
57
PLUGINS_DESC=	Enable building dynamic loadable plugins
60
PLUGINS_DESC=	Enable building dynamic loadable plugins
58
PNIC_DESC=	Enable PCI pseudo NIC (network card) support
61
PNIC_DESC=	Enable PCI pseudo NIC (network card) support
59
RAW_SERIAL_DESC=	Use raw serial port access
62
RAW_SERIAL_DESC=	Use raw serial port access
Lines 61-82 Link Here
61
REPEAT_SPEED_DESC=	Enable repeated IO and mem copy speedups
64
REPEAT_SPEED_DESC=	Enable repeated IO and mem copy speedups
62
RFB_DESC=	Enable VNC server support in display
65
RFB_DESC=	Enable VNC server support in display
63
SB16_DESC=	Enable Sound Blaster 16 emulation
66
SB16_DESC=	Enable Sound Blaster 16 emulation
64
SDL_DESC=	Enable SDL display interface
65
SHOW_IPS_DESC=	Enable logging of measured IPS
67
SHOW_IPS_DESC=	Enable logging of measured IPS
66
SMP_DESC=	Enable SMP simulation support (CPU level 6)
68
SMP_DESC=	Enable SMP simulation support (CPU level 6)
67
SVGA_DESC=	Enable SVGAlib support
68
SVM_DESC=	Enable SVM (AMD: secure virtual machine) emulation
69
SVM_DESC=	Enable SVM (AMD: secure virtual machine) emulation
69
TERM_DESC=	Use text only, console based interface
70
TERM_DESC=	Use text only, console based interface
70
USB_DESC=	Enable limited USB UHCI support
71
USB_DESC=	Enable USB UHCI support
71
USB_OHCI_DESC=	Enable limited USB OHCI support
72
USB_OHCI_DESC=	Enable USB OHCI support
72
USB_XHCI_DESC=	Enable limited USB xHCI support
73
USB_XHCI_DESC=	Enable experimental USB xHCI support
73
VMX_DESC=	Enable Virtialization extensions
74
VMX_DESC=	Enable Virtialization extensions
74
VOODOO_DESC=	Enable 3dfx Voodoo Graphics emulation
75
VOODOO_DESC=	Enable 3dfx Voodoo Graphics emulation
75
X86_64_DESC=	Enable AMD x86-64 support
76
X86_64_DESC=	Enable AMD x86-64 support
76
XPM_DESC=	Enable XPM library support
77
77
78
USE_GMAKE=	yes
78
USE_GMAKE=	yes
79
USE_AUTOTOOLS=	libtool
79
USE_AUTOTOOLS=	libtool
80
CONFIGURE_ENV=	ac_cv_header_alsa_asoundlib_h=no
80
CONFIGURE_ARGS=	--disable-docbook --disable-instrumentation
81
CONFIGURE_ARGS=	--disable-docbook --disable-instrumentation
81
MAKE_JOBS_SAFE=	yes
82
MAKE_JOBS_SAFE=	yes
82
83
Lines 115-120 Link Here
115
CONFIGURE_ARGS+=--disable-assert-checks
116
CONFIGURE_ARGS+=--disable-assert-checks
116
.endif
117
.endif
117
118
119
.if ${PORT_OPTIONS:MAVX}
120
CONFIGURE_ARGS+=--enable-avx
121
.else
122
CONFIGURE_ARGS+=--disable-avx
123
.endif
124
118
.if ${PORT_OPTIONS:MCDROM}
125
.if ${PORT_OPTIONS:MCDROM}
119
CONFIGURE_ARGS+=--enable-cdrom
126
CONFIGURE_ARGS+=--enable-cdrom
120
.else
127
.else
Lines 311-317 Link Here
311
WITH_CPU_LEVEL=	6
318
WITH_CPU_LEVEL=	6
312
.endif
319
.endif
313
320
314
.if ${PORT_OPTIONS:MSVGA}
321
.if ${PORT_OPTIONS:MSVGALIB}
315
LIB_DEPENDS+=	vga:${PORTSDIR}/graphics/svgalib
322
LIB_DEPENDS+=	vga:${PORTSDIR}/graphics/svgalib
316
CONFIGURE_ARGS+=--with-svga
323
CONFIGURE_ARGS+=--with-svga
317
.else
324
.else
Lines 348-358 Link Here
348
CONFIGURE_ARGS+=--disable-usb-xhci
355
CONFIGURE_ARGS+=--disable-usb-xhci
349
.endif
356
.endif
350
357
351
.if ${PORT_OPTIONS:MVMX}
358
.if ${PORT_OPTIONS:MVMX} && ${PORT_OPTIONS:MX86_64}
352
CONFIGURE_ARGS+=--enable-vmx
359
CONFIGURE_ARGS+=--enable-vmx=2
360
WITH_CPU_LEVEL=	6
361
.endif
362
363
.if ${PORT_OPTIONS:MVMX} && empty(PORT_OPTIONS:MX86_64)
364
CONFIGURE_ARGS+=--enable-vmx=1
353
WITH_CPU_LEVEL=	6
365
WITH_CPU_LEVEL=	6
354
.else
355
CONFIGURE_ARGS+=--disable-vmx
356
.endif
366
.endif
357
367
358
.if ${PORT_OPTIONS:MVOODOO}
368
.if ${PORT_OPTIONS:MVOODOO}
Lines 394-412 Link Here
394
CONFIGURE_ARGS+=--enable-cpu-level=${WITH_CPU_LEVEL}
404
CONFIGURE_ARGS+=--enable-cpu-level=${WITH_CPU_LEVEL}
395
.endif
405
.endif
396
406
397
.if ${PORT_OPTIONS:MSB16} || ${PORT_OPTIONS:MES1370}
398
LIB_DEPENDS+=	asound:${PORTSDIR}/audio/alsa-lib
399
CONFIGURE_ENV+=	SOUND_LINK_OPTS="-L${LOCALBASE}/lib"
400
.endif
401
402
.if ${PORT_OPTIONS:MGDB_STUB} && ${PORT_OPTIONS:MSMP}
407
.if ${PORT_OPTIONS:MGDB_STUB} && ${PORT_OPTIONS:MSMP}
403
IGNORE=		GDB_STUB is incompatible with multiprocessor
408
IGNORE=		GDB_STUB is incompatible with multiprocessor
404
.endif
409
.endif
405
410
411
.if empty(PORT_OPTIONS:MGAMEPORT) && ${PORT_OPTIONS:MES1370}
412
IGNORE=		ES1370 soundcard support requires GAMEPORT support
413
.endif
414
415
.if empty(PORT_OPTIONS:MPCI) && ${PORT_OPTIONS:MES1370}
416
IGNORE=		ES1370 soundcard support requires PCI support
417
.endif
418
406
.if empty(PORT_OPTIONS:MPCI) && ${PORT_OPTIONS:MVOODOO}
419
.if empty(PORT_OPTIONS:MPCI) && ${PORT_OPTIONS:MVOODOO}
407
IGNORE=		3dfx Voodoo Graphics emulation requires PCI support
420
IGNORE=		3dfx Voodoo Graphics emulation requires PCI support
408
.endif
421
.endif
409
422
423
.if empty(PORT_OPTIONS:MX86_64) && ${PORT_OPTIONS:MAVX}
424
IGNORE=		AVX instructions support requires X86-64 support
425
.endif
426
427
.if empty(PORT_OPTIONS:MX86_64) && ${PORT_OPTIONS:MSVM}
428
IGNORE=		SVM emulation requires X86-64 support
429
.endif
430
410
pre-everything::
431
pre-everything::
411
.if !defined(WITH_CPU_LEVEL)
432
.if !defined(WITH_CPU_LEVEL)
412
	@${ECHO_CMD}
433
	@${ECHO_CMD}

Return to bug 178586