diff options
author | triaxx <triaxx@pkgsrc.org> | 2019-07-01 10:25:24 +0000 |
---|---|---|
committer | triaxx <triaxx@pkgsrc.org> | 2019-07-01 10:25:24 +0000 |
commit | 065f151918b5306a2d3df4e666565a915eb64a4d (patch) | |
tree | fbe198254aafccd3b5b90d9966232d716328c1e5 /audio/pulseaudio/options.mk | |
parent | be92f85ff65077d557ddbc37ae8af8310b203882 (diff) | |
download | pkgsrc-065f151918b5306a2d3df4e666565a915eb64a4d.tar.gz |
pulseaudio: add option for lirc to fix build error on Arch Linux
pkgsrc changes:
---------------
* Add PLIST.lirc and lirc in options.mk to provide lirc only on
systems for which it is availble (thanks to leot@)
* Move gsettings in options.mk (to respect alphabetic order)
* Bump revision
Diffstat (limited to 'audio/pulseaudio/options.mk')
-rw-r--r-- | audio/pulseaudio/options.mk | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/audio/pulseaudio/options.mk b/audio/pulseaudio/options.mk index 9f08f5f225e..f38c34d6640 100644 --- a/audio/pulseaudio/options.mk +++ b/audio/pulseaudio/options.mk @@ -1,7 +1,12 @@ -# $NetBSD: options.mk,v 1.9 2018/07/25 12:15:59 adam Exp $ +# $NetBSD: options.mk,v 1.10 2019/07/01 10:25:24 triaxx Exp $ + +.include "../../comms/lirc/available.mk" PKG_OPTIONS_VAR= PKG_OPTIONS.pulseaudio PKG_SUPPORTED_OPTIONS= avahi fftw gsettings x11 +.if ${LIRC_AVAILABLE} == "yes" +PKG_SUPPORTED_OPTIONS+= lirc +.endif PKG_SUGGESTED_OPTIONS= avahi x11 PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS} @@ -14,13 +19,6 @@ PLIST.avahi= yes CONFIGURE_ARGS+= --disable-avahi .endif -.if !empty(PKG_OPTIONS:Mgsettings) -PLIST.gsettings= yes -CONFIGURE_ARGS+= --enable-gsettings -.else -CONFIGURE_ARGS+= --disable-gsettings -.endif - .if !empty(PKG_OPTIONS:Mfftw) CONFIGURE_ARGS+= --with-fftw PLIST.fftw= yes @@ -40,6 +38,21 @@ REPLACE_FILES.pulse_py= src/utils/qpaeq CONFIGURE_ARGS+= --without-fftw .endif +.if !empty(PKG_OPTIONS:Mgsettings) +PLIST.gsettings= yes +CONFIGURE_ARGS+= --enable-gsettings +.else +CONFIGURE_ARGS+= --disable-gsettings +.endif + +.if !empty(PKG_OPTIONS:Mlirc) +PLIST.lirc= yes +CONFIGURE_ARGS+= --enable-lirc +.include "../../comms/lirc/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-lirc +.endif + .if !empty(PKG_OPTIONS:Mx11) .include "../../x11/libICE/buildlink3.mk" .include "../../x11/libSM/buildlink3.mk" |