Split off SDL dependency in a default-on (except for Darwin, as before)

"sdl" option.
This commit is contained in:
wiz 2011-02-28 17:49:30 +00:00
parent 98fbebc947
commit 7829f026a9
2 changed files with 22 additions and 2 deletions

View file

@ -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"

19
emulators/qemu/options.mk Normal file
View file

@ -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