pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/kmix introduce options framework for kmix a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/447bd852d19c
branches:  trunk
changeset: 768517:447bd852d19c
user:      mrg <mrg%pkgsrc.org@localhost>
date:      Mon Oct 25 03:55:29 2021 +0000

description:
introduce options framework for kmix and use it to support disabling
the pulseaudio dependency, still enabled by default.

diffstat:

 multimedia/kmix/Makefile   |   5 +++--
 multimedia/kmix/options.mk |  11 +++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r bfa54da28718 -r 447bd852d19c multimedia/kmix/Makefile
--- a/multimedia/kmix/Makefile  Mon Oct 25 01:02:38 2021 +0000
+++ b/multimedia/kmix/Makefile  Mon Oct 25 03:55:29 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.73 2021/09/01 11:14:47 markd Exp $
+# $NetBSD: Makefile,v 1.74 2021/10/25 03:55:29 mrg Exp $
 
 DISTNAME=      kmix-${KAPPSVER}
 CATEGORIES=    multimedia
@@ -35,9 +35,10 @@
 SUBST_NOOP_OK.fix-moc= yes
 SUBST_SED.fix-moc=     -e 's;"${PREFIX}/include",;;g'
 
+.include "options.mk"
+
 .include "../../audio/alsa-lib/buildlink3.mk"
 .include "../../audio/libcanberra/buildlink3.mk"
-.include "../../audio/pulseaudio/buildlink3.mk"
 .include "../../mk/oss.buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
diff -r bfa54da28718 -r 447bd852d19c multimedia/kmix/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/kmix/options.mk        Mon Oct 25 03:55:29 2021 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: options.mk,v 1.3 2021/10/25 03:55:29 mrg Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.kmix
+PKG_SUPPORTED_OPTIONS= pulseaudio
+PKG_SUGGESTED_OPTIONS= pulseaudio
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+.include "../../audio/pulseaudio/buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index