diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1998-12-17 18:25:07 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1998-12-17 18:25:07 +0000 |
commit | e7d5dca95296cbaad9801169abc704b4612f8922 (patch) | |
tree | 6747634c95f4bee7e87fca44d8a40251ca7a2727 /share/mk | |
parent | 9dd18612c178b56b019cf354b8e946b57ffff81c (diff) |
NEED_VERSION
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.port.mk | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index 9d697eb7189..35b3f5e7d33 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -1,6 +1,6 @@ #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 -# $OpenBSD: bsd.port.mk,v 1.54 1998/12/16 19:59:48 marc Exp $ +# $OpenBSD: bsd.port.mk,v 1.55 1998/12/17 18:25:06 espie Exp $ # # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. @@ -28,6 +28,30 @@ FreeBSD_MAINTAINER= asami@FreeBSD.ORG OpenBSD_MAINTAINER= marc@OpenBSD.ORG NetBSD_MAINTAINER= agc@netbsd.org +# NEED_VERSION: we need at least this version of bsd.port.mk for this +# port to build + +FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.55 1998/12/17 18:25:06 espie Exp $$ +.if defined(NEED_VERSION) +VERSION_REVISION=${FULL_REVISION:M[0-9]*.*} + +VERSION=${VERSION_REVISION:C/\..*//} +REVISION=${VERSION_REVISION:C/.*\.//} + +VERSION_NEEDED=${NEED_VERSION:C/\..*//} +REVISION_NEEDED=${NEED_VERSION:C/.*\.//} + +.BEGIN: + @if [ ${VERSION_NEEDED} -gt ${VERSION} -o \ + ${VERSION_NEEDED} -eq ${VERSION} -a \ + ${REVISION_NEEDED} -gt ${REVISION} ]; \ + then \ + ${ECHO} "Need version ${NEED_VERSION} of bsd.port.mk"; \ + ${FALSE}; \ + fi; + +.endif + # Supported Variables and their behaviors: # # Variables that typically apply to all ports: |