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

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

bochs: use ${applications_dir}

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[20294]1# $Id: Portfile 55327 2009-08-09 06:27:42Z ryandesign@macports.org $
[2123]2
[1028]3PortSystem 1.0
[34657]4
[1030]5name            bochs
[42041]6version         2.3.7
[1028]7categories      emulators
[30226]8maintainers     nomaintainer
[1028]9description     cross platform ia-32 emulator
[1460]10long_description        Bochs is a highly portable open source IA-32 (x86) \
11        PC emulator written in C++, that runs on most popular platforms. \
[17208]12        It emulates the Intel x86 CPU, common I/O devices, and a custom BIOS.
13
[1028]14platforms       darwin
[17112]15homepage        http://bochs.sourceforge.net/
[4801]16master_sites     sourceforge
[42041]17checksums       md5 a2e5f922505bf16cabd36bb9d571a2c4
[1028]18
[42041]19patchfiles      patch-.bochsrc.diff
[1028]20
[17208]21depends_run     port:wget
22
[38785]23configure.args  --exec-prefix=${prefix} \
[17208]24                --bindir=${prefix}/bin \
25                --mandir=${prefix}/share/man \
26                --enable-all-optimizations \
27                --enable-sb16=osx \
28                --enable-vbe \
29                --enable-cdrom
30
[34657]31variant smp description {Enable symmetric multi-processor support} {
[17208]32        configure.args-append --enable-smp --enable-cpu-level=6
[1028]33}
[17208]34
35pre-destroot {
[34657]36        xinstall -m 755 -d ${destroot}${prefix}/bin
[17208]37        xinstall -m 755 -d ${destroot}${prefix}/share/bochs
[55327]38        xinstall -m 755 -d ${destroot}${applications_dir}
[17208]39}
40
41post-destroot {
42        file copy ${worksrcpath}/bochs.app ${destroot}${prefix}/share/bochs
[55327]43        system "ln -s ${prefix}/share/bochs/bochs.app ${destroot}${applications_dir}/bochs.app"
[17208]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
[55327]725) Now start bochs using the ${applications_dir}/bochs.app program;
[17208]73   you may also use the bochs command line utility. \n"
74}
[55324]75
76platform darwin 10 {
77        configure.build_arch i386
78}
Note: See TracBrowser for help on using the repository browser.