2011-01-26 08:51:43 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.61 2011/01/26 13:51:43 sthen Exp $
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2005-11-03 13:41:55 -05:00
|
|
|
# no success building on other archs yet
|
2010-07-22 20:27:09 -04:00
|
|
|
ONLY_FOR_ARCHS = i386 amd64 sparc64
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2010-05-27 13:55:05 -04:00
|
|
|
COMMENT = multi system emulator
|
2006-12-22 12:31:45 -05:00
|
|
|
|
2010-11-22 06:32:01 -05:00
|
|
|
DISTNAME = qemu-0.13.0
|
2011-01-26 08:51:43 -05:00
|
|
|
REVISION = 1
|
2010-05-27 13:55:05 -04:00
|
|
|
CATEGORIES = emulators
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2010-05-27 13:55:05 -04:00
|
|
|
HOMEPAGE = http://www.qemu.org/
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2008-04-28 18:52:38 -04:00
|
|
|
# GPLv2/LGPLv2/BSD
|
2010-05-27 13:55:05 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2010-11-22 06:32:01 -05:00
|
|
|
WANTLIB = c jpeg m ossaudio png pthread util z
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2010-05-27 13:55:05 -04:00
|
|
|
MASTER_SITES = ${MASTER_SITE_SAVANNAH:=qemu/}
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2010-11-15 18:22:07 -05:00
|
|
|
BUILD_DEPENDS = textproc/texi2html
|
2010-11-22 06:32:01 -05:00
|
|
|
LIB_DEPENDS = graphics/jpeg \
|
|
|
|
graphics/png
|
|
|
|
|
|
|
|
MAKE_ENV += V=1
|
|
|
|
FAKE_FLAGS = sysconfdir=${PREFIX}/share/examples
|
2007-02-19 07:43:38 -05:00
|
|
|
|
2010-05-27 13:55:05 -04:00
|
|
|
USE_GMAKE = Yes
|
2010-11-22 06:32:01 -05:00
|
|
|
USE_GROFF = Yes
|
2010-05-27 13:55:05 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE = simple
|
|
|
|
CONFIGURE_ARGS = --prefix=${PREFIX} \
|
2010-11-22 06:32:01 -05:00
|
|
|
--sysconfdir=${SYSCONFDIR} \
|
|
|
|
--mandir=${PREFIX}/man \
|
|
|
|
--extra-cflags="-I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/libpng" \
|
|
|
|
--extra-ldflags=-L${LOCALBASE}/lib \
|
2010-05-27 13:55:05 -04:00
|
|
|
--disable-vnc-tls \
|
2010-11-22 06:32:01 -05:00
|
|
|
--disable-vnc-sasl \
|
2010-05-27 13:55:05 -04:00
|
|
|
--disable-curses \
|
|
|
|
--disable-curl \
|
|
|
|
--disable-bsd-user \
|
|
|
|
--disable-guest-base \
|
2010-11-22 06:32:01 -05:00
|
|
|
--disable-uuid
|
2005-11-03 13:41:55 -05:00
|
|
|
|
2010-06-17 05:57:55 -04:00
|
|
|
FLAVORS = debug no_x11
|
2010-05-27 13:55:05 -04:00
|
|
|
FLAVOR ?=
|
2007-05-01 08:55:13 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
2010-05-27 13:55:05 -04:00
|
|
|
CONFIGURE_ARGS += --disable-sdl
|
2007-05-01 08:55:13 -04:00
|
|
|
.else
|
2010-11-22 06:32:01 -05:00
|
|
|
LIB_DEPENDS += devel/sdl
|
2010-05-27 13:55:05 -04:00
|
|
|
|
2010-08-26 09:44:29 -04:00
|
|
|
WANTLIB += SDL X11
|
2010-05-27 13:55:05 -04:00
|
|
|
.endif
|
2010-06-17 05:57:55 -04:00
|
|
|
.if ${FLAVOR:L:Mdebug}
|
2010-11-22 06:32:01 -05:00
|
|
|
VMEM_WARNING = yes
|
2010-06-17 05:57:55 -04:00
|
|
|
CONFIGURE_ARGS += --enable-debug
|
|
|
|
.endif
|
2007-05-01 08:55:13 -04:00
|
|
|
|
2010-05-27 13:55:05 -04:00
|
|
|
# Currently, the regression tests are utterly broken.
|
|
|
|
REGRESS_TARGET = test
|
|
|
|
|
2008-03-31 10:25:59 -04:00
|
|
|
pre-configure:
|
2010-05-27 13:55:05 -04:00
|
|
|
@${SUBST_CMD} ${WRKSRC}/net.h ${WRKSRC}/qemu-options.hx
|
|
|
|
@perl -pi -e 's|/dev/dsp|/dev/audio|g' ${WRKSRC}/audio/ossaudio.c
|
2008-03-31 10:25:59 -04:00
|
|
|
|
2006-02-16 11:27:44 -05:00
|
|
|
post-install:
|
2010-05-27 13:55:05 -04:00
|
|
|
@${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
|
2006-02-16 11:27:44 -05:00
|
|
|
|
2005-03-07 11:41:28 -05:00
|
|
|
.include <bsd.port.mk>
|