diff options
author | obache <obache@pkgsrc.org> | 2010-04-28 08:15:55 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-04-28 08:15:55 +0000 |
commit | 70c592bc3b4d11970b3bb5d2e516ba6008ba0648 (patch) | |
tree | b8cfad709af0424063adcf02bcdd34e9fbf138c5 /mk | |
parent | a8b531173a121c07c88c5ef8b307f7620fcf57ad (diff) | |
download | pkgsrc-70c592bc3b4d11970b3bb5d2e516ba6008ba0648.tar.gz |
Use /boot/common as default BUILDLINK_PREFIX if /usr does not exist.
It's default location of posix packages for Haiku OS.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index f5e40b4fc99..f3bdaaf3190 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.206 2009/03/20 20:10:15 joerg Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.207 2010/04/28 08:15:55 obache Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -282,7 +282,16 @@ _BLNK_PKG_DBDIR.${_pkg_}?= _BLNK_PKG_DBDIR.${_pkg_}_not_found _BLNK_PKG_INFO.${_pkg_}?= ${TRUE} BUILDLINK_PKGNAME.${_pkg_}?= ${_pkg_} BUILDLINK_IS_DEPOT.${_pkg_}?= no +# Usual systems has buitin packages in /usr +. if exists(/usr) BUILDLINK_PREFIX.${_pkg_}?= /usr +# Haiku OS has posix packages in /boot/common +. elif exists(/boot/common) +BUILDLINK_PREFIX.${_pkg_}?= /boot/common +. else +# XXX: elsewhere? +BUILDLINK_PREFIX.${_pkg_}?= / +. endif . endif # # Set a default for _BLNK_PKG_DBDIR.<pkg>, which is the directory |