From owner-freebsd-ports Thu Aug 21 13:44:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA18488 for ports-outgoing; Thu, 21 Aug 1997 13:44:20 -0700 (PDT) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id NAA18481 for ; Thu, 21 Aug 1997 13:44:16 -0700 (PDT) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <51899(2)>; Thu, 21 Aug 1997 13:43:39 PDT Received: by crevenia.parc.xerox.com id <177512>; Thu, 21 Aug 1997 13:43:34 -0700 From: Bill Fenner To: freebsd-ports@freebsd.org Subject: Versioning bsd.port.mk Message-Id: <97Aug21.134334pdt.177512@crevenia.parc.xerox.com> Date: Thu, 21 Aug 1997 13:43:22 PDT Sender: owner-freebsd-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Sorry if this is a duplicate; I didn't see my original message either come back to me via the mailing list or in the archive. Adding the following to bsd.port.mk will give you a variable which is the check-in date of the existing bsd.port.mk (this doesn't help people who have their own CVS trees into which they check FreeBSD sources). BSD_PORT_MK_DATE= $$Date: $$ BSD_PORT_MK_DATE:= ${BSD_PORT_MK_DATE:M[0-9]*/[0-9]*} BSD_PORT_MK_DATE:= ${BSD_PORT_MK_DATE:S/\///g} Then bsd.port.mk could have something like .if defined(NEED_MK_VERSION) && (${NEED_MK_VERSION} > ${BSD_PORT_MK_DATE}) ${ECHO_MSG} "===> WARNING: you probably need a newer bsd.port.mk to build this port" .endif in bsd.port.mk, and port Makefiles could contain NEED_MK_VERSION= . Bill