pkgsrc/emulators/qemu/Makefile
apb ae6e312fa4 Add patches/patch-ba:
Emulate the speaker port's refresh clock bit.  This is supposed
  to toggle between 0 and 1<<4 every 15 microseconds.  XXX: We use
  gettimeofday() in the real machine instead of a monotonic clock
  in the virtual machine, and we are a bit sloppy about the 15
  microseconds.  This should be good enough for crude loops that
  measure approximate delays by counting how often this line toggles.

Bump PKGREVISION to 1
2007-12-24 10:18:22 +00:00

75 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.50 2007/12/24 10:18:22 apb Exp $
#
DISTNAME= qemu-0.9.0
PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://fabrice.bellard.free.fr/qemu/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.qemu.org/
COMMENT= CPU emulator using dynamic translation
PKG_DESTDIR_SUPPORT= user-destdir
CONFLICTS+= qemu-bin-[0-9]*
NOT_FOR_PLATFORM= NetBSD-1.[0-6]*-*
USE_TOOLS+= gmake perl:build
HAS_CONFIGURE= yes
BUILD_DEPENDS+= texi2html-[0-9]*:../../textproc/texi2html
.include "../../mk/bsd.prefs.mk"
GCC_REQD+= 3.0
.if !empty(MACHINE_PLATFORM:MNetBSD-4*)
USE_PKGSRC_GCC= yes
.endif
CONFIGURE_ENV+= PKGMANDIR=${PKGMANDIR}
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
CONFIGURE_ARGS+= --interp-prefix=${PREFIX:Q}/share/qemu
SUBST_CLASSES+= snd
SUBST_STAGE.snd= post-patch
SUBST_FILES.snd= audio/ossaudio.c
SUBST_SED.snd= -e s,/dev/dsp,${DEVOSSAUDIO:Q},g
SUBST_MESSAGE.snd= Fixing hardcoded audio device.
SUBST_CLASSES+= smbd
SUBST_STAGE.smbd= post-patch
SUBST_FILES.smbd= vl.c
SUBST_SED.smbd= -e s,/usr/sbin/smbd,${PREFIX:Q}/sbin/smbd,g
SUBST_MESSAGE.smbd= Fixing hardcoded paths.
REPLACE_PERL+= texi2pod.pl
# Remove -march/-mcpu from CFLAGS, otherwise it will fail
# to build in the SSE code.
BUILDLINK_TRANSFORM+= rm-optarg:-march rm-optarg:-mcpu rm:-msse rm:-msse2
# Does not build with the stack protector
.if ${OPSYS} == "DragonFly"
CFLAGS+= -fno-stack-protector
.endif
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-4*)
CONFIGURE_ARGS+= --disable-gcc-check
.endif
INSTALLATION_DIRS= ${PKGMANDIR}/man1 share/doc/qemu
post-install:
${INSTALL_DATA} ${FILESDIR}/Makefile.multinode-NetBSD \
${DESTDIR}${PREFIX}/share/doc/qemu/
${INSTALL_MAN} ${WRKSRC}/qemu.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/qemu-img.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"