summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/Makefile
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2010-02-08 22:19:29 +0000
committerJuergen Lock <nox@FreeBSD.org>2010-02-08 22:19:29 +0000
commit2a658a958c02a177bc9c916816796d0d30ba85dd (patch)
tree006e5d12ec6bc756d9822b7c4dbbfc520c7162f7 /emulators/qemu-devel/Makefile
parentThis is a separate DBIx::Class model class for HTML::FormHandler (diff)
- Welcome emulators/qemu-devel ppc host support! :) [1]
- Attempt to make the pkg-message.s a little more readable. [2] - Bump PORTREVISIONs. Submitted by: Andreas Tobler <andreast@fgznet.ch> [1] Submitted by: wkoszek [2] (with modifications)
Diffstat (limited to 'emulators/qemu-devel/Makefile')
-rw-r--r--emulators/qemu-devel/Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/emulators/qemu-devel/Makefile b/emulators/qemu-devel/Makefile
index 3bfabc12ae8c..06c30830fe44 100644
--- a/emulators/qemu-devel/Makefile
+++ b/emulators/qemu-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= qemu
PORTVERSION= 0.12.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SAVANNAH}:release \
${MASTER_SITE_LOCAL}:snapshot \
@@ -26,7 +26,7 @@ USE_PERL5= yes
PATCH_STRIP= -p1
MAKE_ENV+= BSD_MAKE="${MAKE}" LDFLAGS="${LDFLAGS}"
MAN1= qemu.1 qemu-img.1
-ONLY_FOR_ARCHS= amd64 i386
+ONLY_FOR_ARCHS= amd64 i386 powerpc
CONFLICTS= qemu-[0-9]*
MAKE_JOBS_SAFE= yes
@@ -87,12 +87,29 @@ BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html
MAKE_ARGS+= ARCH=x86_64
.endif
+.if ${ARCH} == "powerpc"
+MAKE_ARGS+= ARCH=ppc
+.endif
+
pre-patch:
@for A in ${ONLY_FOR_ARCHS}; do \
${MKDIR} ${WRKSRC}/bsd/$$A; \
done
post-patch:
+.if ${ARCH} == "powerpc"
+.if ${OSVERSION} < 800030
+# These OSVERSION don't have all the needed long double fns in their
+# libc so just disable 80 bit floats completely.
+ @cd ${WRKSRC} && ${PATCH} --quiet -R ${PATCH_STRIP} < ${FILESDIR}/patch-libmath_FreeBSD-version
+ @cd ${WRKSRC} && ${PATCH} --quiet -R ${PATCH_STRIP} < ${FILESDIR}/patch-fbsd
+.else
+# ...else we only need to disable the libmath build. (since its
+# x86-specific.)
+ @cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/revert-fbsd-libmath-patch
+.endif
+.endif
+
.if defined(WITH_RTL8139_TIMER)
@cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/rtl8139-re-patch
.endif