summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-19 06:41:21 +0000
committerjlam <jlam@pkgsrc.org>2004-02-19 06:41:21 +0000
commit8840bcd45efd5d73167ea9d5362b225ccd19b283 (patch)
tree69aab3e40a9855e1454d4be5349b51369693d560
parent0ee68ead27baf9ca7e197bec64193e296b653a18 (diff)
downloadpkgsrc-8840bcd45efd5d73167ea9d5362b225ccd19b283.tar.gz
Clean up this buildlink3.mk file and check for USE_ESOUND before including
the esound/buildlink3.mk file. Fixes PR 24485.
-rw-r--r--audio/libmikmod/buildlink3.mk22
1 files changed, 10 insertions, 12 deletions
diff --git a/audio/libmikmod/buildlink3.mk b/audio/libmikmod/buildlink3.mk
index daaf94ebdca..2c423e4edee 100644
--- a/audio/libmikmod/buildlink3.mk
+++ b/audio/libmikmod/buildlink3.mk
@@ -1,24 +1,22 @@
-# $NetBSD: buildlink3.mk,v 1.1 2004/02/11 08:36:17 xtraeme Exp $
-#
-# This Makefile fragment is included by packages that use libmikmod.
-#
-# This file was created automatically using createbuildlink-3.1.
-#
+# $NetBSD: buildlink3.mk,v 1.2 2004/02/19 06:41:21 jlam Exp $
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
LIBMIKMOD_BUILDLINK3_MK:= ${LIBMIKMOD_BUILDLINK3_MK}+
+.include "../../mk/bsd.prefs.mk"
+
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= libmikmod
.endif
.if !empty(LIBMIKMOD_BUILDLINK3_MK:M+)
-BUILDLINK_PACKAGES+= libmikmod
-BUILDLINK_DEPENDS.libmikmod+= libmikmod>=3.1.9
-BUILDLINK_PKGSRCDIR.libmikmod?= ../../audio/libmikmod
-
-.include "../../audio/esound/buildlink3.mk"
+BUILDLINK_PACKAGES+= libmikmod
+BUILDLINK_DEPENDS.libmikmod+= libmikmod>=3.1.9
+BUILDLINK_PKGSRCDIR.libmikmod?= ../../audio/libmikmod
+. if defined(USE_ESOUND) && !empty(USE_ESOUND:M[Yy][Ee][Ss])
+. include "../../audio/esound/buildlink3.mk"
+. endif
.endif # LIBMIKMOD_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}