diff options
author | Oliver Eikemeier <eik@FreeBSD.org> | 2004-07-02 00:31:18 +0000 |
---|---|---|
committer | Oliver Eikemeier <eik@FreeBSD.org> | 2004-07-02 00:31:18 +0000 |
commit | 580eeeff30d884bb343a8a69d8bab5ce194707b7 (patch) | |
tree | 9644b25f5ec02f1422ad18bc7f9ac3166b40fa7a /ports-mgmt/portaudit/Makefile | |
parent | f2d50f5392deb62f228b2f599c7d5e628007cbb2 (diff) |
Test OSVERSION instead of pkg_info -P to enable cross-version builds
Requested by: kris
Notes
Notes:
svn path=/head/; revision=112714
Diffstat (limited to 'ports-mgmt/portaudit/Makefile')
-rw-r--r-- | ports-mgmt/portaudit/Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ports-mgmt/portaudit/Makefile b/ports-mgmt/portaudit/Makefile index c09209369902..330c0b3c9080 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 |