diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 1998-03-27 03:30:44 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 1998-03-27 03:30:44 +0000 |
commit | f1fad4acae8ef971b8174067a98e8c977812fa73 (patch) | |
tree | ed9fa5d31990ac143d07e7219ba2a0530b431932 /share | |
parent | 1b03f2d7ad22506b53fda8db7f89e3951d107521 (diff) |
Add support for the COMES_WITH variable. COMES_WITH is set to the OpenBSD
version that a port became part of the standard distribution. If someone
tries to generate the port on that version (or later) they will see the
message "<port> comes with OpenBSD as of release ${COMES_WITH}". Users
of earlier versions of OpenBSD will still generate the port.
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.port.mk | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index db0c9fb4b4a..d57f4a6ec93 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.25 1998/02/19 20:41:02 marc Exp $ +# $OpenBSD: bsd.port.mk,v 1.26 1998/03/27 03:30:43 marc Exp $ # $NetBSD: $ # # bsd.port.mk - 940820 Jordan K. Hubbard. @@ -115,6 +115,10 @@ OpenBSD_MAINTAINER= joey@OpenBSD.ORG # MTREE_FILE - The name of the mtree file (default: /etc/mtree/BSD.x11.dist # if USE_IMAKE or USE_X11 is set, /etc/mtree/BSD.local.dist # otherwise.) +# COMES_WITH - The first version that a port was made part of the +# standard OpenBSD distribution. If the current OpenBSD +# version is >= this version then a notice will be +# displayed instead the port being generated. # # NO_BUILD - Use a dummy (do-nothing) build target. # NO_CONFIGURE - Use a dummy (do-nothing) configure target. @@ -271,7 +275,19 @@ OpenBSD_MAINTAINER= joey@OpenBSD.ORG # NEVER override the "regular" targets unless you want to open # a major can of worms. -.if defined(ONLY_FOR_ARCHS) +# Get the operating system type +OPSYS!= uname -s + +.if defined(COMES_WITH) +OS_VER!= uname -r +.if ( ${OS_VER} >= ${COMES_WITH} ) +__NOT_NEEDED!= basename ${.CURDIR} +.endif +.endif +.if defined(__NOT_NEEDED) +fetch fetch-list extract patch clean clean-depends configure build install reinstall package describe checkpatch checksum makesum all: + @echo "${__NOT_NEEDED} comes with ${OPSYS} as of release ${COMES_WITH} +.elif defined(ONLY_FOR_ARCHS) .for __ARCH in ${ONLY_FOR_ARCHS} .if ${MACHINE} == "${__ARCH}" __ARCH_OK= 1 @@ -292,9 +308,6 @@ fetch fetch-list extract patch clean clean-depends configure build install reins # Get the architecture ARCH!= uname -m -# Get the operating system type -OPSYS!= uname -s - .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" .endif |