Skip to content

Instantly share code, notes, and snippets.

@vasi
Created September 6, 2012 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vasi/3660872 to your computer and use it in GitHub Desktop.
Save vasi/3660872 to your computer and use it in GitHub Desktop.
qemu ppc worky
# $Id: Portfile 97300 2012-09-03 03:05:48Z rmstonecipher@macports.org $
PortSystem 1.0
name qemu
version 1.1.1
revision 1
categories emulators
license GPL-2+
platforms darwin
maintainers nomaintainer
description Emulator for various architectures
long_description QEMU is a generic and open source machine emulator. \
It can run OSes and programs made for one machine on a \
different machine. By using dynamic translation, it \
achieves very good performance.
homepage http://qemu.org
master_sites ${homepage}/download
use_bzip2 yes
# 1.1.1 was repackaged as 1.1.1-1
distname ${name}-${version}-1
worksrcdir ${name}-${version}
checksums rmd160 e1fa73652dbcfd234f862ce1979adf16182f00bc \
sha256 6fbaff1fa75aae1a06947cf7cb101c35273712c561b87ef8eaec92aa39734ac8
patchfiles patch-configure.diff
depends_build port:texinfo \
port:pkgconfig \
port:gcc47
depends_lib port:curl \
port:cyrus-sasl2 \
port:gnutls \
port:libidn \
port:libtasn1 \
port:ncurses \
port:libpng \
port:jpeg \
port:ossp-uuid
# Only newish GCC allows TCG, and won't break the ppc target
configure.compiler macports-gcc-4.7
configure.args --cc=${configure.cc} \
--host-cc=${configure.cc}
if {$build_arch != ""} {
configure.args-append --cpu=${build_arch}
}
set target_list {}
pre-configure {
configure.args-append --target-list=${target_list}
}
pre-build {
# Force a compiler that understands Obj-C blocks
system -W ${worksrcpath} "${build.cmd} CC=clang ui/cocoa.o"
}
foreach t {i386 x86_64 ppc ppc64 arm cris m68k mips mipsel mips64 mips64el ppcemb sh4 sh4eb sparc} {
variant target_${t} description "add ${t} target support" "append target_list \",${t}-softmmu\""
}
default_variants +target_i386 +target_x86_64
# Default universal variant does not work
universal_variant no
platform darwin 8 {
depends_build-append port:gmake
build.cmd ${prefix}/bin/gmake
}
livecheck.type regex
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)(?:-\\d+)*\\.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment