ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/emulators/bochs/Makefile
Revision: 2111
Committed: Wed Aug 1 19:43:04 2007 UTC (16 years, 9 months ago) by laffer1
File size: 4354 byte(s)
Log Message:
Set OSREL accordingly

File Contents

# Content
1 # ex:ts=8
2 # Ports collection makefile for: bochs
3 # Date created: 16 December 1997
4 # Whom: alex
5 #
6 # $FreeBSD: ports/emulators/bochs/Makefile,v 1.74 2006/05/17 13:08:24 vs Exp $
7 #
8
9 PORTNAME= bochs
10 PORTVERSION= 2.2.6
11 PORTEPOCH= 2
12 CATEGORIES= emulators
13 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
14 MASTER_SITE_SUBDIR= ${PORTNAME}
15
16 MAINTAINER= ports@FreeBSD.org
17 COMMENT= An IA-32 (x86) PC emulator that runs DOS, Win 95, and more
18
19 BUILD_DEPENDS= mkfontdir:${X_CLIENTS_PORT}
20 RUN_DEPENDS= mkfontdir:${X_CLIENTS_PORT}
21
22 USE_XLIB= yes
23 USE_GMAKE= yes
24
25 GNU_CONFIGURE= yes
26 CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd6.0
27 CONFIGURE_ARGS= --disable-split-hd \
28 --enable-all-optimizations \
29 --with-x11 \
30 --enable-pci \
31 --enable-sb16=freebsd \
32 --enable-ne2000 \
33 --enable-vbe
34
35 CFLAGS+= -fno-rtti -fno-exceptions -fomit-frame-pointer
36
37 MANCOMPRESSED= yes
38 MAN1= bochs.1 bochs-dlx.1 bxcommit.1 bximage.1
39 MAN5= bochsrc.5
40
41 SUB_FILES= pkg-message
42
43 .if defined(WITH_BOCHS_SMP)
44 CONFIGURE_ARGS+= --enable-smp
45 WITH_BOCHS_CPU_LEVEL= 6
46 .endif
47
48 .if defined(WITH_BOCHS_CPU_LEVEL)
49 .if ${WITH_BOCHS_CPU_LEVEL} < 3 || ${WITH_BOCHS_CPU_LEVEL} > 6
50 IGNORE= cannot install: WITH_BOCHS_CPU_LEVEL must be an integer value between 3 and 6
51 .endif
52 CONFIGURE_ARGS+= --enable-cpu-level=${WITH_BOCHS_CPU_LEVEL}
53 .if ${WITH_BOCHS_CPU_LEVEL} < 5
54 CONFIGURE_ARGS+= --disable-mmx
55 .endif
56 .endif
57
58 .if defined(WITH_BOCHS_GUI_TERM)
59 CONFIGURE_ARGS+= --with-term
60 .endif
61
62 .if defined(WITH_BOCHS_GUI_NOGUI)
63 CONFIGURE_ARGS+= --with-nogui
64 .endif
65
66 .if defined(WITH_BOCHS_AMD64)
67 CONFIGURE_ARGS+= --enable-x86-64
68 .endif
69
70 .if defined(WITH_BOCHS_DEBUGGER)
71 CONFIGURE_ARGS+= --enable-debugger --enable-disasm
72 .endif
73
74 .if defined(WITH_BOCHS_X86_DEBUGGER)
75 CONFIGURE_ARGS+= --enable-x86-debugger
76 .endif
77
78 .if defined(WITH_BOCHS_PORT_E9_HACK)
79 CONFIGURE_ARGS+= --enable-port-e9-hack
80 .endif
81
82 pre-patch::
83 @${ECHO_MSG}
84 .if !defined(WITH_BOCHS_CPU_LEVEL)
85 @${ECHO_MSG} "If you want to change the processor level to emulate (default is 5, aka Pentium)"
86 @${ECHO_MSG} "Choices are 3,4,5,6 which mean target 386, 486, Pentium or Pentium Pro emulation"
87 @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_CPU_LEVEL=<cpu level>\""
88 @${ECHO_MSG}
89 .endif
90 .if !defined(WITH_BOCHS_GUI_TERM)
91 @${ECHO_MSG} "If you want to enable the plain text, console-based bochs interface"
92 @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_GUI_TERM=yes\""
93 @${ECHO_MSG}
94 .endif
95 .if !defined(WITH_BOCHS_GUI_NOGUI)
96 @${ECHO_MSG} "If you want the bochs display"
97 @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_GUI_NOGUI=yes\""
98 @${ECHO_MSG}
99 .endif
100 .if !defined(WITH_BOCHS_SMP)
101 @${ECHO_MSG} "If you want to compile with SMP support (implies WITH_BOCHS_CPU_LEVEL=6),"
102 @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_SMP\""
103 @${ECHO_MSG}
104 .endif
105 .if !defined(WITH_BOCHS_DEBUGGER)
106 @${ECHO_MSG} "If you want to compile with builtin debugger and disassembler support,"
107 @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_DEBUGGER=yes\""
108 @${ECHO_MSG}
109 .endif
110 .if !defined(WITH_BOCHS_X86_DEBUGGER)
111 @${ECHO_MSG} "If you want to compile with x86 hardware debugger support,"
112 @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_X86_DEBUGGER=yes\""
113 @${ECHO_MSG}
114 .endif
115 .if !defined(WITH_BOCHS_AMD64)
116 @${ECHO_MSG} "If you want to compile with AMD x86-64 support,"
117 @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_AMD64=yes\""
118 @${ECHO_MSG}
119 .endif
120 .if !defined(WITH_BOCHS_PORT_E9_HACK)
121 @${ECHO_MSG} "If you want to compile with port e9 hack support,"
122 @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_BOCHS_PORT_E9_HACK=yes\""
123 @${ECHO_MSG}
124 .endif
125
126 post-patch:
127 @${REINPLACE_CMD} -E ' \
128 s|file=bios/|file=${DATADIR}/|; \
129 s|bios/VGABIOS|${DATADIR}/VGABIOS|; \
130 ' ${WRKSRC}/.bochsrc
131 @${REINPLACE_CMD} -E ' \
132 s|(^sharedir.+=).+|\1 ${DATADIR}|; \
133 s|(^docdir.+=).+|\1 ${DOCSDIR}|; \
134 ' ${WRKSRC}/Makefile.in
135 @${REINPLACE_CMD} -e ' \
136 s|/usr/local/share/bochs|${DATADIR}|; \
137 s|/usr/local/share/doc/bochs|${DOCSDIR}|; \
138 ' ${WRKSRC}/doc/docbook/user/user.dbk ${WRKSRC}/doc/man/*.1 \
139 ${WRKSRC}/doc/man/*.5
140
141 post-install:
142 .if !defined(NOPORTDOCS)
143 @${MKDIR} ${DOCSDIR}
144 @${INSTALL_DATA} ${WRKSRC}/docs-html/*.txt ${DOCSDIR}
145 @${MKDIR} ${DOCSDIR}/html
146 @${INSTALL_DATA} ${WRKSRC}/docs-html/*.html ${DOCSDIR}/html
147 .endif
148
149 .include <bsd.port.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.3