source: trunk/dports/emulators/bochs/Portfile @ 55324

Last change on this file since 55324 was 55324, checked in by toby@…, 11 years ago

bochs: somebody in irc says this uses carbon

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 55324 2009-08-09 04:46:12Z toby@macports.org $
2
3PortSystem 1.0
4
5name            bochs
6version         2.3.7
7categories      emulators
8maintainers     nomaintainer
9description     cross platform ia-32 emulator
10long_description        Bochs is a highly portable open source IA-32 (x86) \
11        PC emulator written in C++, that runs on most popular platforms. \
12        It emulates the Intel x86 CPU, common I/O devices, and a custom BIOS.
13
14platforms       darwin
15homepage        http://bochs.sourceforge.net/
16master_sites     sourceforge
17checksums       md5 a2e5f922505bf16cabd36bb9d571a2c4
18
19patchfiles      patch-.bochsrc.diff
20
21depends_run     port:wget
22
23configure.args  --exec-prefix=${prefix} \
24                --bindir=${prefix}/bin \
25                --mandir=${prefix}/share/man \
26                --enable-all-optimizations \
27                --enable-sb16=osx \
28                --enable-vbe \
29                --enable-cdrom
30
31variant smp description {Enable symmetric multi-processor support} {
32        configure.args-append --enable-smp --enable-cpu-level=6
33}
34
35pre-destroot {
36        xinstall -m 755 -d ${destroot}${prefix}/bin
37        xinstall -m 755 -d ${destroot}${prefix}/share/bochs
38        xinstall -m 755 -d ${destroot}/Applications/MacPorts
39}
40
41post-destroot {
42        file copy ${worksrcpath}/bochs.app ${destroot}${prefix}/share/bochs
43        system "ln -s ${prefix}/share/bochs/bochs.app ${destroot}/Applications/MacPorts/bochs.app"
44        xinstall -m 755 ${worksrcpath}/bochs ${destroot}${prefix}/bin
45        xinstall -m 755 ${worksrcpath}/bximage ${destroot}${prefix}/bin
46        xinstall -m 755 ${worksrcpath}/bxcommit ${destroot}${prefix}/bin
47        reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" \
48                ${destroot}${prefix}/share/bochs/bochsrc-sample.txt
49}
50
51post-activate {
52        ui_msg "\n
53
54        **** To prepare bochs for use ****
55
561) Rename file bochsrc-sample.txt to bochrc.txt for use.
57   -cd ${prefix}/share/bochs
58   -sudo cp bochsrc-sample.txt bochrc.txt
59
602) Create a disk image for the emulator.
61   -cd ${prefix}/share/bochs
62   -sudo bximage (prompts will guide you)
63   -sudo chmod 777 <diskimg-name>
64
653) Remove the current 'ata0-master:' statement in ${prefix}/share/bochs/bochsrc.txt
66   and replace it with the 'ata0-master:' string displayed at the end of the bximage
67   process.
68
694) Format the disk image using FreeDOS (http://bochs.sourceforge.net/diskimages.html)
70   according to the bochs documentation. (http://bochs.sourceforge.net/)
71
725) Now start bochs using the /Applications/MacPorts/bochs.app program;
73   you may also use the bochs command line utility. \n"
74}
75
76platform darwin 10 {
77        configure.build_arch i386
78}
Note: See TracBrowser for help on using the repository browser.