2013-01-03 08:30:54 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.96 2013/01/03 08:30:54 brad Exp $
|
2005-03-07 16:41:28 +00:00
|
|
|
|
2012-12-31 07:12:19 +00:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386 powerpc sparc64
|
2005-03-07 16:41:28 +00:00
|
|
|
|
2012-01-11 02:21:09 +00:00
|
|
|
COMMENT= multi system emulator
|
2006-12-22 17:31:45 +00:00
|
|
|
|
2012-12-12 18:01:08 +00:00
|
|
|
DISTNAME= qemu-1.2.2
|
2013-01-03 08:30:54 +00:00
|
|
|
REVISION= 1
|
2012-01-11 02:21:09 +00:00
|
|
|
CATEGORIES= emulators
|
2012-03-16 11:40:53 +00:00
|
|
|
MASTER_SITES= http://wiki.qemu.org/download/
|
2012-06-15 11:53:28 +00:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2005-03-07 16:41:28 +00:00
|
|
|
|
2012-01-11 02:21:09 +00:00
|
|
|
HOMEPAGE= http://www.qemu.org/
|
2005-03-07 16:41:28 +00:00
|
|
|
|
2012-01-11 02:21:09 +00:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
2011-03-25 01:05:15 +00:00
|
|
|
|
2011-06-10 21:47:54 +00:00
|
|
|
# GPLv2, LGPLv2 and BSD
|
2012-01-11 02:21:09 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-03-07 16:41:28 +00:00
|
|
|
|
2012-01-11 02:21:09 +00:00
|
|
|
WANTLIB= GL SDL X11 c curl glib-2.0 gthread-2.0 jpeg m ncurses \
|
|
|
|
png pthread util z
|
2005-03-07 16:41:28 +00:00
|
|
|
|
2012-01-11 02:21:09 +00:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
lang/python
|
|
|
|
BUILD_DEPENDS= textproc/texi2html
|
|
|
|
LIB_DEPENDS= devel/glib2 \
|
|
|
|
devel/sdl \
|
|
|
|
graphics/jpeg \
|
|
|
|
graphics/png \
|
|
|
|
net/curl
|
2010-11-22 11:32:01 +00:00
|
|
|
|
2012-01-11 02:21:09 +00:00
|
|
|
MODPY_RUNDEP= No
|
2011-12-12 10:56:56 +00:00
|
|
|
|
2012-01-11 02:21:09 +00:00
|
|
|
MAKE_ENV= V=1
|
2012-06-15 11:53:28 +00:00
|
|
|
FAKE_FLAGS= qemu_confdir=${PREFIX}/share/examples/qemu
|
2007-02-19 12:43:38 +00:00
|
|
|
|
2012-01-11 02:21:09 +00:00
|
|
|
EXTRA_CFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
|
|
|
|
EXTRA_LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
2011-12-12 10:56:56 +00:00
|
|
|
|
|
|
|
# until the system headers are fixed properly.
|
2012-01-11 02:21:09 +00:00
|
|
|
EXTRA_CFLAGS+= -Wno-redundant-decls
|
|
|
|
|
|
|
|
EXTRA_CFLAGS+= -DTIME_MAX=INT_MAX
|
|
|
|
|
|
|
|
VMEM_WARNING= Yes
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE=simple
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
|
|
--sysconfdir=${SYSCONFDIR} \
|
|
|
|
--mandir=${PREFIX}/man \
|
|
|
|
--python=${MODPY_BIN} \
|
|
|
|
--smbd=${LOCALBASE}/libexec/smbd \
|
|
|
|
--cc="${CC}" \
|
|
|
|
--host-cc="${CC}" \
|
|
|
|
--extra-cflags="${EXTRA_CFLAGS}" \
|
|
|
|
--extra-ldflags="${EXTRA_LDFLAGS}" \
|
|
|
|
--audio-drv-list=sdl \
|
|
|
|
--disable-bsd-user \
|
|
|
|
--disable-libiscsi \
|
|
|
|
--disable-smartcard-nss \
|
|
|
|
--disable-spice \
|
|
|
|
--disable-uuid \
|
|
|
|
--disable-usb-redir \
|
|
|
|
--disable-vnc-sasl \
|
2012-12-12 18:01:08 +00:00
|
|
|
--disable-vnc-tls \
|
|
|
|
--with-coroutine=sigaltstack
|
2005-11-03 18:41:55 +00:00
|
|
|
|
2012-01-11 02:21:09 +00:00
|
|
|
FLAVORS= debug
|
|
|
|
FLAVOR?=
|
2007-05-01 12:55:13 +00:00
|
|
|
|
2011-12-02 14:36:13 +00:00
|
|
|
.if ${FLAVOR:Mdebug}
|
2012-06-15 11:53:28 +00:00
|
|
|
CFLAGS+= -O0
|
2012-01-11 02:21:09 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
2013-01-03 08:30:54 +00:00
|
|
|
INSTALL_STRIP=
|
2012-06-15 11:53:28 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-debug-info
|
2010-06-17 09:57:55 +00:00
|
|
|
.endif
|
2007-05-01 12:55:13 +00:00
|
|
|
|
2012-01-11 02:21:09 +00:00
|
|
|
NO_REGRESS= Yes
|
2008-03-31 14:25:59 +00:00
|
|
|
|
2006-02-16 16:27:44 +00:00
|
|
|
post-install:
|
2011-03-20 20:40:52 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup \
|
2010-05-27 17:55:05 +00:00
|
|
|
${PREFIX}/share/examples/qemu
|
2011-03-20 20:40:52 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifdown \
|
2010-05-27 17:55:05 +00:00
|
|
|
${PREFIX}/share/examples/qemu
|
2006-02-16 16:27:44 +00:00
|
|
|
|
2005-03-07 16:41:28 +00:00
|
|
|
.include <bsd.port.mk>
|