2004-06-03 02:12:52 +00:00
|
|
|
# New ports collection makefile for: qemu
|
|
|
|
# Date created: 2004/05/31
|
|
|
|
# Whom: Juergen Lock <nox@jelal.kn-bremen.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qemu
|
2005-10-31 13:43:13 +00:00
|
|
|
PORTVERSION= 0.7.2s.20051030
|
|
|
|
PORTREVISION= 0
|
2004-06-03 02:12:52 +00:00
|
|
|
CATEGORIES= emulators
|
2005-10-31 13:43:13 +00:00
|
|
|
MASTER_SITES= http://www.qemu.org/:release \
|
|
|
|
http://people.fruitsalad.org/nox/qemu/:snapshot \
|
|
|
|
http://qemu.dad-answers.com/download/qemu/:snapshot
|
2005-10-31 15:07:44 +00:00
|
|
|
DISTNAME= ${PORTNAME}-snapshot-2005-10-30_23
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot
|
2004-06-03 02:12:52 +00:00
|
|
|
|
|
|
|
MAINTAINER= nox@jelal.kn-bremen.de
|
|
|
|
COMMENT= QEMU CPU Emulator
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html
|
2005-05-01 07:39:11 +00:00
|
|
|
.if defined(WITH_SAMBA)
|
2004-10-25 14:57:30 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba
|
2005-05-01 07:39:11 +00:00
|
|
|
.endif
|
2005-05-05 12:41:10 +00:00
|
|
|
.if defined(WITH_KQEMU)
|
2005-10-31 13:43:13 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/kqemu/kqemu.h:${PORTSDIR}/emulators/kqemu-kmod
|
2005-05-05 12:41:10 +00:00
|
|
|
.endif
|
|
|
|
|
2004-06-05 12:28:31 +00:00
|
|
|
HAS_CONFIGURE= yes
|
2005-05-05 12:41:10 +00:00
|
|
|
USE_BZIP2= yes
|
2004-06-03 02:12:52 +00:00
|
|
|
USE_GMAKE= yes
|
2004-06-05 12:28:31 +00:00
|
|
|
USE_GETOPT_LONG= yes
|
2004-06-03 02:12:52 +00:00
|
|
|
USE_SDL= sdl
|
|
|
|
USE_PERL5= yes
|
|
|
|
PATCH_STRIP= -p1
|
2005-05-01 07:39:11 +00:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC}
|
|
|
|
MAKE_ENV+= BSD_MAKE=${MAKE}
|
2004-11-17 09:47:38 +00:00
|
|
|
MAN1= qemu.1 qemu-img.1
|
2005-05-01 07:39:11 +00:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
2005-05-05 12:41:10 +00:00
|
|
|
.if defined(WITH_KQEMU)
|
2005-09-10 17:04:42 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-kqemu
|
2005-05-05 12:41:10 +00:00
|
|
|
.else
|
2005-09-10 17:04:42 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-kqemu
|
2005-05-05 12:41:10 +00:00
|
|
|
.endif
|
2004-06-03 02:12:52 +00:00
|
|
|
|
2005-01-08 16:21:01 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-05-01 07:39:11 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
ARCH= x86_64
|
2005-01-08 16:21:01 +00:00
|
|
|
.endif
|
2005-05-01 07:39:11 +00:00
|
|
|
USE_GCC= 3.4
|
|
|
|
|
|
|
|
pre-everything::
|
2005-09-10 17:04:42 +00:00
|
|
|
.if !defined(WITH_KQEMU)
|
2005-05-05 12:41:10 +00:00
|
|
|
@${ECHO_MSG} "Notice: you can build qemu with the (alpha!) kqemu accelerator kernel module"
|
|
|
|
@${ECHO_MSG} "by defining WITH_KQEMU."
|
|
|
|
.endif
|
2005-05-01 07:39:11 +00:00
|
|
|
.if !defined(WITH_SAMBA) && !exists(${LOCALBASE}/sbin/smbd)
|
|
|
|
@${ECHO_MSG} "Notice: if you need qemu's -smb option (smb-export local dir to guest)"
|
|
|
|
@${ECHO_MSG} "then you also need samba, you can have this port install it by defining"
|
|
|
|
@${ECHO_MSG} "WITH_SAMBA."
|
|
|
|
.endif
|
|
|
|
|
2005-05-05 12:41:10 +00:00
|
|
|
post-extract:
|
2005-10-31 13:43:13 +00:00
|
|
|
@${MKDIR} ${WRKSRC}/kqemu
|
|
|
|
@${TOUCH} ${WRKSRC}/kqemu/Makefile
|
|
|
|
@${ECHO} all: > ${WRKSRC}/kqemu/Makefile.freebsd
|
2005-05-05 12:41:10 +00:00
|
|
|
|
2005-05-01 07:39:11 +00:00
|
|
|
pre-patch:
|
|
|
|
@for A in ${ONLY_FOR_ARCHS}; do \
|
|
|
|
${MKDIR} ${WRKSRC}/bsd/$$A; \
|
|
|
|
done
|
2005-01-08 16:21:01 +00:00
|
|
|
|
2004-06-03 02:12:52 +00:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2005-01-08 16:21:01 +00:00
|
|
|
.include <bsd.port.post.mk>
|