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

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

Add depends_skip_archcheck apple-gcc42; see #31584

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 85585 2011-10-14 20:17:51Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    qemu
6version                 0.14.1
7categories              emulators
8license                 GPL-2+
9platforms               darwin
10maintainers             nomaintainer
11
12description             Emulator for various architectures
13long_description        QEMU is a generic and open source machine emulator. \
14                        It can run OSes and programs made for one machine on a \
15                        different machine. By using dynamic translation, it \
16                        achieves very good performance.
17
18homepage                http://wiki.qemu.org/
19master_sites            nongnu
20
21checksums           md5     b6c713a8db638e173af53a62d5178640 \
22                    sha1    1a5003a03004b62b52562d1cbb8f50c5f135e0b8 \
23                    rmd160  0601ff4e613fea0a6ce80907e2bfa11704048b36
24
25patchfiles              patch-configure.diff
26
27depends_build           port:texinfo
28depends_lib             port:curl \
29                        port:cyrus-sasl2 \
30                        port:gnutls \
31                        port:libidn \
32                        port:libtasn1 \
33                        port:ncurses \
34                        port:libpng \
35                        port:jpeg \
36                        port:ossp-uuid
37
38# target-i386/exec.h:31:30: error: global register variables are not supported
39if {${configure.compiler} == "clang" ||
40    ${configure.compiler} == "llvm-gcc-4.2"} {
41    configure.compiler gcc-4.2
42    if {![file executable ${configure.cc}]} {
43        depends_build-append port:apple-gcc42
44        depends_skip_archcheck apple-gcc42
45        configure.compiler apple-gcc-4.2
46    }
47}
48
49configure.args          --cc=${configure.cc} \
50                        --host-cc=${configure.cc}
51if {$build_arch != ""} {
52    configure.args-append --cpu=${build_arch}
53}
54
55set target_list {}
56pre-configure {
57    configure.args-append --target-list=${target_list}
58}
59
60foreach 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}
63default_variants    +target_i386
64
65# Default universal variant does not work
66universal_variant       no
67
68platform darwin 8 {
69    depends_build-append port:gmake
70    build.cmd ${prefix}/bin/gmake
71}
72
73livecheck.type regex
74livecheck.url http://download.savannah.gnu.org/releases/${name}/
75livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar
Note: See TracBrowser for help on using the repository browser.