pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/libmikmod Convert away from using USE_ESOUND.
details: https://anonhg.NetBSD.org/pkgsrc/rev/0749c146b7a4
branches: trunk
changeset: 495149:0749c146b7a4
user: wiz <wiz%pkgsrc.org@localhost>
date: Fri Jun 03 13:19:22 2005 +0000
description:
Convert away from using USE_ESOUND.
Also:
On NetBSD, libmikmod dynamically loads esound, so there is
no library dependency -- do not include esound bl3.mk in those
cases.
XXX: please check other OPSYS if they do the same, and add cases
diffstat:
audio/libmikmod/buildlink3.mk | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 213295df2e7e -r 0749c146b7a4 audio/libmikmod/buildlink3.mk
--- a/audio/libmikmod/buildlink3.mk Fri Jun 03 13:05:20 2005 +0000
+++ b/audio/libmikmod/buildlink3.mk Fri Jun 03 13:19:22 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.5 2004/10/03 00:13:07 tv Exp $
+# $NetBSD: buildlink3.mk,v 1.6 2005/06/03 13:19:22 wiz Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
LIBMIKMOD_BUILDLINK3_MK:= ${LIBMIKMOD_BUILDLINK3_MK}+
@@ -18,7 +18,18 @@
BUILDLINK_PKGSRCDIR.libmikmod?= ../../audio/libmikmod
.endif # LIBMIKMOD_BUILDLINK3_MK
-.if defined(USE_ESOUND) && !empty(USE_ESOUND:M[Yy][Ee][Ss])
+.if !defined(PKG_BUILD_OPTIONS.libmikmod)
+PKG_BUILD_OPTIONS.libmikmod!= cd ${BUILDLINK_PKGSRCDIR.libmikmod} && \
+ ${MAKE} show-var ${MAKEFLAGS} VARNAME=PKG_OPTIONS
+MAKEFLAGS+= PKG_BUILD_OPTIONS.libmikmod=${PKG_BUILD_OPTIONS.libmikmod:Q}
+.endif
+MAKEVARS+= PKG_BUILD_OPTIONS.libmikmod
+
+# On NetBSD, libmikmod dynamically loads esound, so there is
+# no library dependency
+# XXX: add cases for other OPSYS that do that!
+.if !empty(PKG_BUILD_OPTIONS.libmikmod:Mesound) && \
+ empty(OPSYS:MNetBSD)
. include "../../audio/esound/buildlink3.mk"
.endif
Home |
Main Index |
Thread Index |
Old Index