pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/libao libao: simplify dependency patterns.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d3e9b6bbe5eb
branches:  trunk
changeset: 445426:d3e9b6bbe5eb
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Jan 23 12:11:12 2021 +0000

description:
libao: simplify dependency patterns.

there's no harm having multiple plugins installed concurrently,
see https://xiph.org/ao/doc/config.html for advice on selecting one

diffstat:

 audio/libao/buildlink3.mk |  16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diffs (33 lines):

diff -r e06d8e7ec82c -r d3e9b6bbe5eb audio/libao/buildlink3.mk
--- a/audio/libao/buildlink3.mk Sat Jan 23 11:43:40 2021 +0000
+++ b/audio/libao/buildlink3.mk Sat Jan 23 12:11:12 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.17 2019/11/24 00:35:56 nia Exp $
+# $NetBSD: buildlink3.mk,v 1.18 2021/01/23 12:11:12 nia Exp $
 
 BUILDLINK_TREE+=       libao
 
@@ -12,19 +12,13 @@
 .if !defined(_LIBAO_BUILDING_PLUGIN)
 .  include "../../mk/bsd.fast.prefs.mk"
 .  if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
-_LIBAO_DEFAULT_PLUGIN=         sun
+DEPENDS+=      libao-sun-[0-9]*:../../audio/libao-sun
 .  elif ${OPSYS} == "Linux"
-_LIBAO_DEFAULT_PLUGIN=         alsa
+DEPENDS+=      libao-alsa-[0-9]*:../../audio/libao-alsa
 .  elif ${OPSYS} == "Darwin"
-_LIBAO_DEFAULT_PLUGIN=         macosx
+DEPENDS+=      libao-macosx-[0-9]*:../../audio/libao-macosx
 .  elif ${OPSYS} != "Interix"
-_LIBAO_DEFAULT_PLUGIN=         oss
-.  else
-_LIBAO_DEFAULT_PLUGIN=
-.  endif
-
-.  if !empty(_LIBAO_DEFAULT_PLUGIN)
-DEPENDS+=      libao-[a-z]*-[0-9]*:../../audio/libao-${_LIBAO_DEFAULT_PLUGIN}
+DEPENDS+=      libao-oss-[0-9]*:../../audio/libao-oss
 .  endif
 .endif
 



Home | Main Index | Thread Index | Old Index