blob: 55fd57b8f4708e4619e13c24381f2579754f7803 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $NetBSD: Makefile,v 1.23 2005/12/13 08:39:48 xtraeme Exp $
#
DISTNAME= qemu-0.7.2
PKGREVISION= 4
CATEGORIES= emulators
MASTER_SITES= http://fabrice.bellard.free.fr/qemu/
MAINTAINER= xtraeme@NetBSD.org
HOMEPAGE= http://fabrice.bellard.free.fr/qemu/
COMMENT= CPU emulator using dynamic translation
CONFLICTS+= qemu-bin-*
NOT_FOR_PLATFORM= NetBSD-1.[0-6]*-*
USE_TOOLS+= gmake
HAS_CONFIGURE= yes
GCC_REQD+= 3.0
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
CONFIGURE_ARGS+= --interp-prefix=${PREFIX}/share/qemu
SUBST_CLASSES+= snd smbd
SUBST_STAGE.snd= post-patch
SUBST_FILES.snd= audio/ossaudio.c
SUBST_SED.snd= -e "s,/dev/dsp,${DEVOSSAUDIO},g"
SUBST_MESSAGE.snd= "Fixing hardcoded audio device."
SUBST_STAGE.smbd= post-patch
SUBST_FILES.smbd= vl.c
SUBST_SED.smbd= -e "s,/usr/sbin/smbd,${PREFIX}/sbin/smbd,g"
SUBST_MESSAGE.smbd= "Fixing hardcoded paths."
# Remove -march/-mcpu from CFLAGS, otherwise it will fail
# to build in the SSE code.
BUILDLINK_TRANSFORM+= rm-optarg:-march rm-optarg:-mcpu
.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*)
PKG_FAIL_REASON+= "${PKGNAME} cannot use ${CC_VERSION}"
.endif
post-install:
${INSTALL_DATA} ${FILESDIR}/Makefile.multinode-NetBSD \
${PREFIX}/share/doc/qemu
.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|