Lines 2-8
Link Here
|
2 |
# $FreeBSD: head/emulators/bochs/Makefile 412346 2016-04-01 14:00:51Z mat $ |
2 |
# $FreeBSD: head/emulators/bochs/Makefile 412346 2016-04-01 14:00:51Z mat $ |
3 |
|
3 |
|
4 |
PORTNAME= bochs |
4 |
PORTNAME= bochs |
5 |
PORTVERSION= 2.6.7 |
5 |
PORTVERSION= 2.6.8 |
6 |
PORTEPOCH= 2 |
6 |
PORTEPOCH= 2 |
7 |
CATEGORIES= emulators |
7 |
CATEGORIES= emulators |
8 |
MASTER_SITES= SF |
8 |
MASTER_SITES= SF |
Lines 14-180
Link Here
|
14 |
|
14 |
|
15 |
USES= gmake libtool:keepla pkgconfig |
15 |
USES= gmake libtool:keepla pkgconfig |
16 |
GNU_CONFIGURE= yes |
16 |
GNU_CONFIGURE= yes |
17 |
CONFIGURE_ENV= ac_cv_header_alsa_asoundlib_h=no |
17 |
CONFIGURE_ENV= ac_cv_header_alsa_asoundlib_h=no \ |
|
|
18 |
ac_cv_header_ltdl_h=no |
18 |
CONFIGURE_ARGS= --disable-docbook --disable-instrumentation |
19 |
CONFIGURE_ARGS= --disable-docbook --disable-instrumentation |
19 |
|
20 |
|
20 |
SUB_FILES= pkg-message |
21 |
SUB_FILES= pkg-message |
21 |
|
22 |
|
22 |
CFLAGS+= -fno-exceptions -fomit-frame-pointer |
23 |
CFLAGS+= -fomit-frame-pointer |
23 |
CXXFLAGS+= -fno-rtti |
24 |
CXXFLAGS+= -fno-exceptions |
|
|
25 |
CPPFLAGS+= -I${LOCALBASE}/include |
24 |
LDFLAGS+= -L${LOCALBASE}/lib |
26 |
LDFLAGS+= -L${LOCALBASE}/lib |
25 |
|
27 |
|
26 |
OPTIONS_DEFINE= A20_PIN ALIGN_CHECK ASSERT_CHECK AVX BUSMOUSE \ |
28 |
OPTIONS_DEFINE= A20_PIN ALIGN_CHECK ASSERT_CHECK AVX BUSMOUSE \ |
27 |
CDROM CHAINING CLGD54XX CONF_MSRS \ |
29 |
CDROM CHAINING CLGD54XX CONF_MSRS \ |
28 |
DISASM DOCS \ |
30 |
DEBUGGER DEBUGGER_GUI DEBUGGER_X86 DISASM DOCS \ |
29 |
E1000 ES1370 EVEX FPU \ |
31 |
E1000 ES1370 EVEX FPU \ |
30 |
GAMEPORT IDLE_HACK IODEBUG \ |
32 |
GAMEPORT GDB_STUB IDLE_HACK IODEBUG \ |
31 |
LARGE_RAMFILE LOGGING LONG_PHY_ADDR \ |
33 |
LARGE_RAMFILE LOGGING LONG_PHY_ADDR MEMTYPE MWAIT \ |
32 |
MWAIT NE2000 OPTIMIZATIONS PCI PLUGINS PNIC \ |
34 |
NE2000 OPTIMIZATIONS \ |
33 |
RAW_SERIAL READLINE REPEAT_SPEED RFB \ |
35 |
PCI PERFMON PNIC PLUGINS USB USB_OHCI USB_XHCI \ |
34 |
SB16 SDL SHOW_IPS SMP SVGALIB SVM \ |
36 |
RAW_SERIAL READLINE REPEAT_SPEED \ |
35 |
TERM TRACE_LINK \ |
37 |
SB16 SHOW_IPS SMP STATS SVM TRACE_LINK \ |
36 |
USB USB_OHCI USB_XHCI \ |
38 |
VMX VOODOO X86_64 XPM |
37 |
VMX VNCSERVER VOODOO WXGTK X11 X86_64 XPM |
|
|
38 |
OPTIONS_DEFINE_i386= FAST_FUNCCALL |
39 |
OPTIONS_DEFINE_i386= FAST_FUNCCALL |
39 |
OPTIONS_RADIO= DEBUG |
40 |
OPTIONS_GROUP= UI |
40 |
OPTIONS_RADIO_DEBUG= DEBUGGER GDB_STUB |
41 |
OPTIONS_GROUP_UI= RFB SDL1 SDL2 SVGALIB TERM VNCSERVER WXGTK X11 |
41 |
OPTIONS_DEFAULT= A20_PIN ALIGN_CHECK CDROM CONF_MSRS DISASM FPU \ |
42 |
OPTIONS_DEFAULT= A20_PIN ALIGN_CHECK CDROM CONF_MSRS DISASM FPU \ |
42 |
LOGGING NE2000 OPTIMIZATIONS SB16 X11 |
43 |
LARGE_RAMFILE LOGGING NE2000 OPTIMIZATIONS PCI \ |
|
|
44 |
SB16 SHOW_IPS STATS X11 |
43 |
|
45 |
|
44 |
A20_PIN_DESC= Enable support for A20 pin |
46 |
A20_PIN_DESC= Support for A20 pin |
45 |
A20_PIN_CONFIGURE_ENABLE= a20-pin |
47 |
A20_PIN_CONFIGURE_ENABLE=\ |
46 |
ALIGN_CHECK_DESC= Enable alignment check support |
48 |
a20-pin |
47 |
ALIGN_CHECK_CONFIGURE_ENABLE= alignment-check |
49 |
ALIGN_CHECK_DESC= Alignment check support |
48 |
ASSERT_CHECK_DESC= Enable BX_ASSERT checks |
50 |
ALIGN_CHECK_CONFIGURE_ENABLE=\ |
49 |
ASSERT_CHECK_CONFIGURE_ENABLE= assert-checks |
51 |
alignment-check |
50 |
AVX_DESC= Enable AVX instructions support |
52 |
ASSERT_CHECK_DESC= BX_ASSERT checks |
|
|
53 |
ASSERT_CHECK_CONFIGURE_ENABLE=\ |
54 |
assert-checks |
55 |
ASSERT_CHECK_IMPLIES= DEBUGGER |
56 |
AVX_DESC= AVX instructions support |
51 |
AVX_CONFIGURE_ENABLE= avx |
57 |
AVX_CONFIGURE_ENABLE= avx |
52 |
BUSMOUSE_DESC= Enable Busmouse support |
58 |
AVX_IMPLIES= X86_64 |
53 |
BUSMOUSE_CONFIGURE_ENABLE= busmouse |
59 |
BUSMOUSE_DESC= Busmouse support |
54 |
CDROM_DESC= Enable CDROM support |
60 |
BUSMOUSE_CONFIGURE_ENABLE=\ |
|
|
61 |
busmouse |
62 |
CDROM_DESC= CDROM support |
55 |
CDROM_CONFIGURE_ENABLE= cdrom |
63 |
CDROM_CONFIGURE_ENABLE= cdrom |
56 |
CHAINING_DESC= Enable handlers-chaining emulation speedups |
64 |
CHAINING_DESC= Support handlers-chaining emulation speedups |
57 |
CHAINING_CONFIGURE_ENABLE= handlers-chaining |
65 |
CHAINING_CONFIGURE_ENABLE=\ |
58 |
CLGD54XX_DESC= Enable Cirrus Logic GD54xx video card |
66 |
handlers-chaining |
59 |
CLGD54XX_CONFIGURE_ENABLE= clgd54xx |
67 |
CHAINING_PREVENTS= ASSERT_CHECK DEBUGGER DEBUGGER_GUI IODEBUG GDB_STUB \ |
60 |
CONF_MSRS_DESC= Enable configurable MSR registers support |
68 |
READLINE |
61 |
CONF_MSRS_CONFIGURE_ENABLE= configurable-msrs |
69 |
CLGD54XX_DESC= Cirrus Logic GD54xx video card |
62 |
DEBUG_DESCR= Enable Debugging, select this and one of DEBUGGER or GDB_STUB (or none) |
70 |
CLGD54XX_CONFIGURE_ENABLE=\ |
63 |
DEBUGGER_DESC= Enable debugger support |
71 |
clgd54xx |
64 |
DEBUGGER_CONFIGURE_ENABLE= debugger |
72 |
CONF_MSRS_DESC= Configurable MSR registers support |
65 |
DEBUGGER_X86_DESC= Enable x86 hardware debugger |
73 |
CONF_MSRS_CONFIGURE_ENABLE=\ |
66 |
DEBUGGER_X86_CONFIGURE_ENABLE= x86-debugger |
74 |
configurable-msrs |
67 |
DISASM_DESC= Enable disassemler support |
75 |
DEBUGGER_DESC= Debugger support |
68 |
DISASM_CONFIGURE_ENABLE= disasm |
76 |
DEBUGGER_CONFIGURE_ENABLE=\ |
69 |
E1000_DESC= Enable Intel(R) Gigabit Ethernet support |
77 |
debugger |
70 |
E1000_CONFIGURE_ENABLE= e1000 |
78 |
DEBUGGER_IMPLIES= DISASM |
71 |
ES1370_DESC= Enable ES1370 soundcard support |
79 |
DEBUGGER_GUI_DESC= GTK+ 2 GUI debugger support |
72 |
ES1370_CONFIGURE_ENABLE= es1370 |
80 |
DEBUGGER_GUI_USE= GNOME=gtk20 |
73 |
EVEX_DESC= Enable EVEX prefix and AVX-512 extensios support |
81 |
DEBUGGER_GUI_CONFIGURE_ENABLE=\ |
|
|
82 |
debugger-gui |
83 |
DEBUGGER_GUI_IMPLIES= DEBUGGER |
84 |
DEBUGGER_X86_DESC= X86 hardware debugger |
85 |
DEBUGGER_X86_CONFIGURE_ENABLE=\ |
86 |
x86-debugger |
87 |
DISASM_DESC= Disassemler support |
88 |
DISASM_CONFIGURE_ENABLE=\ |
89 |
disasm |
90 |
E1000_DESC= Intel(R) Gigabit Ethernet support |
91 |
E1000_CONFIGURE_ENABLE= e1000 |
92 |
E1000_IMPLIES= PCI |
93 |
ES1370_DESC= ES1370 soundcard support |
94 |
ES1370_CONFIGURE_ENABLE=\ |
95 |
es1370 |
96 |
ES1370_IMPLIES= PCI |
97 |
EVEX_DESC= EVEX prefix and AVX-512 extensios support |
74 |
EVEX_CONFIGURE_ENABLE= evex |
98 |
EVEX_CONFIGURE_ENABLE= evex |
75 |
FAST_FUNCCALL_DESC= Enable fast function calls support (x86 only) |
99 |
EVEX_IMPLIES= AVX |
76 |
FAST_FUNCCALL_CONFIGURE_ENABLE= fast-function-calls |
100 |
FAST_FUNCCALL_DESC= Support for fast function calls (x86 only) |
77 |
FPU_DESC= Enable FPU emulator |
101 |
FAST_FUNCCALL_CONFIGURE_ENABLE=\ |
78 |
FPU_CONFIGURE_ENABLE= fpu |
102 |
fast-function-calls |
79 |
GAMEPORT_DESC= Enable standard PC gameport support |
103 |
FPU_DESC= FPU emulator |
80 |
GAMEPORT_CONFIGURE_ENABLE= gameport |
104 |
FPU_CONFIGURE_ENABLE= fpu |
81 |
GDB_STUB_DESC= Enable GDB stub support |
105 |
FPU_VARS_OFF= WITH_CPU_LEVEL=3 |
82 |
GDB_STUB_CONFIGURE_ENABLE= gdb-stub |
106 |
GAMEPORT_DESC= Standard PC gameport support |
|
|
107 |
GAMEPORT_CONFIGURE_ENABLE=\ |
108 |
gameport |
109 |
GDB_STUB_DESC= GDB stub support |
110 |
GDB_STUB_CONFIGURE_ENABLE=\ |
111 |
gdb-stub |
112 |
GDB_STUB_PREVENTS= ASSERT_CHECK DEBUGGER DEBUGGER_GUI IODEBUG |
83 |
IDLE_HACK_DESC= Keep Bochs from using all CPU time |
113 |
IDLE_HACK_DESC= Keep Bochs from using all CPU time |
84 |
IDLE_HACK_CONFIGURE_ENABLE= idle-hack |
114 |
IDLE_HACK_CONFIGURE_ENABLE=\ |
85 |
IODEBUG_DESC= Enable I/O interface to debugger |
115 |
idle-hack |
86 |
IODEBUG_CONFIGURE_ENABLE= iodebug |
116 |
IODEBUG_DESC= I/O interface to debugger |
87 |
LARGE_RAMFILE_DESC= Enable large ramfile support |
117 |
IODEBUG_CONFIGURE_ENABLE=\ |
88 |
LARGE_RAMFILE_CONFIGURE_ENABLE= large-ramfile |
118 |
iodebug |
89 |
LOGGING_DESC= Enable logging |
119 |
IODEBUG_IMPLIES= DEBUGGER |
90 |
LOGGING_CONFIGURE_ENABLE= logging |
120 |
LARGE_RAMFILE_DESC= Large ramfile support |
91 |
LONG_PHY_ADDR_DESC= Enable support for physical address >= 32bit |
121 |
LARGE_RAMFILE_CONFIGURE_ENABLE=\ |
92 |
LONG_PHY_ADDR_CONFIGURE_ENABLE= long-phy-address |
122 |
large-ramfile |
93 |
MWAIT_DESC= Enable experimental MONITOR/MWAIT support |
123 |
LOGGING_DESC= Logging support |
94 |
MWAIT_CONFIGURE_ENABLE= monitor-mwait |
124 |
LOGGING_CONFIGURE_ENABLE=\ |
95 |
NE2000_DESC= Enable ne2000 support |
125 |
logging |
96 |
NE2000_CONFIGURE_ENABLE= ne2000 |
126 |
LONG_PHY_ADDR_DESC= Support for physical address >= 32bit |
97 |
OPTIMIZATIONS_DESC= Enable all safe speed optimizations |
127 |
LONG_PHY_ADDR_CONFIGURE_ENABLE=\ |
98 |
OPTIMIZATIONS_CONFIGURE_ENABLE= all-optimizations |
128 |
long-phy-address |
99 |
PCI_DESC= Enable i440FX PCI support |
129 |
MEMTYPE_DESC= Memory type calculation support |
100 |
PCI_CONFIGURE_ENABLE= pci |
130 |
MEMTYPE_CONFIGURE_ENABLE=\ |
101 |
PLUGINS_DESC= Enable building dynamic loadable plugins |
131 |
memtype |
102 |
PLUGINS_CONFIGURE_ENABLE= plugins |
132 |
MWAIT_DESC= MONITOR/MWAIT instructions support (experimemtal) |
103 |
PNIC_DESC= Enable PCI pseudo NIC (network card) support |
133 |
MWAIT_CONFIGURE_ENABLE= monitor-mwait |
104 |
PNIC_CONFIGURE_ENABLE= pnic |
134 |
NE2000_DESC= NE2000 support |
105 |
RAW_SERIAL_DESC= Use raw serial port access |
135 |
NE2000_CONFIGURE_ENABLE=\ |
106 |
RAW_SERIAL_CONFIGURE_ENABLE= raw-serial |
136 |
ne2000 |
107 |
READLINE_DESC= Enable readline support in debugger |
137 |
OPTIMIZATIONS_DESC= Compile in all safe speed optimizations |
|
|
138 |
OPTIMIZATIONS_CONFIGURE_ENABLE=\ |
139 |
all-optimizations |
140 |
OPTIMIZATIONS_IMPLIES= CHAINING FAST_FUNCCALL REPEAT_SPEED TRACE_LINK |
141 |
OPTIMIZATIONS_PREVENTS= ASSERT_CHECK DEBUGGER DEBUGGER_GUI IODEBUG GDB_STUB \ |
142 |
READLINE |
143 |
PCI_DESC= Intel(R) i440FX PCI support |
144 |
PCI_CONFIGURE_ENABLE= pci |
145 |
PERFMON_DESC= Hardware performance monitoring emulation (experimental) |
146 |
PERFMON_CONFIGURE_ENABLE=\ |
147 |
perfmon |
148 |
PLUGINS_CONFIGURE_ENABLE=\ |
149 |
plugins |
150 |
PNIC_DESC= PCI pseudo NIC (network card) support |
151 |
PNIC_CONFIGURE_ENABLE= pnic |
152 |
PNIC_IMPLIES= PCI |
153 |
RAW_SERIAL_DESC= Raw serial port access |
154 |
RAW_SERIAL_CONFIGURE_ENABLE=\ |
155 |
raw-serial |
156 |
READLINE_DESC= Readline support in debugger |
108 |
READLINE_USES= readline |
157 |
READLINE_USES= readline |
109 |
READLINE_CONFIGURE_ENABLE= readline |
158 |
READLINE_CONFIGURE_ENABLE=\ |
110 |
REPEAT_SPEED_DESC= Enable repeated IO and mem copy speedups |
159 |
readline |
111 |
REPEAT_SPEED_CONFIGURE_ENABLE= repeat-speedups |
160 |
READLINE_IMPLIES= DEBUGGER |
112 |
RFB_DESC= Use RFB protocol (works with VNC viewer) |
161 |
REPEAT_SPEED_DESC= Support repeated IO and mem copy speedups |
|
|
162 |
REPEAT_SPEED_CONFIGURE_ENABLE=\ |
163 |
repeat-speedups |
164 |
RFB_DESC= RFB protocol support (works with VNC viewer) |
113 |
RFB_CONFIGURE_WITH= rfb |
165 |
RFB_CONFIGURE_WITH= rfb |
114 |
SB16_DESC= Enable Sound Blaster 16 emulation |
166 |
SB16_DESC= Sound Blaster 16 emulation |
115 |
SB16_CONFIGURE_ENABLE= sb16 |
167 |
SB16_CONFIGURE_ENABLE= sb16 |
116 |
SDL_USE= SDL=sdl |
168 |
SDL1_DESC= Simple Direct Media Layer 1 support |
117 |
SDL_CONFIGURE_WITH= sdl |
169 |
SDL1_USE= SDL=sdl |
118 |
SHOW_IPS_DESC= Enable logging of measured IPS |
170 |
SDL1_CONFIGURE_WITH= sdl |
119 |
SHOW_IPS_CONFIGURE_ENABLE= show-ips |
171 |
SDL1_PREVENTS= SDL2 |
120 |
SMP_DESC= Enable SMP simulation support (CPU level 6) |
172 |
SDL2_DESC= Simple Direct Media Layer 2 support |
|
|
173 |
SDL2_USE= SDL=sdl2 |
174 |
SDL2_CONFIGURE_WITH= sdl2 |
175 |
SHOW_IPS_DESC= Show IPS in status bar or log file |
176 |
SHOW_IPS_CONFIGURE_ENABLE=\ |
177 |
show-ips |
178 |
SMP_DESC= Support for SMP configurations (CPU level 6) |
121 |
SMP_CONFIGURE_ENABLE= smp |
179 |
SMP_CONFIGURE_ENABLE= smp |
|
|
180 |
SMP_VARS= WITH_CPU_LEVEL=6 |
181 |
SMP_IMPLIES= FPU |
182 |
SMP_PREVENTS= GDB_STUB |
183 |
STATS_DESC= Statistics collection |
184 |
STATS_CONFIGURE_ENABLE= stats |
122 |
SVGALIB_LIB_DEPENDS= libvga.so:graphics/svgalib |
185 |
SVGALIB_LIB_DEPENDS= libvga.so:graphics/svgalib |
123 |
SVGALIB_CONFIGURE_WITH= svga |
186 |
SVGALIB_CONFIGURE_WITH= svga |
124 |
SVM_DESC= Enable SVM (AMD: secure virtual machine) emulation |
187 |
SVM_DESC= SVM (AMD: secure virtual machine) emulation |
125 |
SVM_CONFIGURE_ENABLE= svm |
188 |
SVM_CONFIGURE_ENABLE= svm |
|
|
189 |
SVM_VARS= WITH_CPU_LEVEL=6 |
190 |
SVM_IMPLIES= X86_64 |
126 |
TERM_DESC= Use text only, console based interface |
191 |
TERM_DESC= Use text only, console based interface |
127 |
TERM_CONFIGURE_WITH= term |
192 |
TERM_CONFIGURE_WITH= term |
128 |
TRACE_LINK_DESC= Enable trace linking speedups |
193 |
TRACE_LINK_DESC= Support trace linking speedups |
129 |
TRACE_LINK_CONFIGURE_ENABLE= trace-linking |
194 |
TRACE_LINK_CONFIGURE_ENABLE=\ |
130 |
USB_DESC= Enable USB UHCI support |
195 |
trace-linking |
|
|
196 |
UI_DESC= User Interface |
197 |
USB_DESC= USB UHCI support |
131 |
USB_CONFIGURE_ENABLE= usb |
198 |
USB_CONFIGURE_ENABLE= usb |
132 |
USB_OHCI_DESC= Enable USB OHCI support |
199 |
USB_IMPLIES= PCI |
133 |
USB_OHCI_CONFIGURE_ENABLE= usb-ohci |
200 |
USB_OHCI_DESC= USB OHCI support |
134 |
USB_XHCI_DESC= Enable experimental USB xHCI support |
201 |
USB_OHCI_CONFIGURE_ENABLE=\ |
135 |
USB_XHCI_CONFIGURE_ENABLE= usb-xhci |
202 |
usb-ohci |
136 |
VMX_DESC= Enable Virtialization extensions |
203 |
USB_OHCI_IMPLIES= PCI |
137 |
VNCSERVER_DESC= Use LibVNCServer (works with VNC viewer) |
204 |
USB_XHCI_DESC= USB xHCI support (experimental) |
|
|
205 |
USB_XHCI_CONFIGURE_ENABLE=\ |
206 |
usb-xhci |
207 |
USB_XHCI_IMPLIES= PCI |
208 |
VMX_DESC= Virtialization extensions |
209 |
VMX_VARS= WITH_CPU_LEVEL=6 |
210 |
VMX_IMPLIES= FPU |
211 |
VNCSERVER_DESC= LibVNCServer support (works with VNC viewer) |
138 |
VNCSERVER_LIB_DEPENDS= libvncserver.so:net/libvncserver |
212 |
VNCSERVER_LIB_DEPENDS= libvncserver.so:net/libvncserver |
139 |
VNCSERVER_CONFIGURE_WITH= vncsrv |
213 |
VNCSERVER_CONFIGURE_WITH=\ |
140 |
VOODOO_DESC= Enable 3dfx Voodoo Graphics emulation |
214 |
vncsrv |
141 |
VOODOO_CONFIGURE_ENABLE= voodoo |
215 |
VOODOO_DESC= 3dfx Voodoo Graphics emulation |
142 |
WXGTK_USE= WX=2.8 |
216 |
VOODOO_CONFIGURE_ENABLE=\ |
|
|
217 |
voodoo |
218 |
VOODOO_IMPLIES= PCI |
219 |
WXGTK_USES= compiler:c++11-lib |
220 |
WXGTK_USE= WX=3.0 |
143 |
WXGTK_CONFIGURE_WITH= wx |
221 |
WXGTK_CONFIGURE_WITH= wx |
144 |
WXGTK_CONFIGURE_OFF= --disable-debugger-gui |
222 |
WXGTK_CXXFLAGS_OFF= -fno-rtti |
|
|
223 |
WXGTK_CPPFLAGS= $$(pkg-config --cflags gdk-2.0) |
224 |
WXGTK_IMPLIES= X11 |
145 |
X11_USE= XORG=xrandr |
225 |
X11_USE= XORG=xrandr |
146 |
X11_CONFIGURE_WITH= x11 |
226 |
X11_CONFIGURE_WITH= x11 |
147 |
X86_64_DESC= Enable x86-64 instructions support |
227 |
X86_64_DESC= Support for x86-64 instructions |
148 |
X86_64_CONFIGURE_ENABLE= x86-64 |
228 |
X86_64_CONFIGURE_ENABLE=\ |
|
|
229 |
x86-64 |
230 |
X86_64_VARS= WITH_CPU_LEVEL=6 |
231 |
X86_64_IMPLIES= FPU |
149 |
XPM_USE= XORG=xpm |
232 |
XPM_USE= XORG=xpm |
150 |
XOM_CONFIGURE_ENABE= xpm |
233 |
XPM_CONFIGURE_ENABLE= xpm |
|
|
234 |
XPM_IMPLIES= X11 |
151 |
|
235 |
|
152 |
.include <bsd.port.options.mk> |
236 |
.include <bsd.port.options.mk> |
153 |
|
237 |
|
154 |
.if empty(PORT_OPTIONS:MTERM) && empty(PORT_OPTIONS:MWXGTK) && empty(PORT_OPTIONS:MX11) |
238 |
.if ${PORT_OPTIONS:MDEBUGGER_GUI} && empty(PORT_OPTIONS:MSDL1) && \ |
155 |
CONFIGURE_ARGS+=--with-nogui |
239 |
empty(PORT_OPTIONS:MSDL2) && empty(PORT_OPTIONS:MX11) |
|
|
240 |
IGNORE= option DEBUGGER_GUI requires SDL1, SDL2, or X11 support |
156 |
.endif |
241 |
.endif |
157 |
|
242 |
|
158 |
.if ! ${PORT_OPTIONS:MFPU} |
243 |
.if ${PORT_OPTIONS:MGAMEPORT} && empty(PORT_OPTIONS:MES1370) && \ |
159 |
WITH_CPU_LEVEL= 3 |
244 |
empty(PORT_OPTIONS:MSB16) |
160 |
.endif |
245 |
IGNORE= option GAMEPORT requires SB16 or ES1370 soundcard support |
161 |
|
|
|
162 |
.if ${PORT_OPTIONS:MSMP} |
163 |
WITH_CPU_LEVEL= 6 |
164 |
.endif |
246 |
.endif |
165 |
|
247 |
|
166 |
.if ${PORT_OPTIONS:MVMX} && ${PORT_OPTIONS:MX86_64} |
248 |
.if ${PORT_OPTIONS:MVMX} && ${PORT_OPTIONS:MX86_64} |
167 |
CONFIGURE_ARGS+=--enable-vmx=2 |
249 |
CONFIGURE_ARGS+=--enable-vmx=2 |
168 |
WITH_CPU_LEVEL= 6 |
|
|
169 |
.endif |
250 |
.endif |
170 |
|
251 |
|
171 |
.if ${PORT_OPTIONS:MVMX} && empty(PORT_OPTIONS:MX86_64) |
252 |
.if ${PORT_OPTIONS:MVMX} && empty(PORT_OPTIONS:MX86_64) |
172 |
CONFIGURE_ARGS+=--enable-vmx=1 |
253 |
CONFIGURE_ARGS+=--enable-vmx=1 |
173 |
WITH_CPU_LEVEL= 6 |
|
|
174 |
.endif |
175 |
|
176 |
.if ${PORT_OPTIONS:MX86_64} |
177 |
WITH_CPU_LEVEL= 6 |
178 |
.endif |
254 |
.endif |
179 |
|
255 |
|
180 |
.if defined(WITH_CPU_LEVEL) |
256 |
.if defined(WITH_CPU_LEVEL) |
Lines 184-229
Link Here
|
184 |
CONFIGURE_ARGS+=--enable-cpu-level=${WITH_CPU_LEVEL} |
260 |
CONFIGURE_ARGS+=--enable-cpu-level=${WITH_CPU_LEVEL} |
185 |
.endif |
261 |
.endif |
186 |
|
262 |
|
187 |
.if ${PORT_OPTIONS:MGDB_STUB} && ${PORT_OPTIONS:MSMP} |
|
|
188 |
IGNORE= GDB_STUB is incompatible with multiprocessor |
189 |
.endif |
190 |
|
191 |
.if ${PORT_OPTIONS:ME1000} && empty(PORT_OPTIONS:MPCI) |
192 |
IGNORE= E1000 network adapter support requires PCI support |
193 |
.endif |
194 |
|
195 |
.if ${PORT_OPTIONS:MES1370} && empty(PORT_OPTIONS:MGAMEPORT) |
196 |
IGNORE= ES1370 soundcard support requires GAMEPORT support |
197 |
.endif |
198 |
|
199 |
.if ${PORT_OPTIONS:MES1370} && empty(PORT_OPTIONS:MPCI) |
200 |
IGNORE= ES1370 soundcard support requires PCI support |
201 |
.endif |
202 |
|
203 |
.if ${PORT_OPTIONS:MEVEX} && empty(PORT_OPTIONS:MAVX) |
204 |
IGNORE= EVEX instructions support requires AVX support |
205 |
.endif |
206 |
|
207 |
.if ${PORT_OPTIONS:MPNIC} && empty(PORT_OPTIONS:MPCI) |
208 |
IGNORE= PCI pseudo NIC support requires PCI support |
209 |
.endif |
210 |
|
211 |
.if ${PORT_OPTIONS:MVOODOO} && empty(PORT_OPTIONS:MPCI) |
212 |
IGNORE= 3dfx Voodoo Graphics emulation requires PCI support |
213 |
.endif |
214 |
|
215 |
.if ${PORT_OPTIONS:MAVX} && empty(PORT_OPTIONS:MX86_64) |
216 |
IGNORE= AVX instructions support requires X86-64 support |
217 |
.endif |
218 |
|
219 |
.if ${PORT_OPTIONS:MSVM} && empty(PORT_OPTIONS:MX86_64) |
220 |
IGNORE= SVM emulation requires X86-64 support |
221 |
.endif |
222 |
|
223 |
.if ${PORT_OPTIONS:MXPM} && empty(PORT_OPTIONS:MX11) |
224 |
IGNORE= XPM support requires X11 support |
225 |
.endif |
226 |
|
227 |
pre-everything:: |
263 |
pre-everything:: |
228 |
.if !defined(WITH_CPU_LEVEL) |
264 |
.if !defined(WITH_CPU_LEVEL) |
229 |
@${ECHO_CMD} |
265 |
@${ECHO_CMD} |
Lines 232-237
Link Here
|
232 |
.endif |
268 |
.endif |
233 |
|
269 |
|
234 |
post-patch: |
270 |
post-patch: |
|
|
271 |
@${REINPLACE_CMD} -e \ |
272 |
'/DEFAULT_GUI=/s|x11|nogui|' \ |
273 |
${WRKSRC}/configure |
235 |
@${REINPLACE_CMD} -Ee \ |
274 |
@${REINPLACE_CMD} -Ee \ |
236 |
's|$$BXSHARE/|${DATADIR}/|; \ |
275 |
's|$$BXSHARE/|${DATADIR}/|; \ |
237 |
s|^#clock: sync=none|clock: sync=realtime|; \ |
276 |
s|^#clock: sync=none|clock: sync=realtime|; \ |
Lines 244-259
Link Here
|
244 |
s|(^sharedir.+=).+|\1 ${DATADIR}|; \ |
283 |
s|(^sharedir.+=).+|\1 ${DATADIR}|; \ |
245 |
s|(^docdir.+=).+|\1 ${DOCSDIR}|' \ |
284 |
s|(^docdir.+=).+|\1 ${DOCSDIR}|' \ |
246 |
${WRKSRC}/Makefile.in |
285 |
${WRKSRC}/Makefile.in |
|
|
286 |
@${REINPLACE_CMD} -Ee \ |
287 |
's|(@GUI_.+FLAGS@)$$|\1 @CPPFLAGS@|' \ |
288 |
${WRKSRC}/bx_debug/Makefile.in |
247 |
@${REINPLACE_CMD} -e \ |
289 |
@${REINPLACE_CMD} -e \ |
248 |
's|/usr/local/share/bochs|${DATADIR}|; \ |
290 |
's|/usr/local/share/bochs|${DATADIR}|; \ |
249 |
s|/usr/local/share/doc/bochs|${DOCSDIR}|' \ |
291 |
s|/usr/local/share/doc/bochs|${DOCSDIR}|' \ |
250 |
${WRKSRC}/doc/docbook/user/user.dbk ${WRKSRC}/doc/man/*.[15] |
292 |
${WRKSRC}/doc/docbook/user/user.dbk ${WRKSRC}/doc/man/*.[15] |
251 |
@${REINPLACE_CMD} -Ee 's|/usr/(include/vga\.h)|${LOCALBASE}/\1|' \ |
|
|
252 |
${WRKSRC}/gui/svga.cc |
253 |
@${REINPLACE_CMD} -Ee \ |
293 |
@${REINPLACE_CMD} -Ee \ |
254 |
's|(^LOCAL_CXXFLAGS.+=)|\1 @CPPFLAGS@|; \ |
294 |
's|(^LOCAL_CXXFLAGS.+=)|\1 @CPPFLAGS@|; \ |
255 |
s|(-lvgagl)$$|\1 @LDFLAGS@|' \ |
295 |
s|(-lvgagl)$$|\1 @LDFLAGS@|' \ |
256 |
${WRKSRC}/gui/Makefile.in |
296 |
${WRKSRC}/gui/Makefile.in |
|
|
297 |
@${REINPLACE_CMD} -e \ |
298 |
's|</usr/include/|<|' \ |
299 |
${WRKSRC}/gui/svga.cc |
257 |
|
300 |
|
258 |
post-build: |
301 |
post-build: |
259 |
@${LN} -sf .bochsrc ${WRKSRC}/bochsrc-sample.txt |
302 |
@${LN} -sf .bochsrc ${WRKSRC}/bochsrc-sample.txt |
Lines 262-273
Link Here
|
262 |
.for f in bochs bximage |
305 |
.for f in bochs bximage |
263 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f} |
306 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f} |
264 |
.endfor |
307 |
.endfor |
265 |
.if ${PORT_OPTIONS:MPLUGINS} |
308 |
|
266 |
@${FIND} ${STAGEDIR}${PREFIX}/lib/bochs ! -type d | \ |
309 |
post-install-DOCS-on: |
267 |
${SED} 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST} |
|
|
268 |
@${FIND} ${STAGEDIR}${PREFIX}/lib/bochs -type d -empty | ${SORT} -r | \ |
269 |
${SED} 's,^${STAGEDIR}${PREFIX}/,@dir ,' >> ${TMPPLIST} |
270 |
.endif |
271 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
310 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
272 |
.for i in CHANGES README TODO bochsrc-sample.txt |
311 |
.for i in CHANGES README TODO bochsrc-sample.txt |
273 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \ |
312 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \ |
Lines 279-282
Link Here
|
279 |
(cd ${WRKSRC}/docs-html && ${INSTALL_DATA} *.html \ |
318 |
(cd ${WRKSRC}/docs-html && ${INSTALL_DATA} *.html \ |
280 |
${STAGEDIR}${DOCSDIR}/html) |
319 |
${STAGEDIR}${DOCSDIR}/html) |
281 |
|
320 |
|
|
|
321 |
post-install-PLUGINS-on: |
322 |
@${FIND} ${STAGEDIR}${PREFIX}/lib/bochs -name "libbx_*.so*" \ |
323 |
-type f -print0 | ${XARGS} -0 ${STRIP_CMD} |
324 |
@${FIND} ${STAGEDIR}${PREFIX}/lib/bochs ! -type d | \ |
325 |
${SED} 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST} |
326 |
@${FIND} ${STAGEDIR}${PREFIX}/lib/bochs -type d -empty | ${SORT} -r | \ |
327 |
${SED} 's,^${STAGEDIR}${PREFIX}/,@dir,' >> ${TMPPLIST} |
328 |
|
282 |
.include <bsd.port.mk> |
329 |
.include <bsd.port.mk> |