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

Last change on this file since 67220 was 67062, checked in by ryandesign@…, 10 years ago

bochs: whitespace changes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 67062 2010-04-28 05:11:28Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                bochs
6version             2.4.5
7categories          emulators
8platforms           darwin
9maintainers         nomaintainer
10
11description         cross platform ia-32 emulator
12
13long_description    Bochs is a highly portable open source IA-32 (x86) \
14                    PC emulator written in C++, that runs on most popular \
15                    platforms. It emulates the Intel x86 CPU, common I/O \
16                    devices, and a custom BIOS.
17
18homepage            http://bochs.sourceforge.net/
19master_sites        sourceforge
20
21checksums           md5     fda7eadcd9590934d2901f8439631463 \
22                    sha1    e334d31efd79c80454018c9cdafaa0eb75cb018a \
23                    rmd160  a5a52d8f58b8ad7b1d544d4f89043244d99fa242
24
25patchfiles          patch-.bochsrc.diff
26
27depends_run         port:wget
28
29if {[info exists supported_archs]} {
30    supported_archs i386 ppc
31}
32switch ${configure.build_arch} {
33    x86_64 {
34        configure.build_arch i386
35    }
36    ppc64 {
37        configure.build_arch ppc
38    }
39}
40
41configure.args      --exec-prefix=${prefix} \
42                    --bindir=${prefix}/bin \
43                    --mandir=${prefix}/share/man \
44                    --enable-all-optimizations \
45                    --enable-sb16=osx \
46                    --enable-vbe \
47                    --enable-cdrom
48
49variant smp description {Enable symmetric multi-processor support} {
50    configure.args-append --enable-smp --enable-cpu-level=6
51}
52
53post-destroot {
54    xinstall -d ${destroot}${prefix}/share/bochs
55    file copy ${worksrcpath}/bochs.app ${destroot}${prefix}/share/bochs
56    system "ln -s ${prefix}/share/bochs/bochs.app ${destroot}${applications_dir}/bochs.app"
57    xinstall -W ${worksrcpath} bochs bximage bxcommit ${destroot}${prefix}/bin
58    reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" \
59        ${destroot}${prefix}/share/bochs/bochsrc-sample.txt
60}
61
62notes "
63**** To prepare bochs for use ****
64
651) Rename file bochsrc-sample.txt to bochrc.txt for use.
66   -cd ${prefix}/share/bochs
67   -sudo cp bochsrc-sample.txt bochrc.txt
68
692) Create a disk image for the emulator.
70   -cd ${prefix}/share/bochs
71   -sudo bximage (prompts will guide you)
72   -sudo chmod 777 <diskimg-name>
73
743) Remove the current 'ata0-master:' statement in ${prefix}/share/bochs/bochsrc.txt
75   and replace it with the 'ata0-master:' string displayed at the end of the bximage
76   process.
77
784) Format the disk image using FreeDOS (http://bochs.sourceforge.net/diskimages.html)
79   according to the bochs documentation. (http://bochs.sourceforge.net/)
80
815) Now start bochs using the ${applications_dir}/bochs.app program;
82   you may also use the bochs command line utility.
83"
84
85livecheck.type      regex
86livecheck.url       http://sourceforge.net/projects/${name}/files/
87livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.