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

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

qemu: don't build with llvm, fails to build (clang) or crashes at runtime (llvm-gcc)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 81288 2011-07-29 02:15:17Z jmr@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        configure.compiler apple-gcc-4.2
45    }
46}
47
48configure.args          --cc=${configure.cc} \
49                        --host-cc=${configure.cc}
50if {$build_arch != ""} {
51    configure.args-append --cpu=${build_arch}
52}
53
54set target_list {}
55pre-configure {
56    configure.args-append --target-list=${target_list}
57}
58
59foreach t {i386 x86_64 ppc ppc64 arm cris m68k mips mipsel mips64 mips64el ppcemb sh4 sh4eb sparc} {
60    variant target_${t} description "add ${t} target support" "append target_list \",${t}-softmmu\""
61}
62default_variants    +target_i386
63
64# Default universal variant does not work
65universal_variant       no
66
67platform darwin 8 {
68    depends_build-append port:gmake
69    build.cmd ${prefix}/bin/gmake
70}
71
72livecheck.type regex
73livecheck.url http://download.savannah.gnu.org/releases/${name}/
74livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar
Note: See TracBrowser for help on using the repository browser.