diff options
author | wiz <wiz@pkgsrc.org> | 2005-06-03 13:19:22 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-06-03 13:19:22 +0000 |
commit | 3dd599d89bb41dc784db40c53de0cd72d4ff50c3 (patch) | |
tree | cb45c088ba8228f3f1a9951fd7f26635f328ab24 /audio/libmikmod/buildlink3.mk | |
parent | d2a604d8a4e55269f557324bf00f521144d9d037 (diff) | |
download | pkgsrc-3dd599d89bb41dc784db40c53de0cd72d4ff50c3.tar.gz |
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 (limited to 'audio/libmikmod/buildlink3.mk')
-rw-r--r-- | audio/libmikmod/buildlink3.mk | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/audio/libmikmod/buildlink3.mk b/audio/libmikmod/buildlink3.mk index f2c59d47221..b538e9ad82c 100644 --- a/audio/libmikmod/buildlink3.mk +++ b/audio/libmikmod/buildlink3.mk @@ -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_RECOMMENDED.libmikmod+= libmikmod>=3.1.11.1nb1 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 |