diff options
author | tron <tron> | 2009-01-25 16:56:01 +0000 |
---|---|---|
committer | tron <tron> | 2009-01-25 16:56:01 +0000 |
commit | 78f9d67f6aa4ac2046a7f2ae8a5c9aa317e06577 (patch) | |
tree | 2b14906666ff6cb8d22e75aa3ef94649eb4787ab /audio/pulseaudio | |
parent | 396ef41e4bc8abd135566a72147a17e87a4ec63b (diff) | |
download | pkgsrc-78f9d67f6aa4ac2046a7f2ae8a5c9aa317e06577.tar.gz |
Move options handling into seperate file.
Diffstat (limited to 'audio/pulseaudio')
-rw-r--r-- | audio/pulseaudio/Makefile | 17 | ||||
-rw-r--r-- | audio/pulseaudio/options.mk | 17 |
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 |