Changeset View
Changeset View
Standalone View
Standalone View
emulators/qemu-utils/Makefile
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# $FreeBSD$ | |||||
PORTNAME= qemu | |||||
PORTVERSION= 2.6.1 | |||||
CATEGORIES= emulators | |||||
MASTER_SITES= http://wiki.qemu.org/download/ | |||||
PKGNAMESUFFIX= -utils | |||||
DIST_SUBDIR= qemu/${PORTVERSION} | |||||
MAINTAINER= asomers@FreeBSD.org | |||||
COMMENT= QEMU userland utilities | |||||
LICENSE= GPLv2 | |||||
HAS_CONFIGURE= yes | |||||
USES= cpe gmake pkgconfig perl5 python:2,build tar:bzip2 | |||||
USES+= gettext-runtime | |||||
USE_PERL5= build | |||||
USE_GNOME+= glib20 | |||||
MAKE_ENV+= BSD_MAKE="${MAKE}" PREFIX=${PREFIX} | |||||
CONFLICTS_INSTALL= qemu-[0-9]* qemu-devel-* qemu-sbruno-* | |||||
bofh: I had the impression that it adds functionality to the qemu port. If you don't have qemu is… | |||||
Not Done Inline ActionsI doesn't add functionality; it removes it. The purpose is to provide qemu-img with _far_ fewer dependencies. I could theoretically add it as an OPTION, but it would be hard because the qemu port is complicated, including both positive and negative options, co-dependent options, and optional patching. asomers: I doesn't add functionality; it removes it. The purpose is to provide qemu-img with _far_… | |||||
Not Done Inline ActionsI think having a new port is best, so we can make it easy for people to install a pkg of just what people need... so master/slave seems best to me. brd: I think having a new port is best, so we can make it easy for people to install a pkg of just… | |||||
Not Done Inline ActionsMaster/Slave it is. @asomers if you can give me a patch for both qemu and qemu-devel it would be great. I have already started working with 2.7.X branch. Lets see how it ends up. bofh: Master/Slave it is. @asomers if you can give me a patch for both qemu and qemu-devel it would… | |||||
OPTIONS_DEFINE= DOCS | |||||
DOCS_BUILD_DEPENDS= texi2html:textproc/texi2html | |||||
DOCS_USES= makeinfo | |||||
DOCS_MAKE_ARGS_OFF= NOPORTDOCS=1 | |||||
PORTDOCS= qemu-doc.html qemu-tech.html qmp-commands.txt | |||||
CONFIGURE_ARGS+=--localstatedir=/var --extra-ldflags=-L\"${LOCALBASE}/lib\" \ | |||||
--disable-libssh2 \ | |||||
--prefix=${PREFIX} --cc=${CC} --disable-kvm \ | |||||
--disable-linux-user --disable-linux-aio --disable-xen \ | |||||
--python=${PYTHON_CMD} \ | |||||
--extra-cflags=-I${WRKSRC}\ -I${LOCALBASE}/include\ -DPREFIX=\\\"\"${PREFIX}\\\"\" \ | |||||
--disable-curl \ | |||||
--disable-gnutls \ | |||||
--disable-gtk \ | |||||
--disable-vte \ | |||||
--disable-vnc-jpeg \ | |||||
--disable-opengl \ | |||||
--disable-usb-redir \ | |||||
--disable-sdl \ | |||||
--disable-system \ | |||||
--disable-user \ | |||||
--disable-guest-agent \ | |||||
--disable-nettle \ | |||||
--disable-gcrypt \ | |||||
--disable-curses \ | |||||
--disable-vnc \ | |||||
--disable-virtfs \ | |||||
--disable-brlapi \ | |||||
--disable-fdt \ | |||||
--disable-bluez \ | |||||
--disable-kvm \ | |||||
--disable-rdma \ | |||||
--disable-uuid \ | |||||
--disable-vde \ | |||||
--disable-netmap \ | |||||
--disable-cap-ng \ | |||||
--disable-attr \ | |||||
--disable-vhost-net \ | |||||
--disable-spice \ | |||||
--disable-rbd \ | |||||
--disable-libiscsi \ | |||||
--disable-libnfs \ | |||||
--disable-smartcard \ | |||||
--disable-libusb \ | |||||
--disable-usb-redir \ | |||||
--disable-lzo \ | |||||
--disable-snappy \ | |||||
--disable-bzip2 \ | |||||
--disable-seccomp \ | |||||
--disable-coroutine-pool \ | |||||
--disable-glusterfs \ | |||||
--disable-archipelago \ | |||||
--disable-tpm \ | |||||
--disable-numa \ | |||||
--disable-blobs \ | |||||
--without-pixman | |||||
.include <bsd.port.options.mk> | |||||
.if !defined(STRIP) || ${STRIP} == "" | |||||
CONFIGURE_ARGS+=--disable-strip | |||||
.endif | |||||
# -lprocstat actually only _needs_ -lelf after r249666 or r250870 (MFC) | |||||
# but it shouldn't matter much | |||||
post-patch: | |||||
@${REINPLACE_CMD} -e '/LIBS/s|-lprocstat|-lprocstat -lelf|' \ | |||||
${WRKSRC}/configure | |||||
@${REINPLACE_CMD} -e '/libs_qga=/s|glib_libs|glib_libs -lintl|' ${WRKSRC}/configure | |||||
@${REINPLACE_CMD} -E \ | |||||
-e "/^by Tibor .TS. S/s|Sch.*z.$$|Schuetz.|" \ | |||||
${WRKSRC}/qemu-doc.texi | |||||
@${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 | |||||
@${REINPLACE_CMD} -E \ | |||||
-e "1s|^(#! )/usr/bin/perl|\1${PERL}|" \ | |||||
${WRKSRC}/scripts/texi2pod.pl | |||||
post-patch-CDROM_DMA-off: | |||||
@${REINPLACE_CMD} -e '/USE_DMA_CDROM/d' ${WRKSRC}/hw/ide/internal.h | |||||
post-patch-GNS3-on: | |||||
@${REINPLACE_CMD} -e 's|(buf\[0\] & 1) && (rctl & E1000_RCTL_MPE)|buf[0] \& 1|' \ | |||||
${WRKSRC}/hw/net/e1000.c | |||||
# XXX need to disable usb host code on head while it's not ported to the | |||||
# new usb stack yet | |||||
post-configure: | |||||
@${REINPLACE_CMD} -E \ | |||||
-e "s|^(HOST_USB=)bsd|\1stub|" \ | |||||
${WRKSRC}/config-host.mak | |||||
.if !target(post-install) | |||||
post-install: | |||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qemu-* | |||||
@${RMDIR} ${STAGEDIR}${DATADIR} | |||||
.endif | |||||
.include <bsd.port.mk> |
I had the impression that it adds functionality to the qemu port. If you don't have qemu is there any other requirement for this port? I believe it would be better to add it as an OPTION rather than creating a new port.