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

Last change on this file since 75894 was 75894, checked in by raimue@…, 8 years ago

emulators/bochs:
wget is no longer required (was actually used in destroot phase before).
Now builds and works fine for x86_64, so assume the 32-bit restriction came
from Carbon

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 75894 2011-02-12 02:06:59Z raimue@macports.org $
2
3PortSystem          1.0
4
5name                bochs
6version             2.4.5
7revision            3
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                    --enable-gdb-stub \
41                    --with-x11
42
43# Disable sound support, see ticket #23938
44#configure.args-append --enable-sb16=osx
45
46variant smp description {Enable symmetric multi-processor support} {
47    configure.args-append --enable-smp --enable-cpu-level=6
48}
49
50post-destroot {
51    reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" \
52        ${destroot}${prefix}/share/doc/bochs/bochsrc-sample.txt
53}
54
55post-activate {
56    if {![file exists ${prefix}/share/bochs/bochsrc.txt]} {
57        ui_msg "File ${prefix}/share/bochs/bochsrc.txt not found, installing sample configuration file"
58        xinstall -m 0644 ${prefix}/share/doc/bochs/bochsrc-sample.txt ${prefix}/share/bochs/bochsrc.txt
59    }
60}
61
62notes "
63To prepare bochs for use:
64
651) Create a disk image for the emulator.
66     cd ${prefix}/share/bochs
67     sudo bximage (prompts will guide you)
68     sudo chmod 777 <diskimg-name>
69
702) Remove the current 'ata0-master:' statement in ${prefix}/share/bochs/bochsrc.txt
71   and replace it with the 'ata0-master:' string displayed at the end of the bximage
72   process.
73
743) Format the disk image using FreeDOS (http://bochs.sourceforge.net/diskimages.html)
75   according to the bochs documentation. (http://bochs.sourceforge.net/)
76
774) Now start bochs from the command line.
78"
79
80livecheck.type      regex
81livecheck.url       http://sourceforge.net/projects/${name}/files/
82livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.