summaryrefslogtreecommitdiff
path: root/emulators/qemu
diff options
context:
space:
mode:
authorwiz <wiz>2011-02-28 17:49:30 +0000
committerwiz <wiz>2011-02-28 17:49:30 +0000
commit67960953b2661b54def3051fbe1bb49cefc8d0ae (patch)
treefd59cc86b2e66d71707b5f423df63d26ae345e32 /emulators/qemu
parent01edf06abb68e77a560dbbddd6910efb2dda4f72 (diff)
downloadpkgsrc-67960953b2661b54def3051fbe1bb49cefc8d0ae.tar.gz
Split off SDL dependency in a default-on (except for Darwin, as before)
"sdl" option.
Diffstat (limited to 'emulators/qemu')
-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