aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.commands.mk
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-08-03 15:36:58 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-08-03 15:36:58 +0000
commit0a1e65e421d5da7e3809e0ae9ed087f6dd5a88b4 (patch)
tree6af2bf15b624c90e7a925752d82ceac1f5b94209 /Mk/bsd.commands.mk
parent6a3d623d52e8bc44ca34e5c868fc3e0cc9a5e3c9 (diff)
downloadports-0a1e65e421d5da7e3809e0ae9ed087f6dd5a88b4.tar.gz
ports-0a1e65e421d5da7e3809e0ae9ed087f6dd5a88b4.zip
- Move pkg_install commands detection to bsd.commands.mk
PR: 135663 Submitted: Yuri Pankov <yuri.pankov@gmail.com> - Add default FLEX command to bsd.commands.mk PR: 137026 Submitted: gahr@ Tested by: pointyhat exp-build run
Notes
Notes: svn path=/head/; revision=238833
Diffstat (limited to 'Mk/bsd.commands.mk')
-rw-r--r--Mk/bsd.commands.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/Mk/bsd.commands.mk b/Mk/bsd.commands.mk
index 2114f0b769d0..2320597ee130 100644
--- a/Mk/bsd.commands.mk
+++ b/Mk/bsd.commands.mk
@@ -41,6 +41,7 @@ EXPR?= /bin/expr
FALSE?= false # Shell builtin
FILE?= /usr/bin/file
FIND?= /usr/bin/find
+FLEX?= /usr/bin/flex
FMT?= /usr/bin/fmt
GMAKE?= gmake
GREP?= /usr/bin/grep
@@ -113,4 +114,18 @@ ECHO_CMD?= echo # Shell builtin
# Used to print all the '===>' style prompts - override this to turn them off.
ECHO_MSG?= ${ECHO_CMD}
+.if exists(${LOCALBASE}/sbin/pkg_info)
+PKG_CMD?= ${LOCALBASE}/sbin/pkg_create
+PKG_ADD?= ${LOCALBASE}/sbin/pkg_add
+PKG_DELETE?= ${LOCALBASE}/sbin/pkg_delete
+PKG_INFO?= ${LOCALBASE}/sbin/pkg_info
+PKG_VERSION?= ${LOCALBASE}/sbin/pkg_version
+.else
+PKG_CMD?= /usr/sbin/pkg_create
+PKG_ADD?= /usr/sbin/pkg_add
+PKG_DELETE?= /usr/sbin/pkg_delete
+PKG_INFO?= /usr/sbin/pkg_info
+PKG_VERSION?= /usr/sbin/pkg_version
+.endif
+
.endif