2006-09-02 20:17:40 +02:00
|
|
|
# $NetBSD: Makefile,v 1.34 2006/09/02 18:17:40 rillig Exp $
|
2004-11-09 14:05:33 +01:00
|
|
|
#
|
|
|
|
|
2006-05-06 20:09:53 +02:00
|
|
|
DISTNAME= qemu-0.8.1
|
2006-09-02 20:17:40 +02:00
|
|
|
PKGREVISION= 4
|
2004-11-09 14:05:33 +01:00
|
|
|
CATEGORIES= emulators
|
|
|
|
MASTER_SITES= http://fabrice.bellard.free.fr/qemu/
|
|
|
|
|
2005-07-29 19:34:16 +02:00
|
|
|
MAINTAINER= xtraeme@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
|
|
|
|
|
|
|
|
CONFLICTS+= qemu-bin-*
|
2005-02-20 00:12:59 +01:00
|
|
|
NOT_FOR_PLATFORM= NetBSD-1.[0-6]*-*
|
2004-11-09 14:05:33 +01:00
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2004-11-09 14:05:33 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
|
2005-05-03 13:18:47 +02:00
|
|
|
GCC_REQD+= 3.0
|
|
|
|
|
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
|
|
|
|
2005-05-18 15:07:32 +02:00
|
|
|
# Remove -march/-mcpu from CFLAGS, otherwise it will fail
|
|
|
|
# to build in the SSE code.
|
2006-01-06 10:24:00 +01:00
|
|
|
BUILDLINK_TRANSFORM+= rm-optarg:-march rm-optarg:-mcpu
|
2005-05-18 15:07:32 +02:00
|
|
|
|
2005-11-04 22:05:51 +01:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
|
|
|
# qemu cannot yet use gcc 4, see the faq/mailing lists
|
|
|
|
# (hint: use gcc_select on darwin/macos to choose gcc 3.3 instead)
|
|
|
|
.if !empty(CC_VERSION:Mgcc-4*)
|
2006-02-11 15:46:16 +01:00
|
|
|
PKG_FAIL_REASON+= "${PKGNAME} cannot use "${CC_VERSION:Q}
|
2005-11-04 22:05:51 +01:00
|
|
|
.endif
|
|
|
|
|
2005-10-01 06:12:32 +02:00
|
|
|
post-install:
|
2006-05-06 20:09:53 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX:Q}/share/doc/qemu
|
2006-02-11 15:46:16 +01:00
|
|
|
${INSTALL_DATA} ${FILESDIR:Q}/Makefile.multinode-NetBSD \
|
2006-05-06 20:09:53 +02:00
|
|
|
${PREFIX:Q}/share/doc/qemu/
|
2005-10-01 06:12:32 +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"
|