aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/qemu/Makefile
blob: 4d27ba82553bd3858f0533ea1f82988c21f2de3f (plain) (blame)
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
# New ports collection makefile for:    qemu
# Date created:         2004/05/31
# Whom:             Juergen Lock <nox@jelal.kn-bremen.de>
#
# $FreeBSD$
#

PORTNAME=   qemu
PORTVERSION=    0.6.2s.20050305
CATEGORIES= emulators
MASTER_SITES=   http://people.fruitsalad.org/nox/qemu/ \
        http://dad-answers.com/qemu/
DISTNAME=   ${PORTNAME}-snapshot-2005-03-05_23

MAINTAINER= nox@jelal.kn-bremen.de
COMMENT=    QEMU CPU Emulator

BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html
RUN_DEPENDS+=   ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba

HAS_CONFIGURE=  yes
USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GETOPT_LONG=    yes
USE_SDL=    sdl
USE_PERL5=  yes
PATCH_STRIP=    -p1
CONFIGURE_ARGS+=    --prefix=${PREFIX} --cc=${CC}\ -I${PREFIX}/include
MAN1=       qemu.1 qemu-img.1
ONLY_FOR_ARCHS= i386 amd64 powerpc

# gcc34 (system cc on 5.x now) has problems with qemu on amd64
# (doesnt build target-i386/op.c), try the one in ports which is newer
.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64" && ${OSVERSION} >= 502126
BROKEN=     Does not compile
CC=     gcc34
CXX=        g++34
BUILD_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34
GCCVERSION= 030402
.else
USE_GCC=    3.4
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>