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

Last change on this file since 2123 was 2123, checked in by mij, 17 years ago

Add CVS Id tags.

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1# $Id: Portfile,v 1.9 2003/03/03 06:29:42 mij Exp $
2
3PortSystem 1.0
4name            bochs
5version         1.4.1
6revision        0
7categories      emulators
8maintainers     jpm@opendarwin.org
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 includes emulation of the Intel x86 CPU, common I/O devices, \
13        and a custom BIOS.  Currently, bochs can be compiled to emulate a \
14        386, 486 or Pentium CPU.
15platforms       darwin
16master_sites    http://unc.dl.sourceforge.net/sourceforge/bochs/ \
17                http://telia.dl.sourceforge.net/sourceforge/bochs/ \
18                http://easynews.dl.sourceforge.net/sourceforge/bochs/ \
19                http://umn.dl.sourceforge.net/sourceforge/bochs/ \
20                http://twtelecom.dl.sourceforge.net/sourceforge/bochs/ \
21                http://belnet.dl.sourceforge.net/sourceforge/bochs/ \
22                http://switch.dl.sourceforge.net/sourceforge/bochs/ \
23                http://cesnet.dl.sourceforge.net/sourceforge/bochs/
24checksums       md5 12e591b5cec2e0051e18605483f64678
25patchfiles      patch-Makefile.in patch-cdrom_osx
26post-patch {
27        set path "${portpath}/${workdir}/${worksrcdir}"
28        set data_dir "${prefix}/bochs"
29       
30        reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bochs-dlx.1"
31        reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bochs.1"
32        reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bochsrc.1"
33        reinplace "s|/usr/local/bochs|${data_dir}|g" "${path}/doc/man/bximage.1"
34       
35        reinplace "s|\@VERSION\@|${version}|g" "${path}/doc/man/bochs-dlx.1"
36        reinplace "s|\@VERSION\@|${version}|g" "${path}/doc/man/bochs.1"
37        reinplace "s|\@VERSION\@|${version}|g" "${path}/doc/man/bochsrc.1"
38        reinplace "s|\@VERSION\@|${version}|g" "${path}/doc/man/bximage.1"
39
40        reinplace "s|vgaromimage: bios/|vgaromimage: ${data_dir}/${version}/|g" "${path}/doc/man/bochsrc.1"
41        reinplace "s|romimage: file=bios/|romimage: file=${data_dir}/${version}/|g" "${path}/doc/man/bochsrc.1"
42
43        reinplace "s|vgaromimage: bios/|vgaromimage: ${data_dir}/${version}/|g" "${path}/.bochsrc"
44        reinplace "s|romimage: file=bios/|romimage: file=${data_dir}/${version}/|g" "${path}/.bochsrc"
45}
46depends_run     bin:wget:wget
Note: See TracBrowser for help on using the repository browser.