source: trunk/dports/emulators/qemu/Portfile @ 57246

Last change on this file since 57246 was 55486, checked in by jmr@…, 11 years ago

qemu: update to 0.10.6, enable some more targets by default and add variants for the rest, use correct host compiler

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 55486 2009-08-12 03:29:56Z jmr@macports.org $
2
3PortSystem 1.0
4
5name                    qemu
6version                 0.10.6
7categories              emulators
8platforms               darwin
9maintainers             nomaintainer
10
11description             x86 and PowerPC Emulator
12long_description        QEMU is a FAST! processor emulator using dynamic \
13                        translation to achieve good emulation speed. It \
14                        can emulate a Full PC System and has basic support \
15                        for PowerMac Emulation.
16
17homepage                http://www.nongnu.org/qemu/
18master_sites            nongnu
19
20checksums               md5     e28f4b2d6faef178da44c03224feecb6 \
21                        sha1    9432738ba513e07c981097468945b2e3ad9cb81e \
22                        rmd160  1321a10777d2e0c6b53887d0525a28cc1b36ec9b
23
24patchfiles              patch-configure.diff
25
26configure.args          --cc=${configure.cc} \
27                        --host-cc=${configure.cc}
28
29set target_list i386-softmmu,x86_64-softmmu,ppc-softmmu,ppc64-softmmu
30pre-configure {
31    configure.args-append --target-list=${target_list}
32}
33
34platform darwin {
35    if {[info exists build_arch]} {
36        configure.args-append --cpu=${build_arch}
37    } elseif {${os.arch} == "powerpc"} {
38        configure.args-append --cpu=ppc
39    } else {
40        configure.args-append --cpu=i386
41    }
42}
43
44foreach t {arm cris m68k mips mipsel mips64 mips64el ppcemb sh4 sh4eb sparc} {
45    variant target_${t} description "add ${t} target support" "append target_list \",${t}-softmmu\""
46}
Note: See TracBrowser for help on using the repository browser.