summaryrefslogtreecommitdiffstats
path: root/ports-mgmt/portaudit
diff options
context:
space:
mode:
authoreik <eik@FreeBSD.org>2004-07-02 00:31:18 +0000
committereik <eik@FreeBSD.org>2004-07-02 00:31:18 +0000
commitcf5e7fd4665161e8be08470f893dd40fa4c0d878 (patch)
tree3aeca6610f56d5860c90b0224e077443c77f9ee4 /ports-mgmt/portaudit
parent0fd73fe5899065be19d9456924aa7f49ec61d124 (diff)
downloadFreeBSD-ports-cf5e7fd4665161e8be08470f893dd40fa4c0d878.zip
FreeBSD-ports-cf5e7fd4665161e8be08470f893dd40fa4c0d878.tar.gz
Test OSVERSION instead of pkg_info -P to enable cross-version builds
Requested by: kris
Diffstat (limited to 'ports-mgmt/portaudit')
-rw-r--r--ports-mgmt/portaudit/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/ports-mgmt/portaudit/Makefile b/ports-mgmt/portaudit/Makefile
index c092093..330c0b3 100644
--- a/ports-mgmt/portaudit/Makefile
+++ b/ports-mgmt/portaudit/Makefile
@@ -36,15 +36,12 @@ SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' \
-e "s|%%REQPKGVER%%|${REQPKGVER}|g" \
-e "s|%%BZIP2_CMD%%|${BZIP2_CMD}|g" \
-PKG_INFO_BASE?= /usr/sbin/pkg_info
-BASEPKGVER!= ${PKG_INFO_BASE} -qP 2>/dev/null || ${TRUE}
+.include <bsd.port.pre.mk>
-.if ${BASEPKGVER} < ${REQPKGVER}
+.if ${OSVERSION} < 492000 || ${OSVERSION} >= 500000 && ${OSVERSION} < 502120
RUN_DEPENDS= ${LOCALBASE}/sbin/pkg_info:${PORTSDIR}/sysutils/pkg_install-devel
.endif
-.include <bsd.port.pre.mk>
-
.if defined(BZIP2DEPENDS)
RUN_DEPENDS+= bzip2:${PORTSDIR}/archivers/bzip2
.endif
OpenPOWER on IntegriCloud