2012-06-15 07:53:28 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.86 2012/06/15 11:53:28 ajacoutot Exp $
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2012-03-16 07:40:53 -04:00
|
|
|
ONLY_FOR_ARCHS= amd64 arm hppa i386 mips64 mips64el powerpc sparc sparc64
|
|
|
|
BROKEN-hppa= compiler bug with gcc 4.2
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2012-01-10 21:21:09 -05:00
|
|
|
COMMENT= multi system emulator
|
2006-12-22 12:31:45 -05:00
|
|
|
|
2012-06-15 07:53:28 -04:00
|
|
|
DISTNAME= qemu-1.1.0-1
|
|
|
|
PKGNAME= qemu-1.1.0
|
2012-01-10 21:21:09 -05:00
|
|
|
CATEGORIES= emulators
|
2012-03-16 07:40:53 -04:00
|
|
|
MASTER_SITES= http://wiki.qemu.org/download/
|
2012-06-15 07:53:28 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/qemu-1.1.0
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2012-01-10 21:21:09 -05:00
|
|
|
HOMEPAGE= http://www.qemu.org/
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2012-01-10 21:21:09 -05:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
2011-03-24 21:05:15 -04:00
|
|
|
|
2011-06-10 17:47:54 -04:00
|
|
|
# GPLv2, LGPLv2 and BSD
|
2012-01-10 21:21:09 -05: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
|
|
|
|
2012-01-10 21:21:09 -05:00
|
|
|
WANTLIB= GL SDL X11 c curl glib-2.0 gthread-2.0 jpeg m ncurses \
|
|
|
|
png pthread util z
|
2005-03-07 11:41:28 -05:00
|
|
|
|
2012-01-10 21:21:09 -05: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 06:32:01 -05:00
|
|
|
|
2012-01-10 21:21:09 -05:00
|
|
|
MODPY_RUNDEP= No
|
2011-12-12 05:56:56 -05:00
|
|
|
|
2012-01-10 21:21:09 -05:00
|
|
|
MAKE_ENV= V=1
|
2012-06-15 07:53:28 -04:00
|
|
|
FAKE_FLAGS= qemu_confdir=${PREFIX}/share/examples/qemu
|
2007-02-19 07:43:38 -05:00
|
|
|
|
2012-01-10 21:21:09 -05:00
|
|
|
EXTRA_CFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
|
|
|
|
EXTRA_LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
2011-12-12 05:56:56 -05:00
|
|
|
|
|
|
|
# until the system headers are fixed properly.
|
2012-01-10 21:21:09 -05: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 \
|
|
|
|
--disable-vnc-tls
|
2005-11-03 13:41:55 -05:00
|
|
|
|
2011-08-17 04:50:25 -04:00
|
|
|
.if ${MACHINE_ARCH:Msparc}
|
2012-01-10 21:21:09 -05:00
|
|
|
CONFIGURE_ARGS+=--sparc_cpu=v7
|
2011-08-17 04:50:25 -04:00
|
|
|
.endif
|
|
|
|
|
2012-01-10 21:21:09 -05:00
|
|
|
FLAVORS= debug
|
|
|
|
FLAVOR?=
|
2007-05-01 08:55:13 -04:00
|
|
|
|
2011-12-02 09:36:13 -05:00
|
|
|
.if ${FLAVOR:Mdebug}
|
2012-06-15 07:53:28 -04:00
|
|
|
CFLAGS+= -O0
|
2012-01-10 21:21:09 -05:00
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
2012-06-15 07:53:28 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-debug-info
|
2010-06-17 05:57:55 -04:00
|
|
|
.endif
|
2007-05-01 08:55:13 -04:00
|
|
|
|
2012-01-10 21:21:09 -05:00
|
|
|
NO_REGRESS= Yes
|
2008-03-31 10:25:59 -04:00
|
|
|
|
2006-02-16 11:27:44 -05:00
|
|
|
post-install:
|
2011-03-20 16:40:52 -04:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup \
|
2010-05-27 13:55:05 -04:00
|
|
|
${PREFIX}/share/examples/qemu
|
2011-03-20 16:40:52 -04:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifdown \
|
2010-05-27 13:55:05 -04:00
|
|
|
${PREFIX}/share/examples/qemu
|
2006-02-16 11:27:44 -05:00
|
|
|
|
2005-03-07 11:41:28 -05:00
|
|
|
.include <bsd.port.mk>
|