pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/pulseaudio Move options handling into seperate f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88765e081deb
branches:  trunk
changeset: 553584:88765e081deb
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Jan 25 16:56:01 2009 +0000

description:
Move options handling into seperate file.

diffstat:

 audio/pulseaudio/Makefile   |  17 ++---------------
 audio/pulseaudio/options.mk |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 15 deletions(-)

diffs (59 lines):

diff -r 4c5b14bebd97 -r 88765e081deb audio/pulseaudio/Makefile
--- a/audio/pulseaudio/Makefile Sun Jan 25 16:20:51 2009 +0000
+++ b/audio/pulseaudio/Makefile Sun Jan 25 16:56:01 2009 +0000
@@ -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 @@
                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 @@
 .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 -r 4c5b14bebd97 -r 88765e081deb audio/pulseaudio/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/pulseaudio/options.mk       Sun Jan 25 16:56:01 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index