summaryrefslogtreecommitdiff
path: root/audio/flac/buildlink3.mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-01-24 03:26:45 +0000
committerjlam <jlam>2004-01-24 03:26:45 +0000
commitd8c00d5fab961462cd0da94e6a9beebcd7b20931 (patch)
tree4963c5656e148ab0bec2e19df9ec8ccd15d2789f /audio/flac/buildlink3.mk
parente70d43134bb69fe026895e79b6fc99daee40e5db (diff)
downloadpkgsrc-d8c00d5fab961462cd0da94e6a9beebcd7b20931.tar.gz
Append to BUILDLINK_DEPENDS.<pkg> instead of setting a default value. In
the normal case when BUILDLINK_DEPENDS.<pkg> isn't specified, it receives a value only once due to the multiple inclusion protection in the bulldlink3.mk files. In the case where a package includes several buildlink3.mk files that each want a slightly different version of another dependency, having BUILDLINK_DEPENDS.<pkg> be a list allows for the strictest <pkg> dependency to be matched.
Diffstat (limited to 'audio/flac/buildlink3.mk')
-rw-r--r--audio/flac/buildlink3.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/audio/flac/buildlink3.mk b/audio/flac/buildlink3.mk
new file mode 100644
index 00000000000..8b644b6766e
--- /dev/null
+++ b/audio/flac/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/24 03:26:46 jlam Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+FLAC_BUILDLINK3_MK:= ${FLAC_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= flac
+.endif
+
+.if !empty(FLAC_BUILDLINK3_MK:M+)
+BUILDLINK_PACKAGES+= flac
+BUILDLINK_DEPENDS.flac+= flac>=1.1.0nb1
+BUILDLINK_PKGSRCDIR.flac?= ../../audio/flac
+
+. include "../../audio/libogg/buildlink3.mk"
+.endif # FLAC_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}