source: trunk/dports/emulators/bochs/Portfile

Last change on this file was 75924, checked in by raimue@…, 6 years ago

emulators/bochs:
Move --enable-gdb-stub to a new +gdbstub variant, fixes #28378

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 75924 2011-02-13 03:27:41Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                bochs
6version             2.4.5
7revision            4
8categories          emulators
9license             LGPL-2.1+
10platforms           darwin
11maintainers         nomaintainer
12
13description         cross platform ia-32 emulator
14
15long_description    Bochs is a highly portable open source IA-32 (x86) \
16                    PC emulator written in C++, that runs on most popular \
17                    platforms. It emulates the Intel x86 CPU, common I/O \
18                    devices, and a custom BIOS.
19
20homepage            http://bochs.sourceforge.net/
21master_sites        sourceforge
22
23checksums           md5     fda7eadcd9590934d2901f8439631463 \
24                    sha1    e334d31efd79c80454018c9cdafaa0eb75cb018a \
25                    rmd160  a5a52d8f58b8ad7b1d544d4f89043244d99fa242
26
27patchfiles          patch-.bochsrc.diff
28
29depends_lib         port:xorg-libX11 \
30                    port:xorg-libsm \
31                    port:xpm \
32                    port:gettext
33
34configure.args      --exec-prefix=${prefix} \
35                    --bindir=${prefix}/bin \
36                    --mandir=${prefix}/share/man \
37                    --enable-all-optimizations \
38                    --enable-vbe \
39                    --enable-cdrom \
40                    --with-x11
41
42# Disable sound support, see ticket #23938
43#configure.args-append --enable-sb16=osx
44
45variant smp description {Enable symmetric multi-processor support} conflicts gdbstub {
46    configure.args-append --enable-smp --enable-cpu-level=6
47}
48
49variant gdbstub description {Enable GDB stub debugging} conflicts smp {
50    configure.args-append --enable-gdb-stub
51}
52
53post-destroot {
54    reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" \
55        ${destroot}${prefix}/share/doc/bochs/bochsrc-sample.txt
56}
57
58post-activate {
59    if {![file exists ${prefix}/share/bochs/bochsrc.txt]} {
60        ui_msg "File ${prefix}/share/bochs/bochsrc.txt not found, installing sample configuration file"
61        xinstall -m 0644 ${prefix}/share/doc/bochs/bochsrc-sample.txt ${prefix}/share/bochs/bochsrc.txt
62    }
63}
64
65notes "
66To prepare bochs for use:
67
681) Create a disk image for the emulator.
69     cd ${prefix}/share/bochs
70     sudo bximage (prompts will guide you)
71     sudo chmod 777 <diskimg-name>
72
732) Remove the current 'ata0-master:' statement in ${prefix}/share/bochs/bochsrc.txt
74   and replace it with the 'ata0-master:' string displayed at the end of the bximage
75   process.
76
773) Format the disk image using FreeDOS (http://bochs.sourceforge.net/diskimages.html)
78   according to the bochs documentation. (http://bochs.sourceforge.net/)
79
804) Now start bochs from the command line.
81"
82
83livecheck.type      regex
84livecheck.url       http://sourceforge.net/projects/${name}/files/
85livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.