summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-09-16 07:37:10 +0000
committersbd <sbd@pkgsrc.org>2012-09-16 07:37:10 +0000
commit163d71e24236608d790c34aaa72b8e3330e2e3e6 (patch)
tree75ef0a0d42b2d35273ee1fd30a575b86889df089 /mk
parentacd29170a5d3b1a9564a45e04e6a6743f65af754 (diff)
downloadpkgsrc-163d71e24236608d790c34aaa72b8e3330e2e3e6.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.mk8
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