Add a pre-everything:: target that will print out appropriate warnings

if a port is still using the old autotools Makefile constructs.

For example:

    *** AUTOTOOLS WARNING for x11/electricsheep
    This port is using old autotools constructs which wil be
    disappearing on 1st January 2006

    In most cases, this warning can be fixed by removing
    all the old constructs and replacing them with:
      USE_AUTOTOOLS=  libtool:13

The first line should be easily parseable by portbuild and tinderbox
clusters to flag such ports.

I'll be doing a few more sweeps of the ports tree to pick up on any
such ports over the coming weeks, before turning off the old system
and marking the port BROKEN in such cases.
This commit is contained in:
Ade Lovett 2005-11-19 22:04:25 +00:00
parent e14f6d2e72
commit 6a53d41a22
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148818

View File

@ -79,6 +79,16 @@ USE_AUTOTOOLS_COMPAT+= libtool:${WANT_LIBTOOL_VER}:env
BROKEN+= "Mix and match of old and new autotools system prohibited"
. else
USE_AUTOTOOLS= ${USE_AUTOTOOLS_COMPAT}
_AUTOTOOLS_PN= ${.CURDIR:C/${PORTSDIR}\///}
pre-everything::
@${ECHO} "*** AUTOTOOLS WARNING for ${_AUTOTOOLS_PN}"
@${ECHO} This port is using old autotools constructs which wil be"
@${ECHO} "disappearing on 1st January 2006"
@${ECHO} ""
@${ECHO} "In most cases, this warning can be fixed by removing"
@${ECHO} "all the old constructs and replacing them with:"
@${ECHO} " USE_AUTOTOOLS= ${USE_AUTOTOOLS_COMPAT}"
@${ECHO} ""
. endif
.endif