aboutsummaryrefslogtreecommitdiff
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
parent6a3d623d52e8bc44ca34e5c868fc3e0cc9a5e3c9 (diff)
downloadports-0a1e65e421d5da7e3809e0ae9ed087f6dd5a88b4.tar.gz
ports-0a1e65e421d5da7e3809e0ae9ed087f6dd5a88b4.zip
Notes
-rw-r--r--Mk/bsd.commands.mk15
-rw-r--r--Mk/bsd.port.mk14
2 files changed, 15 insertions, 14 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
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index d942c5352e10..6d151593415c 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2377,20 +2377,6 @@ PORTDIRNAME?= ${_PORTDIRNAME}
PKGORIGIN?= ${PKGCATEGORY}/${PORTDIRNAME}
-.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
-
.if !defined(PKG_ARGS)
PKG_ARGS= -v -c -${COMMENT:Q} -d ${DESCR} -f ${TMPPLIST} -p ${PREFIX} -P "`cd ${.CURDIR} && ${MAKE} actual-package-depends | ${GREP} -v -E ${PKG_IGNORE_DEPENDS} | ${SORT} -u -t : -k 2`" ${EXTRA_PKG_ARGS} $${_LATE_PKG_ARGS}
.if !defined(NO_MTREE)