diff options
author | wiz <wiz> | 2005-06-03 13:19:22 +0000 |
---|---|---|
committer | wiz <wiz> | 2005-06-03 13:19:22 +0000 |
commit | f8c4324dded3847697527785af4e2a4987546414 (patch) | |
tree | cb45c088ba8228f3f1a9951fd7f26635f328ab24 /audio/libmikmod | |
parent | 89dad8e62ffc7d8c944f0bd7defb34ef3fc3f6ce (diff) | |
download | pkgsrc-f8c4324dded3847697527785af4e2a4987546414.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')
-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 |