diff options
author | sbd <sbd> | 2012-09-16 07:37:10 +0000 |
---|---|---|
committer | sbd <sbd> | 2012-09-16 07:37:10 +0000 |
commit | 4eb23c818c82e20058e362d69babcb1009aeb3e5 (patch) | |
tree | 75ef0a0d42b2d35273ee1fd30a575b86889df089 /mk | |
parent | 75a0751275b87f52ee42e0f524fb7fe822d7cf9f (diff) | |
download | pkgsrc-4eb23c818c82e20058e362d69babcb1009aeb3e5.tar.gz |
Add BUILDLINK_DIR.${_pkg_} with is either ${BUILDLINK_PREFIX.${_pkg_}} if
it is a builtin prefix or ${BUILDLINK_DIR} otherwise.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index 48bdbcdfb07..2c2515d3927 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.214 2012/05/24 07:27:27 sbd Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.215 2012/09/16 07:37:10 sbd Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -354,6 +354,12 @@ BUILDLINK_PREFIX.${_pkg_}= BUILDLINK_PREFIX.${_pkg_}_not_found MAKEVARS+= BUILDLINK_PREFIX.${_pkg_} . endif +. if empty(BUILDLINK_PREFIX.${_pkg_}:N/usr:N/boot/common:N/) +BUILDLINK_DIR.${_pkg_}= ${BUILDLINK_PREFIX.${_pkg_}} +. else +BUILDLINK_DIR.${_pkg_}= ${BUILDLINK_DIR} +. endif + BUILDLINK_AUTO_VARS.${_pkg_}?= yes BUILDLINK_CPPFLAGS.${_pkg_}?= # empty BUILDLINK_LDFLAGS.${_pkg_}?= # empty |