summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-02-28 17:49:30 +0000
committerwiz <wiz@pkgsrc.org>2011-02-28 17:49:30 +0000
commit7829f026a9e255d765c61563f6b57cc17155cad4 (patch)
treefd59cc86b2e66d71707b5f423df63d26ae345e32 /emulators
parent98fbebc947e0a6cea6eac5d2ab61318eb8aea317 (diff)
downloadpkgsrc-7829f026a9e255d765c61563f6b57cc17155cad4.tar.gz
Split off SDL dependency in a default-on (except for Darwin, as before)
"sdl" option.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/qemu/Makefile5
-rw-r--r--emulators/qemu/options.mk19
2 files changed, 22 insertions, 2 deletions
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