1 | # $Id: Portfile 91467 2012-04-02 19:17:28Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name qemu |
---|
6 | version 1.1.1-1 |
---|
7 | revision 1 |
---|
8 | categories emulators |
---|
9 | license GPL-2+ |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | |
---|
13 | description Emulator for various architectures |
---|
14 | long_description QEMU is a generic and open source machine emulator. \ |
---|
15 | It can run OSes and programs made for one machine on a \ |
---|
16 | different machine. By using dynamic translation, it \ |
---|
17 | achieves very good performance. |
---|
18 | |
---|
19 | homepage http://qemu.org |
---|
20 | master_sites ${homepage}/download |
---|
21 | |
---|
22 | use_bzip2 yes |
---|
23 | |
---|
24 | checksums sha1 0754fe79279f58445d4a6e2c18afcbc3f0e1bb00 \ |
---|
25 | rmd160 e1fa73652dbcfd234f862ce1979adf16182f00bc \ |
---|
26 | sha256 6fbaff1fa75aae1a06947cf7cb101c35273712c561b87ef8eaec92aa39734ac8 |
---|
27 | |
---|
28 | patchfiles patch-configure.diff |
---|
29 | |
---|
30 | depends_build port:texinfo \ |
---|
31 | port:pkgconfig |
---|
32 | |
---|
33 | depends_lib port:curl \ |
---|
34 | port:cyrus-sasl2 \ |
---|
35 | port:gnutls \ |
---|
36 | port:libidn \ |
---|
37 | port:libtasn1 \ |
---|
38 | port:ncurses \ |
---|
39 | port:libpng \ |
---|
40 | port:jpeg \ |
---|
41 | port:ossp-uuid |
---|
42 | |
---|
43 | configure.args --cc=${configure.cc} \ |
---|
44 | --host-cc=${configure.cc} |
---|
45 | |
---|
46 | if {${configure.compiler} == "clang" || |
---|
47 | ${configure.compiler} == "llvm-gcc-4.2"} { |
---|
48 | configure.args-append --enable-tcg-interpreter |
---|
49 | } |
---|
50 | |
---|
51 | if {$build_arch != ""} { |
---|
52 | configure.args-append --cpu=${build_arch} |
---|
53 | } |
---|
54 | |
---|
55 | set target_list {} |
---|
56 | pre-configure { |
---|
57 | configure.args-append --target-list=${target_list} |
---|
58 | } |
---|
59 | |
---|
60 | foreach t {i386 x86_64 ppc ppc64 arm cris m68k mips mipsel mips64 mips64el ppcemb sh4 sh4eb sparc} { |
---|
61 | variant target_${t} description "add ${t} target support" "append target_list \",${t}-softmmu\"" |
---|
62 | } |
---|
63 | default_variants +target_i386 +target_x86_64 |
---|
64 | |
---|
65 | # Default universal variant does not work |
---|
66 | universal_variant no |
---|
67 | |
---|
68 | #platform darwin { |
---|
69 | # foreach t {i386 ppc} { |
---|
70 | # variant ${t}_darwin_user description "add ${t} darwin user-mode emulation support" "append target_list \",${t}-darwin-user\"" |
---|
71 | # } |
---|
72 | #} |
---|
73 | |
---|
74 | platform darwin 8 { |
---|
75 | depends_build-append port:gmake |
---|
76 | build.cmd ${prefix}/bin/gmake |
---|
77 | } |
---|
78 | |
---|
79 | post-extract { |
---|
80 | # version 1.1.1 was gzip-encoded and named as a bzip2 file, and version |
---|
81 | # 1.1.1-1 contains an identical source tree to 1.1.1. Unfortunately, |
---|
82 | # Macports expects the extracted directory to end in "-1". |
---|
83 | if {$version == "1.1.1-1"} { |
---|
84 | # rename the source to the expected name |
---|
85 | file rename [string range $worksrcpath 0 end-2] $worksrcpath |
---|
86 | } |
---|
87 | } |
---|
88 | |
---|
89 | livecheck.type regex |
---|
90 | livecheck.url [lindex ${master_sites} 0] |
---|
91 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar |
---|