summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-04-14 10:12:01 +0000
committerhans <hans@pkgsrc.org>2012-04-14 10:12:01 +0000
commit2ece7d160a23ac58903ef1ba0e82f505e808800b (patch)
tree4d5d7f61af5e78a23030c566ff577f0564db1b90 /audio
parent0ca4a23890a33be941e78475696bd08a2c411398 (diff)
downloadpkgsrc-2ece7d160a23ac58903ef1ba0e82f505e808800b.tar.gz
Move options to options.mk. Default to option sdl on Darwin. Bump
revision. From Robert Doerfler.
Diffstat (limited to 'audio')
-rw-r--r--audio/mp3blaster/Makefile25
-rw-r--r--audio/mp3blaster/options.mk26
2 files changed, 29 insertions, 22 deletions
diff --git a/audio/mp3blaster/Makefile b/audio/mp3blaster/Makefile
index 583f0b99b43..439f4f1f694 100644
--- a/audio/mp3blaster/Makefile
+++ b/audio/mp3blaster/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2012/01/13 10:54:47 obache Exp $
+# $NetBSD: Makefile,v 1.32 2012/04/14 10:12:01 hans Exp $
DISTNAME= mp3blaster-3.2.5
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mp3blaster/}
@@ -28,26 +28,7 @@ LIBS.SunOS+= -lsocket -lnsl
CONFIGURE_ARGS+= --enable-newthreads
.endif
-PKG_OPTIONS_VAR= PKG_OPTIONS.mp3blaster
-PKG_SUPPORTED_OPTIONS= esound oss sdl
-PKG_SUGGESTED_OPTIONS= oss
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mesound)
-CONFIGURE_ARGS+= --with-esd=yes
-.include "../../audio/esound/buildlink3.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Moss)
-CONFIGURE_ARGS+= --with-oss=yes
-.include "../../mk/oss.buildlink3.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Msdl)
-CONFIGURE_ARGS+= --with-sdl=yes
-.include "../../devel/SDL/buildlink3.mk"
-.endif
+.include "options.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
diff --git a/audio/mp3blaster/options.mk b/audio/mp3blaster/options.mk
new file mode 100644
index 00000000000..2599c83739d
--- /dev/null
+++ b/audio/mp3blaster/options.mk
@@ -0,0 +1,26 @@
+# $NetBSD: options.mk,v 1.1 2012/04/14 10:12:01 hans Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.mp3blaster
+PKG_SUPPORTED_OPTIONS= esound oss sdl
+PKG_SUGGESTED_OPTIONS= oss
+
+.if ${OPSYS} == "Darwin"
+PKG_SUGGESTED_OPTIONS= sdl
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mesound)
+CONFIGURE_ARGS+= --with-esd=yes
+.include "../../audio/esound/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Moss)
+CONFIGURE_ARGS+= --with-oss=yes
+.include "../../mk/oss.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Msdl)
+CONFIGURE_ARGS+= --with-sdl=yes
+.include "../../devel/SDL/buildlink3.mk"
+.endif