ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/emulators/bochs/Makefile
(Generate patch)

Comparing trunk/emulators/bochs/Makefile (file contents):
Revision 8378 by laffer1, Sun Sep 20 02:22:58 2009 UTC vs.
Revision 9516 by laffer1, Tue Apr 27 13:14:13 2010 UTC

# Line 1 | Line 1
1 < # $MidnightBSD: mports/emulators/bochs/Makefile,v 1.5 2009/03/01 17:11:03 laffer1 Exp $
1 > # $MidnightBSD$
2  
3   PORTNAME=       bochs
4 < PORTVERSION=    2.3.7
4 > PORTVERSION=    2.4
5   PORTEPOCH=      2
6   CATEGORIES=     emulators
7   MASTER_SITES=   SF
# Line 10 | Line 10 | MAINTAINER=    ports@MidnightBSD.org
10   COMMENT=        An IA-32 (x86) PC emulator that runs DOS, Win 95, and more
11   LICENSE=        lgpl
12  
13 BUILD_DEPENDS=  mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
14 RUN_DEPENDS=    mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
15
16 USE_GNOME=      gnometarget
13   USE_GMAKE=      yes
14   USE_AUTOTOOLS=  libtool:22
15   CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
16   CONFIGURE_ARGS= --disable-docbook
17  
18 < OPTIONS=        ACPI "Enable ACPI emulation" off \
18 > OPTIONS=        1G_PAGES "Enable support for 1G pages in long mode" off \
19 >                A20_PIN "Enable support for A20 pin" on \
20 >                ACPI "Enable ACPI emulation" off \
21                  AES "Enable support of AES CPU extensions" off \
22 +                ALIGN_CHECK "Enable alignment check support" on \
23 +                APIC "Enable APIC support" off \
24 +                ASSERT_CHECK "Enable BX_ASSERT checks" off \
25                  CDROM "Enable CDROM support" on \
26                  CLGD54XX "Enable Cirrus Logic GD54xx video card" off \
27 <                DEBUGGER "Enable debugger and disassembler support" off \
27 >                CONF_MSRS "Enable configurable MSR registers support" on \
28 >                DAZ "Enable demornals-are-zeros support" off \
29 >                DEBUGGER "Enable debugger support" off \
30                  DEBUGGER_X86 "Enable x86 hardware debugger" off \
31 +                DISASM "Enable disassemler support " on \
32 +                FAST_FUNCCALL "Enable fast function calls support (x86 only)" off \
33                  FPU "Enable FPU emulator" on \
34 +                GAMEPORT "Enable standard PC gameport support" off \
35 +                GDB_STUB "Enable GDB stub support" off \
36 +                GLOBAL_PAGES "Enable support for global pages in PDE/PTE" off \
37                  IDLE_HACK "Keep Bochs from using all CPU time" off \
38 <                IGNORE_BAD_MSR "Ignore unknown MSR references (don't panic)" off \
38 >                IGNORE_BADMSR "Ignore unknown MSR references (don't panic)" on \
39 >                INSTRUMENT "Enable support for instrumentation" off \
40 >                IODEBUG "Enable I/O interface to debugger" off \
41 >                LARGE_PAGES "Enable support for large (2M/4M) pages" on \
42 >                LOGGING "Enable logging" on \
43 >                LONG_PHY_ADDR "Enable support for physical address >= 32bit" off \
44                  MTRR "Enable MTRR emulation (CPU level >= 6)" off \
45 +                MISALIGNEDSSE "Enable misaligned SSE support" off \
46 +                MOVBE "Enable MOVBE intel Atom(R) instruction support" off \
47                  MWAIT "Enable experimental MONITOR/MWAIT support" off \
48                  NE2000 "Enable limited ne2000 support" on \
49                  NEW_PIT "Enable use of the new PIT model" on \
50                  OPTIMIZATIONS "Enable all safe speeed optimizations" on \
51 +                PAE "Enable support for Physical Address Extensions" off \
52                  PCI "Enable limited i440FX PCI support" on \
53 +                POPCNT "Enable support for POPCNT instruction" off \
54                  PLUGINS "Enable building dynamic loadable plugins" off \
55                  PNIC "Enable PCI pseudo NIC (network card) support" off \
56 <                PORT_E9_HACK "Writes to port e9 go to console" on \
56 >                RAW_SERIAL "Use raw serial port access" off \
57                  READLINE "Enable readline support in debugger" off \
58 +                REPEAT_SPEED "Enable repeated IO and mem copy speedups" off \
59                  RFB "Enable VNC server support in display" off \
60                  SB16 "Enable Sound Blaster 16 emulation" on \
61                  SDL "Enable SDL display interface" off \
62 +                SEP "Enable SYSENTER/SYSEXIT support" off \
63                  SHOW_IPS "Enable logging of measured IPS" off \
64                  SMP "Enable SMP simulation support (CPU level 6)" off \
65                  SSE4 "Enable emulation of SSE4.2 instruction set" off \
66                  SVGA "Enable SVGAlib support" off \
67                  TCACHE "Enable trace cache" on \
68                  TERM "Use text only, console based interface" off \
69 <                USB "Enable limited i440FX PCI USB support" off \
69 >                USB "Enable limited USB UHCI support" off \
70 >                USB_OHCI "Enable limited USB OHCI support" off \
71                  VBE "Enable VGA BIOS Extensions" on \
72 +                VME "Enable Virtual 8086 mode extensions" on \
73 +                VMX "Enable Virtialization extensions" off \
74                  WX "Use WxWidgets display interface" off \
75                  X11 "Use X11 display interface" on \
76                  X86_64 "Enable AMD x86-64 support" off \
77                  XPM "Enable XPM library support" off \
78                  XSAVE "Enable support of XSAVE/XRSTOR CPU extensions" off
79  
80 < CFLAGS+=        -fno-rtti -fno-exceptions -fomit-frame-pointer
80 > CFLAGS+=        -fno-exceptions -fomit-frame-pointer
81 > CXXFLAGS+=      -fno-rtti
82   CPPFLAGS=       -I${LOCALBASE}/include
83   LDFLAGS=        -L${LOCALBASE}/lib
84  
# Line 71 | Line 94 | SUB_FILES=     pkg-message
94   CONFIGURE_ARGS+=--with-nogui
95   .endif
96  
97 + .if defined(WITH_1G_PAGES) && defined(WITH_X86_64)
98 + CONFIGURE_ARGS+=--enable-1g-pages
99 + .else
100 + CONFIGURE_ARGS+=--disable-1g-pages
101 + .endif
102 +
103 + .if !defined(WITH_A20_PIN)
104 + CONFIGURE_ARGS+=--disable-a20-pin
105 + .else
106 + CONFIGURE_ARGS+=--enable-a20-pin
107 + .endif
108 +
109   .if defined(WITH_ACPI)
110   CONFIGURE_ARGS+=--enable-acpi
111 + .else
112 + CONFIGURE_ARGS+=--disable-acpi
113   .endif
114  
115   .if defined(WITH_AES)
116   CONFIGURE_ARGS+=--enable-aes
117 + .else
118 + CONFIGURE_ARGS+=--disable-aes
119   .endif
120  
121 < .if defined(WITHOUT_CDROM)
121 > .if !defined(WITH_ALIGN_CHECK)
122 > CONFIGURE_ARGS+=--disable-alignment-check
123 > .else
124 > CONFIGURE_ARGS+=--enable-alignment-check
125 > .endif
126 >
127 > .if defined(WITH_APIC)
128 > CONFIGURE_ARGS+=--enable-apic
129 > .else
130 > CONFIGURE_ARGS+=--disable-apic
131 > .endif
132 >
133 > .if defined(WITH_ASSERT_CHECK)
134 > CONFIGURE_ARGS+=--enable-assert-checks
135 > .else
136 > CONFIGURE_ARGS+=--disable-assert-checks
137 > .endif
138 >
139 > .if !defined(WITH_CDROM)
140   CONFIGURE_ARGS+=--disable-cdrom
141 + .else
142 + CONFIGURE_ARGS+=--enable-cdrom
143   .endif
144  
145   .if defined(WITH_CLGD54XX)
146   CONFIGURE_ARGS+=--enable-clgd54xx
147 + .else
148 + CONFIGURE_ARGS+=--disable-clgd54xx
149   .endif
150  
151 + .if !defined(WITH_CONF_MSRS)
152 + CONFIGURE_ARGS+=--disable-configurable-msrs
153 + .else
154 + CONFIGURE_ARGS+=--enable-configurable-msrs
155 + .endif
156 +
157 + .if defined(WITH_DAZ)
158 + CONFIGURE_ARGS+=--enable-daz
159 + .else
160 + CONFIGURE_ARGS+=--disable-daz
161 + .endif
162 +
163   .if defined(WITH_DEBUGGER)
164 < CONFIGURE_ARGS+=--enable-debugger --enable-disasm
164 > CONFIGURE_ARGS+=--enable-debugger
165 > .else
166 > CONFIGURE_ARGS+=--disable-debugger
167   .endif
168  
169   .if defined(WITH_DEBUGGER_X86)
170   CONFIGURE_ARGS+=--enable-x86-debugger
171 + .else
172 + CONFIGURE_ARGS+=--disable-x86-debugger
173   .endif
174  
175 < .if defined(WITH_FPU)
175 > .if !defined(WITH_DISASM)
176 > CONFIGURE_ARGS+=--disable-disasm
177 > .else
178 > CONFIGURE_ARGS+=--enable-disasm
179 > .endif
180 >
181 > .if defined(WITH_FAST_FUNCCALL)
182 > CONFIGURE_ARGS+=--enable-fast-function-calls
183 > .else
184 > CONFIGURE_ARGS+=--disable-fast-function-calls
185 > .endif
186 >
187 > .if !defined(WITH_FPU)
188 > CONFIGURE_ARGS+=--disable-fpu
189 > .else
190   CONFIGURE_ARGS+=--enable-fpu
191   .endif
192  
193 + .if defined(WITH_GAMEPORT)
194 + CONFIGURE_ARGS+=--enable-gameport
195 + .else
196 + CONFIGURE_ARGS+=--disable-gameport
197 + .endif
198 +
199 + .if defined(WITH_GDB_STUB)
200 + CONFIGURE_ARGS+=--enable-gdb-stub
201 + .else
202 + CONFIGURE_ARGS+=--disable-gdb-stub
203 + .endif
204 +
205 + .if defined(WITH_GLOBAL_PAGES)
206 + CONFIGURE_ARGS+=--enable-global-pages
207 + .else
208 + CONFIGURE_ARGS+=--disable-global-pages
209 + .endif
210 +
211   .if defined(WITH_IDLE_HACK)
212   CONFIGURE_ARGS+=--enable-idle-hack
213 + .else
214 + CONFIGURE_ARGS+=--disable-idle-hack
215   .endif
216  
217 < .if defined(WITH_IGNORE_BAD_MSR)
217 > .if !defined(WITH_IGNORE_BADMSR)
218 > CONFIGURE_ARGS+=--disable-ignore-bad-msr
219 > .else
220   CONFIGURE_ARGS+=--enable-ignore-bad-msr
221   .endif
222  
223 + .if defined(WITH_INSTRUMENT)
224 + CONFIGURE_ARGS+=--enable-instrumentation
225 + .else
226 + CONFIGURE_ARGS+=--disable-instrumentation
227 + .endif
228 +
229 + .if defined(WITH_IODEBUG)
230 + CONFIGURE_ARGS+=--enable-iodebug
231 + .else
232 + CONFIGURE_ARGS+=--disable-iodebug
233 + .endif
234 +
235 + .if !defined(WITH_LARGE_PAGES)
236 + CONFIGURE_ARGS+=--disable-large-pages
237 + .else
238 + CONFIGURE_ARGS+=--enable-large-pages
239 + .endif
240 +
241 + .if !defined(WITH_LOGGING)
242 + CONFIGURE_ARGS+=--disable-logging
243 + .else
244 + CONFIGURE_ARGS+=--enable-logging
245 + .endif
246 +
247 + .if defined(WITH_LONG_PHY_ADDR)
248 + CONFIGURE_ARGS+=--enable-long-phy-address
249 + .else
250 + CONFIGURE_ARGS+=--disable-long-phy-address
251 + .endif
252 +
253   .if defined(WITH_MTRR)
254   CONFIGURE_ARGS+=--enable-mtrr
255 + .else
256 + CONFIGURE_ARGS+=--disable-mtrr
257   .endif
258  
259 + .if defined(WITH_MISALIGNDSSE)
260 + CONFIGURE_ARGS+=--enable-misaligned-sse
261 + .else
262 + CONFIGURE_ARGS+=--disable-misaligned-sse
263 + .endif
264 +
265 + .if defined(WITH_MOVBE)
266 + CONFIGURE_ARGS+=--enable-movbe
267 + .else
268 + CONFIGURE_ARGS+=--disable-movbe
269 + .endif
270 +
271   .if defined(WITH_MWAIT)
272   CONFIGURE_ARGS+=--enable-monitor-mwait
273 + .else
274 + CONFIGURE_ARGS+=--disable-monitor-mwait
275   .endif
276  
277   .if defined(WITH_NE2000)
278   CONFIGURE_ARGS+=--enable-ne2000
279 + .else
280 + CONFIGURE_ARGS+=--disable-ne2000
281   .endif
282  
283 < .if defined(WITHOUT_NEW_PIT)
283 > .if !defined(WITH_NEW_PIT)
284   CONFIGURE_ARGS+=--disable-new-pit
285 + .else
286 + CONFIGURE_ARGS+=--enable-new-pit
287   .endif
288  
289   .if defined(WITH_OPTIMIZATIONS)
290   CONFIGURE_ARGS+=--enable-all-optimizations
291 + .else
292 + CONFIGURE_ARGS+=--disable-all-optimizations
293   .endif
294  
295 + .if defined(WITH_PAE)
296 + CONFIGURE_ARGS+=--enable-pae
297 + .else
298 + CONFIGURE_ARGS+=--disable-pae
299 + .endif
300 +
301   .if defined(WITH_PCI)
302   CONFIGURE_ARGS+=--enable-pci
303 + .else
304 + CONFIGURE_ARGS+=--disable-pci
305   .endif
306  
307 + .if defined(WITH_POPCNT)
308 + CONFIGURE_ARGS+=--enable-popcnt
309 + .else
310 + CONFIGURE_ARGS+=--disable-popcnt
311 + .endif
312 +
313   .if defined(WITH_PLUGINS)
314   CONFIGURE_ARGS+=--enable-plugins
315 + .else
316 + CONFIGURE_ARGS+=--disable-plugins
317   .endif
318  
319   .if defined(WITH_PNIC)
320   CONFIGURE_ARGS+=--enable-pnic
321 + .else
322 + CONFIGURE_ARGS+=--disable-pnic
323   .endif
324  
325 < .if defined(WITHOUT_PORT_E9_HACK)
326 < CONFIGURE_ARGS+=--disable-port-e9-hack
325 > .if defined(WITH_RAW_SERIAL)
326 > CONFIGURE_ARGS+=--enable-raw-serial
327 > .else
328 > CONFIGURE_ARGS+=--disable-raw-serial
329   .endif
330  
331   .if defined(WITH_READLINE)
# Line 149 | Line 334 | CONFIGURE_ARGS+=--enable-readline
334   CONFIGURE_ARGS+=--disable-readline
335   .endif
336  
337 + .if defined(WITH_REPEAT_SPEED)
338 + CONFIGURE_ARGS+=--enable-repeat-speedups
339 + .else
340 + CONFIGURE_ARGS+=--disable-repeat-speedups
341 + .endif
342 +
343   .if defined(WITH_RFB)
344   CONFIGURE_ARGS+=--with-rfb
345 + .else
346 + CONFIGURE_ARGS+=--without-rfb
347   .endif
348  
349   .if defined(WITH_SB16)
350   CONFIGURE_ARGS+=--enable-sb16=freebsd
351   .endif
352  
160 .if defined(WITH_SMP)
161 CONFIGURE_ARGS+=--enable-smp
162 WITH_CPU_LEVEL= 6
163 .endif
164
353   .if defined(WITH_SDL)
354   USE_SDL=        sdl
355   CONFIGURE_ARGS+=--with-sdl
356   .endif
357  
358 + .if defined(WITH_SEP)
359 + CONFIGURE_ARGS+=--enable-sep
360 + .else
361 + CONFIGURE_ARGS+=--disable-sep
362 + .endif
363 +
364   .if defined(WITH_SHOW_IPS)
365   CONFIGURE_ARGS+=--enable-show-ips
366 + .else
367 + CONFIGURE_ARGS+=--disable-show-ips
368   .endif
369  
370 + .if defined(WITH_SMP)
371 + CONFIGURE_ARGS+=--enable-smp
372 + WITH_CPU_LEVEL= 6
373 + .endif
374 +
375   .if defined(WITH_SSE4) || defined(WITH_AES) || defined(WITH_XSAVE)
376   CONFIGURE_ARGS+=--enable-sse=4 --enable-sse-extension
377   WITH_CPU_LEVEL= 6
# Line 185 | Line 386 | CONFIGURE_ARGS+=--with-svga
386   CONFIGURE_ARGS+=--with-term
387   .endif
388  
389 < .if defined(WITHOUT_TCACHE)
389 > .if !defined(WITH_TCACHE)
390   CONFIGURE_ARGS+=--disable-trace-cache
391   .else
392   CONFIGURE_ARGS+=--enable-trace-cache
# Line 193 | Line 394 | CONFIGURE_ARGS+=--enable-trace-cache
394  
395   .if defined(WITH_USB)
396   CONFIGURE_ARGS+=--enable-usb
397 + .else
398 + CONFIGURE_ARGS+=--disable-usb
399   .endif
400  
401 < .if defined(WITH_VBE)
401 > .if defined(WITH_USB_OHCI)
402 > CONFIGURE_ARGS+=--enable-usb-ohci
403 > .else
404 > CONFIGURE_ARGS+=--disable-usb-ohci
405 > .endif
406 >
407 > .if !defined(WITH_VBE)
408 > CONFIGURE_ARGS+=--disable-vbe
409 > .else
410   CONFIGURE_ARGS+=--enable-vbe
411   .endif
412  
413 + .if !defined(WITH_VME)
414 + CONFIGURE_ARGS+=--disable-vme
415 + .else
416 + CONFIGURE_ARGS+=--enable-vme
417 + .endif
418 +
419 + .if defined(WITH_VMX)
420 + CONFIGURE_ARGS+=--enable-vmx
421 + .else
422 + CONFIGURE_ARGS+=--disable-vmx
423 + .endif
424 +
425   .if defined(WITH_WX)
426   USE_WX=         2.4-2.6
427   CONFIGURE_ARGS+=--with-wx
428 + .else
429 + CONFIGURE_ARGS+=--disable-debugger-gui
430   .endif
431  
432   .if defined(WITH_X11)
# Line 211 | Line 436 | CONFIGURE_ARGS+=--with-x11
436  
437   .if defined(WITH_X86_64)
438   CONFIGURE_ARGS+=--enable-x86-64
439 + .else
440 + CONFIGURE_ARGS+=--disable-x86-64
441   .endif
442  
443   .if defined(WITH_XPM)
444   USE_XORG=       xpm
445 + CONFIGURE_ARGS+=--enable-xpm
446   .else
447   CONFIGURE_ARGS+=--disable-xpm
448   .endif
449  
450   .if defined(WITH_XSAVE)
451   CONFIGURE_ARGS+=--enable-xsave
452 + .else
453 + CONFIGURE_ARGS+=--disable-xsave
454   .endif
455  
456   .if defined(WITH_CPU_LEVEL)

Comparing trunk/emulators/bochs/Makefile (property cvs2svn:cvs-rev):
Revision 8378 by laffer1, Sun Sep 20 02:22:58 2009 UTC vs.
Revision 9516 by laffer1, Tue Apr 27 13:14:13 2010 UTC

# Line 1 | Line 1
1 < 1.6
1 > 1.7

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines