blob: e8efe94790fdc2bef32b6d27c3195d8bfc1f2247 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.41 2005/06/01 18:02:46 jlam Exp $
DISTNAME= bochs-2.1.1
PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bochs/}
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://bochs.sourceforge.net/
COMMENT= i386 machine emulator capable of running DOS/Windows
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
USE_TOOLS+= gunzip gzip
USE_LANGUAGES= c c++
ONLY_FOR_COMPILER= gcc
# These options are not enabled by default because they can adversely impact
# performance. The number of processors can be either 1 (default), 2, or 4.
#CONFIGURE_ARGS+= --enable-debugger --enable-disasm
#CONFIGURE_ARGS+= --enable-processors=2
CONFIGURE_ARGS+= --enable-cdrom
CONFIGURE_ARGS+= --enable-ne2000
CONFIGURE_ARGS+= --enable-sb16=dummy
.if !defined(BOCHS_TINY)
CONFIGURE_ARGS+= --enable-new-pit
CONFIGURE_ARGS+= --enable-pci
CONFIGURE_ARGS+= --enable-cpu-level=6
CONFIGURE_ARGS+= --enable-apic
CONFIGURE_ARGS+= --enable-usb
CONFIGURE_ARGS+= --enable-4meg-pages
CONFIGURE_ARGS+= --enable-pae
CONFIGURE_ARGS+= --enable-guest2host-tlb
CONFIGURE_ARGS+= --enable-repeat-speedups
CONFIGURE_ARGS+= --enable-icache
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:M*-*-i386)
CONFIGURE_ARGS+= --enable-fast-function-calls
.endif
CONFIGURE_ARGS+= --enable-global-pages
CONFIGURE_ARGS+= --enable-host-specific-asms
CONFIGURE_ARGS+= --enable-all-optimizations
CONFIGURE_ARGS+= --enable-vbe
CONFIGURE_ARGS+= --enable-fpu
CONFIGURE_ARGS+= --enable-mmx
CONFIGURE_ARGS+= --enable-3dnow
CONFIGURE_ARGS+= --enable-sse=2
CONFIGURE_ARGS+= --enable-daz
CONFIGURE_ARGS+= --enable-sep
.endif # !BOCHS_TINY
CONFIGURE_ENV+= CXXFLAGS="-I${X11BASE}/include ${CXXFLAGS}"
MANCOMPRESSED= yes
MAKE_ENV+= GZIP_CMD=${GZIP_CMD:Q} \
GUNZIP_CMD=${GUNZIP_CMD:Q}
BOCHS_MAINDIR= ${PREFIX}/share/bochs
BOCHS_BIOSDIR= ${BOCHS_MAINDIR}/bios
BOCHS_FONTDIR= ${BOCHS_MAINDIR}/xfonts
.include "../../mk/x11.buildlink3.mk"
post-configure:
${MV} ${WRKSRC}/.bochsrc ${WRKSRC}/.bochsrc.BAK
${SED} -e 's@XXXPREFIXXXX@${PREFIX}@' \
< ${WRKSRC}/.bochsrc.BAK > ${WRKSRC}/.bochsrc
.include "../../mk/bsd.pkg.mk"
|