summaryrefslogtreecommitdiff
path: root/audio/pulseaudio
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2009-01-25 16:56:01 +0000
committertron <tron@pkgsrc.org>2009-01-25 16:56:01 +0000
commitdb440b0f53ca65e845df6c877841f7d6d69a5b22 (patch)
tree2b14906666ff6cb8d22e75aa3ef94649eb4787ab /audio/pulseaudio
parent40f29c09767b0145c3d687cc0ca7c0f45b9adda8 (diff)
downloadpkgsrc-db440b0f53ca65e845df6c877841f7d6d69a5b22.tar.gz
Move options handling into seperate file.
Diffstat (limited to 'audio/pulseaudio')
-rw-r--r--audio/pulseaudio/Makefile17
-rw-r--r--audio/pulseaudio/options.mk17
2 files changed, 19 insertions, 15 deletions
diff --git a/audio/pulseaudio/Makefile b/audio/pulseaudio/Makefile
index 85fd24c1968..9287f84334f 100644
--- a/audio/pulseaudio/Makefile
+++ b/audio/pulseaudio/Makefile
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2009/01/19 14:19:00 jmcneill Exp $
-#
+# $NetBSD: Makefile,v 1.15 2009/01/25 16:56:01 tron Exp $
DISTNAME= pulseaudio-0.9.14
CATEGORIES= audio
@@ -15,12 +14,6 @@ USE_TOOLS+= pkg-config gmake m4 msgfmt intltool perl \
autoconf automake autoreconf
USE_DIRS+= xdg-1.4
-PKG_OPTIONS_VAR= PKG_OPTIONS.pulseaudio
-PKG_SUPPORTED_OPTIONS= avahi
-PKG_SUGGESTED_OPTIONS= avahi
-PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
-.include "../../mk/bsd.options.mk"
-
PKGCONFIG_OVERRIDE+= libpulse-browse.pc.in
PKGCONFIG_OVERRIDE+= libpulse-mainloop-glib.pc.in
PKGCONFIG_OVERRIDE+= libpulse-simple.pc.in
@@ -76,13 +69,7 @@ CONFIGURE_ARGS+= --disable-netbsd-atomic-ops
.include "../../devel/libatomic_ops/buildlink3.mk"
.endif
-# avahi support
-.if !empty(PKG_OPTIONS:Mavahi)
-.include "../../net/avahi/buildlink3.mk"
-PLIST.avahi= yes
-.else
-CONFIGURE_ARGS+= --disable-avahi
-.endif
+.include "options.mk"
pre-configure:
cd ${WRKSRC} && autoreconf -f
diff --git a/audio/pulseaudio/options.mk b/audio/pulseaudio/options.mk
new file mode 100644
index 00000000000..f9e8dd28c6e
--- /dev/null
+++ b/audio/pulseaudio/options.mk
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2009/01/25 16:56:01 tron Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.pulseaudio
+PKG_SUPPORTED_OPTIONS= avahi
+PKG_SUGGESTED_OPTIONS= avahi
+PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
+.include "../../mk/bsd.options.mk"
+
+###
+### avahi
+###
+.if !empty(PKG_OPTIONS:Mavahi)
+.include "../../net/avahi/buildlink3.mk"
+PLIST.avahi= yes
+.else
+CONFIGURE_ARGS+= --disable-avahi
+.endif