diff options
author | obache <obache@pkgsrc.org> | 2010-08-21 05:07:51 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-08-21 05:07:51 +0000 |
commit | 04160fb25bf35a2694cf46fb21164561739a6ce8 (patch) | |
tree | 2c1270d6765a5af2af0e08b5f177ef9b9391da87 /mk/buildlink3 | |
parent | e573803f7aa3d12400490ba832f4af2c2d1c5d59 (diff) | |
download | pkgsrc-04160fb25bf35a2694cf46fb21164561739a6ce8.tar.gz |
Support builtin library detection for Haiku.
A half of PR#43399.
Diffstat (limited to 'mk/buildlink3')
-rw-r--r-- | mk/buildlink3/find-libs.mk | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mk/buildlink3/find-libs.mk b/mk/buildlink3/find-libs.mk index 68592b07584..8a73ee1d4d9 100644 --- a/mk/buildlink3/find-libs.mk +++ b/mk/buildlink3/find-libs.mk @@ -1,4 +1,4 @@ -# $NetBSD: find-libs.mk,v 1.8 2010/05/03 06:58:27 obache Exp $ +# $NetBSD: find-libs.mk,v 1.9 2010/08/21 05:07:51 obache Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -61,6 +61,19 @@ USE_TOOLS+= test .for _lib_ in ${BUILTIN_FIND_LIBS} . if !defined(BUILTIN_LIB_FOUND.${_lib_}) +. if ${OPSYS} == "Haiku" && defined(BELIBRARIES) && !empty(BELIBRARIES) +BUILTIN_LIB_FOUND.${_lib_}= no +. for _path_ in ${BELIBRARIES:S/:/ /g} +. if ${BUILTIN_LIB_FOUND.${_lib_}} == "no" +BUILTIN_LIB_FOUND.${_lib_}!= \ + if ${TEST} "`${ECHO} ${_path_}/lib${_lib_}.*`" != "${_path_}/lib${_lib_}.*"; then \ + ${ECHO} yes; \ + else \ + ${ECHO} no; \ + fi +. endif +. endfor +. else BUILTIN_LIB_FOUND.${_lib_}!= \ if ${TEST} "`${ECHO} /usr/lib${ABI}/lib${_lib_}.*`" != "/usr/lib${ABI}/lib${_lib_}.*"; then \ ${ECHO} yes; \ @@ -71,6 +84,7 @@ BUILTIN_LIB_FOUND.${_lib_}!= \ else \ ${ECHO} no; \ fi +. endif . endif MAKEVARS+= BUILTIN_LIB_FOUND.${_lib_} .endfor |