61 lines
1.3 KiB
Makefile
61 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.29 2008/03/31 20:36:35 todd Exp $
|
|
|
|
# no success building on other archs yet
|
|
ONLY_FOR_ARCHS= amd64 arm i386 powerpc
|
|
|
|
COMMENT= multi system emulator
|
|
|
|
DISTNAME= qemu-0.9.0
|
|
PKGNAME= ${DISTNAME}p4
|
|
CATEGORIES= emulators
|
|
|
|
HOMEPAGE= http://fabrice.bellard.free.fr/qemu/
|
|
|
|
MAINTAINER= Todd T. Fries <todd@openbsd.org>
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
BUILD_DEPENDS= ::textproc/texi2html
|
|
USE_GMAKE= Yes
|
|
WANTLIB= m z ossaudio c
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
# Currently, the regression tests are utterly broken.
|
|
REGRESS_TARGET= test test2
|
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
PATCH_LIST= patch-* misc-*
|
|
.endif
|
|
|
|
FLAVORS= no_x11 kqemu
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mkqemu}
|
|
CONFIGURE_ENV+= USE_KQEMU=yes
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
CONFIGURE_ARGS+= --disable-gfx-check \
|
|
--disable-sdl
|
|
.else
|
|
LIB_DEPENDS= SDL::devel/sdl \
|
|
aa::graphics/aalib
|
|
|
|
USE_X11= Yes
|
|
WANTLIB+= X11 Xext pthread usbhid
|
|
.endif
|
|
|
|
pre-configure:
|
|
@perl -pi -e "s,!!LOCALBASE!!,${LOCALBASE},g;" ${WRKSRC}/vl.c ${WRKSRC}/qemu-doc.texi
|
|
|
|
post-install:
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qemu
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup ${PREFIX}/share/examples/qemu
|
|
|
|
.include <bsd.port.mk>
|