summaryrefslogtreecommitdiff
path: root/mk/defaults
diff options
context:
space:
mode:
authorjperkin <jperkin>2012-12-06 11:36:30 +0000
committerjperkin <jperkin>2012-12-06 11:36:30 +0000
commit8f700afa302e02d9ba9b8680de99b903e2a9ea60 (patch)
tree84f766bb8b9cbffe0b57fcfa317b3e88d3d29f7f /mk/defaults
parent9d33eae41ea88b933bf4b8886c642fe24e17a260 (diff)
downloadpkgsrc-8f700afa302e02d9ba9b8680de99b903e2a9ea60.tar.gz
Introduce PKGGNUDIR as a way to control gnu prefix.
By default pkgsrc uses LOCABASE/gnu as a prefix for packages to install native versions of GNU tools, which are them symbolically linked back to the 'g' versions of the files in LOCALBASE, and users can then add LOCALBASE/gnu/bin to PATH to pick up those tools. On systems where the GNU environment is desired, PKGGNUDIR now allows users to install the non-'g' files directly into LOCALBASE, making them the default without having to alter PATH, whilst retaining the 'g' files in order to ensure dependencies and tool paths remain the same.
Diffstat (limited to 'mk/defaults')
-rw-r--r--mk/defaults/mk.conf10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/defaults/mk.conf b/mk/defaults/mk.conf
index 50d4b3bc8fe..227d413108b 100644
--- a/mk/defaults/mk.conf
+++ b/mk/defaults/mk.conf
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf,v 1.217 2012/11/10 17:13:37 ryoon Exp $
+# $NetBSD: mk.conf,v 1.218 2012/12/06 11:36:31 jperkin Exp $
#
# This file provides default values for variables that may be overridden
@@ -307,6 +307,14 @@ PKGMANDIR?= man
#
# See also: PKGINFODIR
+PKGGNUDIR?= gnu/
+# The subdirectory of PREFIX that holds gnu programs and manual pages.
+# Making this value empty can be useful when trying to build a fully
+# GNU environment.
+#
+# Possible: Any sane pathname including a trailing slash, or empty to
+# install into LOCALBASE
+
BSDSRCDIR?= /usr/src
# Where the NetBSD src module source tree is located
# used in the emulators/plex86, emulators/vmware-module{,3}, net/arla,