diff options
Diffstat (limited to 'emulators/qemu/Makefile')
-rw-r--r-- | emulators/qemu/Makefile | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile index 5578ef2b306f..be8b87b5ec31 100644 --- a/emulators/qemu/Makefile +++ b/emulators/qemu/Makefile @@ -6,19 +6,12 @@ # PORTNAME= qemu -PORTVERSION= 0.9.0 -PORTREVISION= 3 +PORTVERSION= 0.9.1 CATEGORIES= emulators MASTER_SITES= http://fabrice.bellard.free.fr/qemu/:release \ http://qemu.org/:release \ - http://qemu-forum.ipi.fi/qemu-snapshots/:snapshot \ - http://people.fruitsalad.org/nox/qemu/:snapshot \ - http://www.volny.cz/xnavara/qemu/:snapshot \ - http://people.brandeis.edu/~jcoiner/qemu_idedma/:idedma \ - http://people.freebsd.org/~maho/qemu/:misc \ - http://people.freebsd.org/~jkim/:bios -DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:release \ - qemu-bios.bin:bios + http://people.freebsd.org/~maho/qemu/:misc +DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:release DIST_SUBDIR= qemu EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} @@ -30,7 +23,7 @@ USE_GMAKE= yes USE_GETOPT_LONG= yes USE_PERL5= yes USE_GCC= 3.4 -PATCH_STRIP= -p1 +PATCH_STRIP= -lp1 CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC} MAKE_ENV+= BSD_MAKE="${MAKE}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" MAN1= qemu.1 qemu-img.1 @@ -38,7 +31,6 @@ ONLY_FOR_ARCHS= amd64 i386 CONFLICTS= qemu-devel-[0-9]* OPTIONS= KQEMU "Build with (alpha!) accelerator module" Off \ - HACKS_CIRRUS "Large display speedup (buggy!)" Off \ RTL8139_TIMER "allow use of re(4) nic with FreeBSD guests" Off \ SAMBA "samba dependency (for -smb)" Off \ SDL "SDL/X dependency (graphical output)" On \ @@ -46,7 +38,14 @@ OPTIONS= KQEMU "Build with (alpha!) accelerator module" Off \ .include <bsd.port.pre.mk> +.if ${OSVERSION} < 600000 +# 5.x base gcc segfaults in target-mips/op_mem.c +BUILD_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34 +CC= gcc34 +.endif + WITHOUT_CPU_CFLAGS=yes #to avoid problems with register allocation +CFLAGS:= ${CFLAGS:C/-fno-tree-vrp//} .if defined(WITHOUT_SDL) CONFIGURE_ARGS+= --disable-sdl --disable-gfx-check @@ -64,7 +63,6 @@ RUN_DEPENDS+= ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba3 .if defined(WITH_KQEMU) BUILD_DEPENDS+= kqemu-kmod>=1.3.0pre5:${PORTSDIR}/emulators/kqemu-kmod -CONFIGURE_ARGS+= --enable-kqemu .else CONFIGURE_ARGS+= --disable-kqemu .endif @@ -83,7 +81,6 @@ post-extract: @${MKDIR} ${WRKSRC}/kqemu @${TOUCH} ${WRKSRC}/kqemu/Makefile @${ECHO} all: > ${WRKSRC}/kqemu/Makefile.freebsd - @${CP} -p ${_DISTDIR}/qemu-bios.bin ${WRKSRC}/pc-bios/bios.bin pre-patch: @for A in ${ONLY_FOR_ARCHS}; do \ @@ -91,9 +88,6 @@ pre-patch: done post-patch: -.if defined(WITH_HACKS_CIRRUS) || defined (WITH_HACKS) - @cd ${WRKSRC} ; ${PATCH} --quiet < ${DISTDIR}/${DIST_SUBDIR}/patch3_cirrus -.endif .if defined(WITH_RTL8139_TIMER) @cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/rtl8139-re-patch .endif |