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
|
2006-05-06 16:15:41 +00:00
|
|
|
PORTVERSION= 0.8.1
|
2006-05-19 08:17:54 +00:00
|
|
|
PORTREVISION= 1
|
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 \
|
2005-11-14 05:17:09 +00:00
|
|
|
http://www.volny.cz/xnavara/qemu/:snapshot \
|
2005-12-31 00:12:20 +00:00
|
|
|
http://qemu.dad-answers.com/download/qemu/:snapshot \
|
2006-01-21 23:10:06 +00:00
|
|
|
http://people.brandeis.edu/~jcoiner/qemu_idedma/:idedma \
|
|
|
|
http://people.freebsd.org/~maho/qemu/:misc
|
2006-05-06 16:15:41 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:release
|
2006-03-26 15:11:36 +00:00
|
|
|
.if defined (WITH_HACKS_CIRRUS) || defined (WITH_HACKS)
|
|
|
|
DISTFILES+= patch3_cirrus:misc
|
2005-12-31 00:12:20 +00:00
|
|
|
.endif
|
|
|
|
DIST_SUBDIR= qemu
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
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)
|
2006-04-09 17:09:42 +00:00
|
|
|
BUILD_DEPENDS+= kqemu-kmod>=1.3.0pre5:${PORTSDIR}/emulators/kqemu-kmod
|
2005-05-05 12:41:10 +00:00
|
|
|
.endif
|
|
|
|
|
2004-06-05 12:28:31 +00:00
|
|
|
HAS_CONFIGURE= 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"
|
2005-11-16 01:32:56 +00:00
|
|
|
MAKE_ARGS+= 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
|
2006-04-09 17:09:42 +00:00
|
|
|
.if !defined(WITH_HACKS_CIRRUS) && !defined(WITH_HACKS)
|
2005-12-31 00:12:20 +00:00
|
|
|
@${ECHO_MSG} "You can build qemu with some hacks (esp. for speedup)"
|
2006-03-26 15:11:36 +00:00
|
|
|
@${ECHO_MSG} "by defining WITH_HACKS, or specifically:"
|
|
|
|
@${ECHO_MSG} "2. WITH_HACKS_CIRRUS: higher speed on large display (cirrus_vga)"
|
|
|
|
@${ECHO_MSG} "by Juergen Pfennig"
|
2006-01-21 23:10:06 +00:00
|
|
|
@${ECHO_MSG} "http://lists.gnu.org/archive/html/qemu-devel/2006-01/msg00208.html"
|
2006-03-26 15:11:36 +00:00
|
|
|
@${ECHO_MSG} "Note: this second patch is known to cause mouse problems with some(?)"
|
|
|
|
@${ECHO_MSG} "versions of XP, and also minor redraw bugs with some Linux guests."
|
2005-12-31 00:12:20 +00:00
|
|
|
.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
|
|
|
|
2005-12-31 00:12:20 +00:00
|
|
|
post-patch:
|
2006-03-26 15:11:36 +00:00
|
|
|
.if defined(WITH_HACKS_CIRRUS) || defined (WITH_HACKS)
|
2006-01-21 23:41:48 +00:00
|
|
|
@cd ${WRKSRC} ; ${PATCH} --quiet < ${DISTDIR}/${DIST_SUBDIR}/patch3_cirrus
|
2005-12-31 00:12:20 +00:00
|
|
|
.endif
|
|
|
|
|
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>
|