# New ports collection makefile for: qemu # Date created: 2004/05/31 # Whom: Juergen Lock # # $FreeBSD$ # PORTNAME= qemu PORTVERSION= 0.8.2 PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= http://www.qemu.org/:release \ http://people.fruitsalad.org/nox/qemu/:snapshot \ http://www.volny.cz/xnavara/qemu/:snapshot \ http://qemu.dad-answers.com/download/qemu/:snapshot \ http://people.brandeis.edu/~jcoiner/qemu_idedma/:idedma \ http://people.freebsd.org/~maho/qemu/:misc DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:release .if defined (WITH_HACKS_CIRRUS) || defined (WITH_HACKS) DISTFILES+= patch3_cirrus:misc .endif DIST_SUBDIR= qemu EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= nox@jelal.kn-bremen.de COMMENT= QEMU CPU Emulator BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html .if defined(WITH_SAMBA) RUN_DEPENDS+= ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba .endif .if defined(WITH_KQEMU) BUILD_DEPENDS+= kqemu-kmod>=1.3.0pre5:${PORTSDIR}/emulators/kqemu-kmod .endif HAS_CONFIGURE= yes USE_GMAKE= yes USE_GETOPT_LONG= yes USE_SDL= sdl USE_PERL5= yes PATCH_STRIP= -p1 CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC} MAKE_ENV+= BSD_MAKE="${MAKE}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" MAN1= qemu.1 qemu-img.1 ONLY_FOR_ARCHS= amd64 i386 WITHOUT_CPU_CFLAGS=yes #to avoid problems with register allocation .if defined(WITH_KQEMU) CONFIGURE_ARGS+= --enable-kqemu .else CONFIGURE_ARGS+= --disable-kqemu .endif .include .if ${ARCH} == "amd64" MAKE_ARGS+= ARCH=x86_64 .endif USE_GCC= 3.4 pre-everything:: .if !defined(WITH_KQEMU) @${ECHO_MSG} "Notice: you can build qemu with the (alpha!) kqemu accelerator kernel module" @${ECHO_MSG} "by defining WITH_KQEMU." .endif .if !defined(WITH_HACKS_CIRRUS) && !defined(WITH_HACKS) @${ECHO_MSG} "You can build qemu with some hacks (esp. for speedup)" @${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" @${ECHO_MSG} "http://lists.gnu.org/archive/html/qemu-devel/2006-01/msg00208.html" @${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." .endif .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 .if !defined(WITH_RTL8139_TIMER) @${ECHO_MSG} "Notice: if you want to use qemu's rtl8139c+ nic with a FreeBSD guest" @${ECHO_MSG} "(qemu -net nic,model=rtl8139 -net user or tap ... - will use re(4)" @${ECHO_MSG} "instead of ed(4) which should use less cpu), then you need to enable" @${ECHO_MSG} "the emulated rtl8139 timer by defining WITH_RTL8139_TIMER." .endif post-extract: @${MKDIR} ${WRKSRC}/kqemu @${TOUCH} ${WRKSRC}/kqemu/Makefile @${ECHO} all: > ${WRKSRC}/kqemu/Makefile.freebsd pre-patch: @for A in ${ONLY_FOR_ARCHS}; do \ ${MKDIR} ${WRKSRC}/bsd/$$A; \ done post-patch: .if defined(WITH_HACKS_CIRRUS) || defined (WITH_HACKS) @cd ${WRKSRC} ; ${PATCH} --quiet < ${DISTDIR}/${DIST_SUBDIR}/patch3_cirrus .endif .if defined(WITH_RTL8139_TIMER) @cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/rtl8139-re-patch .endif @${REINPLACE_CMD} -E \ -e "s,^(CFLAGS=).*,\1${CFLAGS} -fno-strict-aliasing," \ -e "s,^(LDFLAGS=).*,\1${LDFLAGS}," \ ${WRKSRC}/Makefile.target @${REINPLACE_CMD} -E \ -e "s,^(CFLAGS=).*,\1${CFLAGS} -fno-strict-aliasing -I.," \ -e "s,^(LDFLAGS=).*,\1${LDFLAGS}," \ ${WRKSRC}/Makefile post-install: @${CAT} ${PKGMESSAGE} .include t'>Lines * Updated Finnish translationIlkka Tuohela2004-12-091-2371/+2676 | | | | svn path=/trunk/; revision=28090 * Updated Finnish translationIlkka Tuohela2004-09-021-391/+397 | | | | svn path=/trunk/; revision=27115 * Updated Finnish translationIlkka Tuohela2004-08-241-48/+51 | | | | svn path=/trunk/; revision=26997 * Updated Finnish translationIlkka Tuohela2004-08-231-10/+10 | | | | svn path=/trunk/; revision=26990 * Updated finnish translationIlkka Tuohela2004-08-151-14/+14 | | | | svn path=/trunk/; revision=26939 * Updated finnish translationIlkka Tuohela2004-08-151-3/+4 | | | | svn path=/trunk/; revision=26937 * Updated Finnish translationIlkka Tuohela2004-08-151-25/+15 | | | | svn path=/trunk/; revision=26934 * bump version. requiresJP Rosevear2004-08-141-377/+417 | | | | | | | | 2004-08-13 JP Rosevear <jpr@novell.com> * configure.in: bump version. requires svn path=/trunk/; revision=26926 * Unified po headers for Finnish TeamTommi Vainikainen2004-08-141-1/+1 | | | | svn path=/trunk/; revision=26925 * Updated finnish translationIlkka Tuohela2004-08-031-460/+406 | | | | svn path=/trunk/; revision=26809 * bump version, requirementsJP Rosevear2004-08-031-567/+710 | | | | | | | | 2004-08-02 JP Rosevear <jpr@novell.com> * configure.in: bump version, requirements svn path=/trunk/; revision=26803 * bump version, requirementsJP Rosevear2004-07-201-301/+334 | | | | | | | | 2004-07-19 JP Rosevear <jpr@novell.com> * configure.in: bump version, requirements svn path=/trunk/; revision=26676 * bump version, requirementsJP Rosevear2004-07-051-2794/+3812 | | | | | | | | | | | | 2004-07-02 JP Rosevear <jpr@novell.com> * configure.in: bump version, requirements 2004-07-02 JP Rosevaer <jpr@novell.com> * Makefile.am (SUBDIRS): Revert previous error change svn path=/trunk/; revision=26583 * Updated Finnish translationIlkka Tuohela2004-06-161-168/+172 | | | | svn path=/trunk/; revision=26366 * Updated finnish translationIlkka Tuohela2004-06-141-3574/+1430 | | | | svn path=/trunk/; revision=26328 * Merge from release branch.JP Rosevear2004-06-041-1889/+1924 | | | | svn path=/trunk/; revision=26178 * bump versionJP Rosevear2004-05-201-3054/+3866 | | | | | | | | 2004-05-19 JP Rosevear <jpr@novell.com> * configure.in: bump version svn path=/trunk/; revision=25982 * distedJeffrey Stedfast2004-04-301-1911/+2752 | | | | svn path=/trunk/; revision=25711 * Merge from release branchJP Rosevear2004-04-201-787/+834 | | | | svn path=/trunk/; revision=25522 * bump version, requirementsJP Rosevear2004-04-031-2209/+2733 | | | | | | | | 2004-04-02 JP Rosevear <jpr@ximian.com> * configure.in: bump version, requirements svn path=/trunk/; revision=25301 * bump version, requirementsJP Rosevear2004-03-061-880/+916 | | | | | | | | 2004-03-05 JP Rosevear <jpr@ximian.com> * configure.in: bump version, requirements svn path=/trunk/; revision=24978 * Updated finnish translationIlkka Tuohela2004-02-231-1019/+1151 | | | | svn path=/trunk/; revision=24827 * bump version, libtool numbersJP Rosevear2004-02-101-131/+80 | | | | | | | | 2004-02-09 JP Rosevear <jpr@ximian.com> * configure.in: bump version, libtool numbers svn path=/trunk/; revision=24685 * Updated Finnish translationIlkka Tuohela2004-02-081-1617/+1610 | | | | svn path=/trunk/; revision=24670 * Updated finnish translation (now 100%)Ilkka Tuohela2004-02-051-1883/+1262 | | | | svn path=/trunk/; revision=24615 * Updated finnish translationIlkka Tuohela2004-02-031-7739/+3810 | | | | svn path=/trunk/; revision=24575 * bump requirements, versionJP Rosevear2004-01-271-1344/+1572 | | | | | | | | 2004-01-26 JP Rosevear <jpr@ximian.com> * configure.in: bump requirements, version svn path=/trunk/; revision=24444 * bump version and requirementsJP Rosevear2004-01-131-1428/+1941 | | | | | | | | 2004-01-12 JP Rosevear <jpr@ximian.com> * configure.in: bump version and requirements svn path=/trunk/; revision=24193 * bump version and gal, e-d-s and gtkhtml requirementsJP Rosevear2003-12-301-1485/+1655 | | | | | | | | | 2003-12-29 JP Rosevear <jpr@ximian.com> * configure.in: bump version and gal, e-d-s and gtkhtml requirements svn path=/trunk/; revision=24014 * update version relianceJP Rosevear2003-12-081-2241/+3401 | | | | | | | | 2003-12-07 JP Rosevear <jpr@ximian.com> * configure.in: update version reliance svn path=/trunk/; revision=23667 * updateJP Rosevear2003-11-071-1269/+939 | | | | | | | | 2003-11-07 JP Rosevear <jpr@ximian.com> * POTFILES.in: update svn path=/trunk/; revision=23209 * remove dead fileJP Rosevear2003-10-311-15763/+7986 | | | | | | | | 2003-10-30 JP Rosevear <jpr@ximian.com> * POTFILES.in: remove dead file svn path=/trunk/; revision=23141 * Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-3387/+3286 | | | | svn path=/trunk/; revision=22964 * Pass make distRodrigo Moya2003-10-161-3286/+3387 | | | | svn path=/trunk/; revision=22904 * 1.4.1 release.Ettore Perazzoli2003-06-261-555/+564 | | | | svn path=/trunk/; revision=21550 * 1.4.0!Ettore Perazzoli2003-06-031-321/+320 | | | | svn path=/trunk/; revision=21374 * Sync 1.3.92.Ettore Perazzoli2003-05-231-3/+3 | | | | svn path=/trunk/; revision=21331 * 1.3.91.Ettore Perazzoli2003-05-221-945/+971 | | | | svn path=/trunk/; revision=21311 * 1.3.3.Ettore Perazzoli2003-04-301-803/+916 | | | | svn path=/trunk/; revision=21024 * The return of 1.3.2.Ettore Perazzoli2003-04-121-205/+204 | | | | svn path=/trunk/; revision=20824 * Sync for 1.3.2.Ettore Perazzoli2003-04-101-439/+484 | | | | svn path=/trunk/; revision=20794 * Finnish translation updated by Sami Pesonen (sampeson@iki.fi)Sami Pesonen2003-04-071-2213/+2099 | | | | svn path=/trunk/; revision=20688 * Finnish translation updated by Sami Pesonen (sampeson@iki.fi)Sami Pesonen2003-03-031-6452/+5934 | | | | svn path=/trunk/; revision=20118 * Sync for 1.1.90.Ettore Perazzoli2002-10-291-1016/+1077 | | | | svn path=/trunk/; revision=18465 * Sync for 1.1.2.Ettore Perazzoli2002-10-081-1451/+1645 | | | | svn path=/trunk/; revision=18347 * Sync for 1.1.1.Ettore Perazzoli2002-09-101-1151/+1239 | | | | svn path=/trunk/; revision=18024 * Update po files to speed up snap build.JP Rosevear2002-08-131-1721/+2119 | | | | svn path=/trunk/; revision=17769 * Update .po files.JP Rosevear2002-06-281-3434/+4234 | | | | svn path=/trunk/; revision=17317 * Update the po files to cut down on dist timeJP Rosevear2002-05-081-3852/+17603 | | | | | | | | 02-05-08 JP Rosevear <jpr@ximian.com> * Update the po files to cut down on dist time svn path=/trunk/; revision=16721 * Sync for 0.99.2.Ettore Perazzoli2001-11-15