ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/emulators/bochs/Makefile
Revision: 6715
Committed: Thu Oct 16 22:12:56 2008 UTC (15 years, 6 months ago) by laffer1
File size: 4368 byte(s)
Log Message:
license

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

Properties

Name Value
cvs2svn:cvs-rev 1.4