06a1ba0314
or just do not make sense anyway. ok sthen@
95 lines
2.0 KiB
Makefile
95 lines
2.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.95 2012/12/31 07:12:19 brad Exp $
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386 powerpc sparc64
|
|
|
|
COMMENT= multi system emulator
|
|
|
|
DISTNAME= qemu-1.2.2
|
|
REVISION= 0
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= http://wiki.qemu.org/download/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
HOMEPAGE= http://www.qemu.org/
|
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
# GPLv2, LGPLv2 and BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= GL SDL X11 c curl glib-2.0 gthread-2.0 jpeg m ncurses \
|
|
png pthread util z
|
|
|
|
MODULES= devel/gettext \
|
|
lang/python
|
|
BUILD_DEPENDS= textproc/texi2html
|
|
LIB_DEPENDS= devel/glib2 \
|
|
devel/sdl \
|
|
graphics/jpeg \
|
|
graphics/png \
|
|
net/curl
|
|
|
|
MODPY_RUNDEP= No
|
|
|
|
MAKE_ENV= V=1
|
|
FAKE_FLAGS= qemu_confdir=${PREFIX}/share/examples/qemu
|
|
|
|
EXTRA_CFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
|
|
EXTRA_LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
|
|
|
# until the system headers are fixed properly.
|
|
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 \
|
|
--with-coroutine=sigaltstack
|
|
|
|
.if ${MACHINE_ARCH:Msparc}
|
|
CONFIGURE_ARGS+=--sparc_cpu=v7
|
|
.endif
|
|
|
|
FLAVORS= debug
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mdebug}
|
|
CFLAGS+= -O0
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-debug-info
|
|
.endif
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup \
|
|
${PREFIX}/share/examples/qemu
|
|
${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifdown \
|
|
${PREFIX}/share/examples/qemu
|
|
|
|
.include <bsd.port.mk>
|