summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2005-10-08 12:30:38 +0000
committerjmmv <jmmv@pkgsrc.org>2005-10-08 12:30:38 +0000
commitdc5297dc9d2a24262cb8ecef5793856629775ba9 (patch)
tree45014122b9ea9db6b32e37f780f84a0285df819e
parentb461043a311dffcc8fb060f453528ec05b61b3df (diff)
downloadpkgsrc-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.
-rw-r--r--audio/libao-arts/Makefile4
-rw-r--r--audio/libao-esound/Makefile4
-rw-r--r--audio/libao-macosx/Makefile4
-rw-r--r--audio/libao-oss/Makefile4
-rw-r--r--audio/libao-sun/Makefile4
-rw-r--r--audio/libao/buildlink3.mk17
6 files changed, 31 insertions, 6 deletions
diff --git a/audio/libao-arts/Makefile b/audio/libao-arts/Makefile
index 3468d296cfb..a5239edd10c 100644
--- a/audio/libao-arts/Makefile
+++ b/audio/libao-arts/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2005/06/01 18:02:38 jlam Exp $
+# $NetBSD: Makefile,v 1.13 2005/10/08 12:30:38 jmmv Exp $
.include "../libao/Makefile.common"
@@ -10,6 +10,8 @@ CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S/disable-arts/enable-arts/g}
BUILD_DIRS= ${WRKSRC}/src/plugins/arts
INSTALL_DIRS= ${WRKSRC}/src/plugins/arts
+_LIBAO_BUILDING_PLUGIN= yes
+
.include "../../audio/arts/buildlink3.mk"
.include "../../audio/libao/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
diff --git a/audio/libao-esound/Makefile b/audio/libao-esound/Makefile
index 72f81b16b79..1ce6a3b3890 100644
--- a/audio/libao-esound/Makefile
+++ b/audio/libao-esound/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2004/11/16 14:49:52 adam Exp $
+# $NetBSD: Makefile,v 1.9 2005/10/08 12:30:38 jmmv Exp $
.include "../libao/Makefile.common"
@@ -10,6 +10,8 @@ CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S/disable-esd/enable-esd/g}
BUILD_DIRS= ${WRKSRC}/src/plugins/esd
INSTALL_DIRS= ${WRKSRC}/src/plugins/esd
+_LIBAO_BUILDING_PLUGIN= yes
+
.include "../../audio/esound/buildlink3.mk"
.include "../../audio/libao/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/libao-macosx/Makefile b/audio/libao-macosx/Makefile
index fc9e875d4f9..83635b8f48c 100644
--- a/audio/libao-macosx/Makefile
+++ b/audio/libao-macosx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2005/05/20 19:20:56 jmmv Exp $
+# $NetBSD: Makefile,v 1.2 2005/10/08 12:30:38 jmmv Exp $
.include "../libao/Makefile.common"
@@ -14,5 +14,7 @@ INSTALL_DIRS= ${WRKSRC}/src/plugins/macosx
BUILDLINK_DEPENDS.libao+= libao>=0.8.6nb1
+_LIBAO_BUILDING_PLUGIN= yes
+
.include "../../audio/libao/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/libao-oss/Makefile b/audio/libao-oss/Makefile
index 67a3766ff89..2dfaae74075 100644
--- a/audio/libao-oss/Makefile
+++ b/audio/libao-oss/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2005/05/20 19:20:56 jmmv Exp $
+# $NetBSD: Makefile,v 1.2 2005/10/08 12:30:38 jmmv Exp $
.include "../libao/Makefile.common"
@@ -21,6 +21,8 @@ SUBST_SED.oss+= -e 's|/dev/sound/dsp|${DEVOSSAUDIO}|g'
BUILDLINK_DEPENDS.libao+= libao>=0.8.6nb1
+_LIBAO_BUILDING_PLUGIN= yes
+
.include "../../audio/libao/buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/libao-sun/Makefile b/audio/libao-sun/Makefile
index 9311882c880..b2231beeacf 100644
--- a/audio/libao-sun/Makefile
+++ b/audio/libao-sun/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2005/05/24 15:57:19 jmmv Exp $
+# $NetBSD: Makefile,v 1.3 2005/10/08 12:30:38 jmmv Exp $
.include "../libao/Makefile.common"
@@ -14,5 +14,7 @@ INSTALL_DIRS= ${WRKSRC}/src/plugins/sun
BUILDLINK_DEPENDS.libao+= libao>=0.8.6nb1
+_LIBAO_BUILDING_PLUGIN= yes
+
.include "../../audio/libao/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
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$$/ \