aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/pkg/Makefile
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2018-02-06 14:13:35 +0000
committerSteve Wills <swills@FreeBSD.org>2018-02-06 14:13:35 +0000
commitcbee9380e1f5e103ab57253d1ddd2e57e52698db (patch)
treed16120798a30e1fc2719738011b2abd3536af63a /ports-mgmt/pkg/Makefile
parenta60e477e4c088f8791394c564d4f6e626b1ca49b (diff)
downloadports-cbee9380e1f5e103ab57253d1ddd2e57e52698db.tar.gz
ports-cbee9380e1f5e103ab57253d1ddd2e57e52698db.zip
Notes
Diffstat (limited to 'ports-mgmt/pkg/Makefile')
-rw-r--r--ports-mgmt/pkg/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile
index 89c71ac4f4e6..ab074b3df725 100644
--- a/ports-mgmt/pkg/Makefile
+++ b/ports-mgmt/pkg/Makefile
@@ -70,7 +70,12 @@ pre-everything::
#define PKG_DEPENDS to nothing to avoid infinite loop looking for pkg :)
PKG_DEPENDS=
.undef INSTALLS_DEPENDS
+
+# Use the internal pkg instead, generally, unless this is a cross-build,
+# in which case that won't work. Hope for the best then.
+.if !defined(CROSS_TOOLCHAIN)
PKG_BIN= ${WRKSRC}/src/pkg-static
+.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}