From 67960953b2661b54def3051fbe1bb49cefc8d0ae Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 28 Feb 2011 17:49:30 +0000 Subject: Split off SDL dependency in a default-on (except for Darwin, as before) "sdl" option. --- emulators/qemu/Makefile | 5 +++-- emulators/qemu/options.mk | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 emulators/qemu/options.mk (limited to 'emulators/qemu') diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile index fdbed7791e9..d8460761a6a 100644 --- a/emulators/qemu/Makefile +++ b/emulators/qemu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.77 2010/12/27 12:33:32 adam Exp $ +# $NetBSD: Makefile,v 1.78 2011/02/28 17:49:30 wiz Exp $ DISTNAME= qemu-0.13.0 PKGREVISION= 1 @@ -20,6 +20,8 @@ HAS_CONFIGURE= yes BUILD_DEPENDS+= texi2html-[0-9]*:../../textproc/texi2html +.include "options.mk" + .include "../../mk/bsd.prefs.mk" CONFIGURE_ENV+= mansuffix=/${PKGMANDIR} @@ -109,7 +111,6 @@ post-install: # On Darwin, qemu uses Cocoa and CoreAudio .if empty(OPSYS:MDarwin) -.include "../../devel/SDL/buildlink3.mk" .include "../../mk/oss.buildlink3.mk" .endif .include "../../devel/zlib/buildlink3.mk" diff --git a/emulators/qemu/options.mk b/emulators/qemu/options.mk new file mode 100644 index 00000000000..eac6719eb9e --- /dev/null +++ b/emulators/qemu/options.mk @@ -0,0 +1,19 @@ +# $NetBSD: options.mk,v 1.1 2011/02/28 17:49:30 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.qemu +PKG_SUPPORTED_OPTIONS= sdl + +.include "../../mk/bsd.fast.prefs.mk" + +.if empty(OPSYS:MDarwin) +PKG_SUGGESTED_OPTIONS= sdl +.endif + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Msdl) +CONFIGURE_ARGS+= --enable-sdl +.include "../../devel/SDL/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-sdl +.endif -- cgit v1.2.3