diff options
author | jmmv <jmmv@pkgsrc.org> | 2005-10-08 12:30:38 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2005-10-08 12:30:38 +0000 |
commit | dc5297dc9d2a24262cb8ecef5793856629775ba9 (patch) | |
tree | 45014122b9ea9db6b32e37f780f84a0285df819e /audio/libao | |
parent | b461043a311dffcc8fb060f453528ec05b61b3df (diff) | |
download | pkgsrc-dc5297dc9d2a24262cb8ecef5793856629775ba9.tar.gz |
For packages using libao, add a default dependency on a plugin (either
oss or sun), based on the current OS name. This is only used if no
other libao plugin is installed, and is binary package friendly.
Addresses PR pkg/30920 by Chuck Cranor.
Diffstat (limited to 'audio/libao')
-rw-r--r-- | audio/libao/buildlink3.mk | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/audio/libao/buildlink3.mk b/audio/libao/buildlink3.mk index da1a6619b35..a50f99c8133 100644 --- a/audio/libao/buildlink3.mk +++ b/audio/libao/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.6 2005/05/20 19:20:55 jmmv Exp $ +# $NetBSD: buildlink3.mk,v 1.7 2005/10/08 12:30:38 jmmv Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ LIBAO_BUILDLINK3_MK:= ${LIBAO_BUILDLINK3_MK}+ @@ -14,6 +14,21 @@ BUILDLINK_PACKAGES+= libao BUILDLINK_DEPENDS.libao+= libao>=0.8.4 BUILDLINK_RECOMMENDED.libao+= libao>=0.8.4nb1 BUILDLINK_PKGSRCDIR.libao?= ../../audio/libao + +. if !defined(_LIBAO_BUILDING_PLUGIN) +. include "../../mk/bsd.prefs.mk" +. if ${OPSYS} != "Darwin" && ${OPSYS} != "Interix" && ${OPSYS} != "SunOS" +_LIBAO_DEFAULT_PLUGIN= oss +. elif ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" +_LIBAO_DEFAULT_PLUGIN= sun +. else +_LIBAO_DEFAULT_PLUGIN= +. endif + +. if !empty(_LIBAO_DEFAULT_PLUGIN) +DEPENDS+= libao-[a-z]*-[0-9]*:../../audio/libao-${_LIBAO_DEFAULT_PLUGIN} +. endif +. endif .endif # LIBAO_BUILDLINK3_MK PRINT_PLIST_AWK+= /^@dirrm lib\/ao\/plugins-2$$/ \ |