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

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

bochs: update to 2.4.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 65685 2010-03-30 08:02:40Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            bochs
6version         2.4.2
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
17
18checksums       md5     feb07da84b07eed4753549533330b70b \
19                sha1    3e7c8038729cce2b2a9b6a0aa57df933c3120ddc \
20                rmd160  43ca140eb2548fb22850fe04ec5066feacce549d
21
22patchfiles      patch-.bochsrc.diff
23
24depends_run     port:wget
25
26configure.args  --exec-prefix=${prefix} \
27                --bindir=${prefix}/bin \
28                --mandir=${prefix}/share/man \
29                --enable-all-optimizations \
30                --enable-sb16=osx \
31                --enable-vbe \
32                --enable-cdrom
33
34variant smp description {Enable symmetric multi-processor support} {
35        configure.args-append --enable-smp --enable-cpu-level=6
36}
37
38pre-destroot {
39        xinstall -m 755 -d ${destroot}${prefix}/bin
40        xinstall -m 755 -d ${destroot}${prefix}/share/bochs
41        xinstall -m 755 -d ${destroot}${applications_dir}
42}
43
44post-destroot {
45        file copy ${worksrcpath}/bochs.app ${destroot}${prefix}/share/bochs
46        system "ln -s ${prefix}/share/bochs/bochs.app ${destroot}${applications_dir}/bochs.app"
47        xinstall -m 755 ${worksrcpath}/bochs ${destroot}${prefix}/bin
48        xinstall -m 755 ${worksrcpath}/bximage ${destroot}${prefix}/bin
49        xinstall -m 755 ${worksrcpath}/bxcommit ${destroot}${prefix}/bin
50        reinplace "s|\$BXSHARE/|${prefix}/share/bochs/|g" \
51                ${destroot}${prefix}/share/bochs/bochsrc-sample.txt
52}
53
54post-activate {
55        ui_msg "\n
56
57        **** To prepare bochs for use ****
58
591) Rename file bochsrc-sample.txt to bochrc.txt for use.
60   -cd ${prefix}/share/bochs
61   -sudo cp bochsrc-sample.txt bochrc.txt
62
632) Create a disk image for the emulator.
64   -cd ${prefix}/share/bochs
65   -sudo bximage (prompts will guide you)
66   -sudo chmod 777 <diskimg-name>
67
683) Remove the current 'ata0-master:' statement in ${prefix}/share/bochs/bochsrc.txt
69   and replace it with the 'ata0-master:' string displayed at the end of the bximage
70   process.
71
724) Format the disk image using FreeDOS (http://bochs.sourceforge.net/diskimages.html)
73   according to the bochs documentation. (http://bochs.sourceforge.net/)
74
755) Now start bochs using the ${applications_dir}/bochs.app program;
76   you may also use the bochs command line utility. \n"
77}
78
79platform darwin 10 {
80        configure.build_arch i386
81}
Note: See TracBrowser for help on using the repository browser.