openbsd-ports/emulators/qemu/Makefile
sthen e252552d65 - fix multicast virtual networks; setsockopt(SOL_IP, IP_MULTICAST_LOOP)
takes a u_char, not int as in the 0.13.0 qemu code. from mcbride@ with
name change by fgsch@.

- fix copy-and-pasto in the sample qemu-ifdown script resulting in
tun interface not being removed and errors when qemu closes. from me.

ok mcbride@(first part) fgsch@ ajacoutot@ landry@
2011-01-26 13:51:43 +00:00

79 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.61 2011/01/26 13:51:43 sthen Exp $
# no success building on other archs yet
ONLY_FOR_ARCHS = i386 amd64 sparc64
COMMENT = multi system emulator
DISTNAME = qemu-0.13.0
REVISION = 1
CATEGORIES = emulators
HOMEPAGE = http://www.qemu.org/
# GPLv2/LGPLv2/BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c jpeg m ossaudio png pthread util z
MASTER_SITES = ${MASTER_SITE_SAVANNAH:=qemu/}
BUILD_DEPENDS = textproc/texi2html
LIB_DEPENDS = graphics/jpeg \
graphics/png
MAKE_ENV += V=1
FAKE_FLAGS = sysconfdir=${PREFIX}/share/examples
USE_GMAKE = Yes
USE_GROFF = Yes
CONFIGURE_STYLE = simple
CONFIGURE_ARGS = --prefix=${PREFIX} \
--sysconfdir=${SYSCONFDIR} \
--mandir=${PREFIX}/man \
--extra-cflags="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
--extra-ldflags=-L${LOCALBASE}/lib \
--disable-vnc-tls \
--disable-vnc-sasl \
--disable-curses \
--disable-curl \
--disable-bsd-user \
--disable-guest-base \
--disable-uuid
FLAVORS = debug no_x11
FLAVOR ?=
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS += --disable-sdl
.else
LIB_DEPENDS += devel/sdl
WANTLIB += SDL X11
.endif
.if ${FLAVOR:L:Mdebug}
VMEM_WARNING = yes
CONFIGURE_ARGS += --enable-debug
.endif
# Currently, the regression tests are utterly broken.
REGRESS_TARGET = test
pre-configure:
@${SUBST_CMD} ${WRKSRC}/net.h ${WRKSRC}/qemu-options.hx
@perl -pi -e 's|/dev/dsp|/dev/audio|g' ${WRKSRC}/audio/ossaudio.c
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qemu
@${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup \
${PREFIX}/share/examples/qemu
@${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifdown \
${PREFIX}/share/examples/qemu
.include <bsd.port.mk>