diff options
author | eik <eik@FreeBSD.org> | 2004-07-02 08:31:18 +0800 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2004-07-02 08:31:18 +0800 |
commit | cf5e7fd4665161e8be08470f893dd40fa4c0d878 (patch) | |
tree | 3aeca6610f56d5860c90b0224e077443c77f9ee4 /security | |
parent | 0fd73fe5899065be19d9456924aa7f49ec61d124 (diff) | |
download | freebsd-ports-graphics-cf5e7fd4665161e8be08470f893dd40fa4c0d878.tar.gz freebsd-ports-graphics-cf5e7fd4665161e8be08470f893dd40fa4c0d878.tar.zst freebsd-ports-graphics-cf5e7fd4665161e8be08470f893dd40fa4c0d878.zip |
Test OSVERSION instead of pkg_info -P to enable cross-version builds
Requested by: kris
Diffstat (limited to 'security')
-rw-r--r-- | security/portaudit/Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/security/portaudit/Makefile b/security/portaudit/Makefile index c0920936990..330c0b3c908 100644 --- a/security/portaudit/Makefile +++ b/security/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 |