Lines 27-33
Link Here
|
27 |
GNU_CONFIGURE= yes |
27 |
GNU_CONFIGURE= yes |
28 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
28 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
29 |
CONFIGURE_ARGS= --disable-split-hd \ |
29 |
CONFIGURE_ARGS= --disable-split-hd \ |
30 |
--enable-all-optimizations |
30 |
--enable-all-optimizations --with-x11 |
31 |
|
31 |
|
32 |
CFLAGS+= -fno-rtti -fno-exceptions -fomit-frame-pointer |
32 |
CFLAGS+= -fno-rtti -fno-exceptions -fomit-frame-pointer |
33 |
|
33 |
|
Lines 36-41
Link Here
|
36 |
|
36 |
|
37 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.pre.mk> |
38 |
|
38 |
|
|
|
39 |
.if defined(WITH_BOCHS_TERM) |
40 |
CONFIGURE_ARGS+= --with-term |
41 |
.endif |
42 |
|
43 |
.if defined(WITH_BOCHS_VESA) |
44 |
CONFIGURE_ARGS+= --enable-vbe |
45 |
.endif |
46 |
|
47 |
.if defined(WITH_BOCHS_READLINE) |
48 |
CONFIGURE_ARGS+= --enable-readline |
49 |
.endif |
50 |
|
39 |
.if ${XFREE86_VERSION} == 4 |
51 |
.if ${XFREE86_VERSION} == 4 |
40 |
BUILD_DEPENDS+= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients |
52 |
BUILD_DEPENDS+= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients |
41 |
RUN_DEPENDS+= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients |
53 |
RUN_DEPENDS+= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients |
Lines 53-58
Link Here
|
53 |
.if ${WITH_BOCHS_CPU_LEVEL} < 3 || ${WITH_BOCHS_CPU_LEVEL} > 6 |
65 |
.if ${WITH_BOCHS_CPU_LEVEL} < 3 || ${WITH_BOCHS_CPU_LEVEL} > 6 |
54 |
.error "WITH_BOCHS_CPU_LEVEL must be an integer value between 3 and 6." |
66 |
.error "WITH_BOCHS_CPU_LEVEL must be an integer value between 3 and 6." |
55 |
.endif |
67 |
.endif |
|
|
68 |
.if ${WITH_BOCHS_CPU_LEVEL} < 5 |
69 |
CONFIGURE_ARGS+= --disable-mmx |
70 |
.endif |
56 |
CONFIGURE_ARGS+= --enable-cpu-level=${WITH_BOCHS_CPU_LEVEL} |
71 |
CONFIGURE_ARGS+= --enable-cpu-level=${WITH_BOCHS_CPU_LEVEL} |
57 |
.endif |
72 |
.endif |
58 |
|
73 |
|
Lines 93-99
Link Here
|
93 |
pre-everything:: |
108 |
pre-everything:: |
94 |
.if !defined(WITH_BOCHS_CPU_LEVEL) || !defined(WITH_BOCHS_PROCESSORS) || \ |
109 |
.if !defined(WITH_BOCHS_CPU_LEVEL) || !defined(WITH_BOCHS_PROCESSORS) || \ |
95 |
!defined(WITH_BOCHS_DEBUGGER) || !defined(WITH_BOCHS_X86_DEBUGGER) || \ |
110 |
!defined(WITH_BOCHS_DEBUGGER) || !defined(WITH_BOCHS_X86_DEBUGGER) || \ |
96 |
!defined(WITH_SOUND) |
111 |
!defined(WITH_SOUND) || !defined(WITH_BOCHS_TERM) || \ |
|
|
112 |
!defined(WITH_BOCHS_VESA) || !defined(WITH_BOCHS_READLINE) |
97 |
@${ECHO_MSG} |
113 |
@${ECHO_MSG} |
98 |
.if !defined(WITH_BOCHS_CPU_LEVEL) |
114 |
.if !defined(WITH_BOCHS_CPU_LEVEL) |
99 |
@${ECHO_MSG} "If you want to change the processor level to emulate (default is 5, aka Pentium)" |
115 |
@${ECHO_MSG} "If you want to change the processor level to emulate (default is 5, aka Pentium)" |
Lines 129-134
Link Here
|
129 |
.if !defined(WITH_SOUND) |
145 |
.if !defined(WITH_SOUND) |
130 |
@${ECHO_MSG} "If you want to compile with sound (blaster 16) support." |
146 |
@${ECHO_MSG} "If you want to compile with sound (blaster 16) support." |
131 |
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_SOUND=yes\"" |
147 |
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_SOUND=yes\"" |
|
|
148 |
@${ECHO_MSG} |
149 |
.endif |
150 |
.if !defined(WITH_BOCHS_TERM) |
151 |
@${ECHO_MSG} "If you want to enable the plain text, console-based bochs interface" |
152 |
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_GUI_TERM=yes\"" |
153 |
@${ECHO_MSG} |
154 |
.endif |
155 |
.if !defined(WITH_BOCHS_VESA) |
156 |
@${ECHO_MSG} "If you want to enable the VESA BIOS video extensions of bochs," |
157 |
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_VESA=yes\"" |
158 |
@${ECHO_MSG} |
159 |
.endif |
160 |
.if !defined(WITH_BOCHS_READLINE) |
161 |
@${ECHO_MSG} "If you want to enable readline support in the bochs command lines," |
162 |
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_READLINE=yes\"" |
132 |
.endif |
163 |
.endif |
133 |
@${ECHO_MSG} |
164 |
@${ECHO_MSG} |
134 |
.endif |
165 |
.endif |