2007-12-24 11:18:22 +01:00
|
|
|
# $NetBSD: Makefile,v 1.50 2007/12/24 10:18:22 apb Exp $
|
2004-11-09 14:05:33 +01:00
|
|
|
#
|
|
|
|
|
2007-05-21 22:24:44 +02:00
|
|
|
DISTNAME= qemu-0.9.0
|
2007-12-24 11:18:22 +01:00
|
|
|
PKGREVISION= 1
|
2004-11-09 14:05:33 +01:00
|
|
|
CATEGORIES= emulators
|
|
|
|
MASTER_SITES= http://fabrice.bellard.free.fr/qemu/
|
|
|
|
|
2007-07-09 22:01:44 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-01-01 14:48:45 +01:00
|
|
|
HOMEPAGE= http://www.qemu.org/
|
2004-11-09 14:05:33 +01:00
|
|
|
COMMENT= CPU emulator using dynamic translation
|
|
|
|
|
2007-12-18 01:16:56 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2006-09-17 09:51:56 +02:00
|
|
|
CONFLICTS+= qemu-bin-[0-9]*
|
2005-02-20 00:12:59 +01:00
|
|
|
NOT_FOR_PLATFORM= NetBSD-1.[0-6]*-*
|
2004-11-09 14:05:33 +01:00
|
|
|
|
2006-09-16 23:39:30 +02:00
|
|
|
USE_TOOLS+= gmake perl:build
|
2004-11-09 14:05:33 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
|
2006-09-16 23:39:30 +02:00
|
|
|
BUILD_DEPENDS+= texi2html-[0-9]*:../../textproc/texi2html
|
|
|
|
|
2006-09-08 17:27:31 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2005-05-03 13:18:47 +02:00
|
|
|
GCC_REQD+= 3.0
|
|
|
|
|
2006-09-11 13:33:24 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-4*)
|
2007-02-22 20:26:05 +01:00
|
|
|
USE_PKGSRC_GCC= yes
|
2006-09-08 17:27:31 +02:00
|
|
|
.endif
|
|
|
|
|
2006-09-02 20:17:40 +02:00
|
|
|
CONFIGURE_ENV+= PKGMANDIR=${PKGMANDIR}
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
|
2006-02-11 15:46:16 +01:00
|
|
|
CONFIGURE_ARGS+= --interp-prefix=${PREFIX:Q}/share/qemu
|
2004-11-09 14:05:33 +01:00
|
|
|
|
2006-02-11 15:46:16 +01:00
|
|
|
SUBST_CLASSES+= snd
|
2004-11-15 12:35:30 +01:00
|
|
|
SUBST_STAGE.snd= post-patch
|
|
|
|
SUBST_FILES.snd= audio/ossaudio.c
|
2006-02-11 15:46:16 +01:00
|
|
|
SUBST_SED.snd= -e s,/dev/dsp,${DEVOSSAUDIO:Q},g
|
|
|
|
SUBST_MESSAGE.snd= Fixing hardcoded audio device.
|
|
|
|
|
|
|
|
SUBST_CLASSES+= smbd
|
2005-12-13 09:39:48 +01:00
|
|
|
SUBST_STAGE.smbd= post-patch
|
|
|
|
SUBST_FILES.smbd= vl.c
|
2006-02-11 15:46:16 +01:00
|
|
|
SUBST_SED.smbd= -e s,/usr/sbin/smbd,${PREFIX:Q}/sbin/smbd,g
|
|
|
|
SUBST_MESSAGE.smbd= Fixing hardcoded paths.
|
2004-11-15 12:35:30 +01:00
|
|
|
|
2006-09-16 23:39:30 +02:00
|
|
|
REPLACE_PERL+= texi2pod.pl
|
|
|
|
|
2005-05-18 15:07:32 +02:00
|
|
|
# Remove -march/-mcpu from CFLAGS, otherwise it will fail
|
|
|
|
# to build in the SSE code.
|
2007-09-10 14:18:13 +02:00
|
|
|
BUILDLINK_TRANSFORM+= rm-optarg:-march rm-optarg:-mcpu rm:-msse rm:-msse2
|
2005-05-18 15:07:32 +02:00
|
|
|
|
2006-12-06 23:31:28 +01:00
|
|
|
# Does not build with the stack protector
|
|
|
|
.if ${OPSYS} == "DragonFly"
|
|
|
|
CFLAGS+= -fno-stack-protector
|
|
|
|
.endif
|
|
|
|
|
2005-11-04 22:05:51 +01:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
|
|
|
.if !empty(CC_VERSION:Mgcc-4*)
|
2006-09-05 02:44:38 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-gcc-check
|
2005-11-04 22:05:51 +01:00
|
|
|
.endif
|
|
|
|
|
2007-12-18 01:16:56 +01:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man1 share/doc/qemu
|
2005-10-01 06:12:32 +02:00
|
|
|
|
2007-12-18 01:16:56 +01:00
|
|
|
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
|
2006-09-16 23:39:30 +02:00
|
|
|
|
2004-11-09 14:05:33 +01:00
|
|
|
.include "../../devel/SDL/buildlink3.mk"
|
2006-03-09 22:04:39 +01:00
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
2004-11-15 12:35:30 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2004-11-09 14:05:33 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|