diff options
author | tijl <tijl@FreeBSD.org> | 2018-01-15 18:01:32 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2018-01-15 18:01:32 +0800 |
commit | 6f1746000fd56834bf306761469e5aa54c00a972 (patch) | |
tree | 0518dac7a1727b33c03a95f60e15d3b61bccbe07 /Mk | |
parent | 544d4ad508ec020bce79532d7d03a0ac4ed0b65e (diff) | |
download | freebsd-ports-gnome-6f1746000fd56834bf306761469e5aa54c00a972.tar.gz freebsd-ports-gnome-6f1746000fd56834bf306761469e5aa54c00a972.tar.zst freebsd-ports-gnome-6f1746000fd56834bf306761469e5aa54c00a972.zip |
Retire USE_AUTOTOOLS and bsd.autotools.mk.
PR: 225170
Approved by: portmgr (antoine)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.autotools.mk | 138 | ||||
-rw-r--r-- | Mk/bsd.port.mk | 8 |
2 files changed, 0 insertions, 146 deletions
diff --git a/Mk/bsd.autotools.mk b/Mk/bsd.autotools.mk deleted file mode 100644 index dc5f78689a33..000000000000 --- a/Mk/bsd.autotools.mk +++ /dev/null @@ -1,138 +0,0 @@ -# $FreeBSD$ -# -# IMPORTANT NOTE: -# Before making any changes to this file, contact portmgr to arrange -# for an experimental ports run. -# Untested commits will almost certainly break the tree, incur the -# wrath of countless folks, and be unceremoniously backed out by -# the maintainer and/or portmgr. - -Autotools_Include_MAINTAINER= tijl@FreeBSD.org - -#--------------------------------------------------------------------------- -# USE_AUTOTOOLS= tool[:env] ... -# -# 'tool' can currently be one of the following: -# autoconf -# -# ':env' is used to specify that the environmental variables are needed -# but the relevant tool should NOT be run as part of the -# 'run-autotools' target -# -# In addition, these variables can be set in the port Makefile to be -# passed to the relevant tools: -# -# AUTOCONF_ARGS=... -# - Extra arguments passed to autoconf during configure step -# -#--------------------------------------------------------------------------- - -#--------------------------------------------------------------------------- -# NO USER-SERVICABLE PARTS BEYOND THIS POINT. REALLY. WE MEAN IT. -#--------------------------------------------------------------------------- - -# Known autotools components -_AUTOTOOLS_ALL= autoconf - -#--------------------------------------------------------------------------- -# Primary magic to break out the USE_AUTOTOOLS stanza into something -# more useful, along with substantial error checking to prevent -# foot-shooting -#--------------------------------------------------------------------------- - -# Break out the stanza -# -_AUTOTOOLS_IMPL= -.for stanza in ${USE_AUTOTOOLS} -_AUTOTOOLS_IMPL+= ${stanza:C/^([^:]+).*/\1/} -_AUTOTOOL_${stanza:C/^([^:]+).*/\1/}= ${stanza:C/^[^:]+:([^:]+)/\1/} -.endfor - -# Verify each component, normalize -# -_AUTOTOOLS_NOCOMP= -.for component in ${_AUTOTOOLS_IMPL} -. if ${_AUTOTOOLS_ALL:M${component}}=="" -_AUTOTOOLS_NOCOMP+= ${component} -. endif -. if ${_AUTOTOOL_${component}}==${component} -_AUTOTOOL_${component}= yes -. elsif ${_AUTOTOOL_${component}}!="env" && ${_AUTOTOOL_${component}}!="yes" -_AUTOTOOLS_BADCOMP+= ${component}:${_AUTOTOOL_${component}} -. endif -.endfor -.if !empty(_AUTOTOOLS_NOCOMP) -IGNORE+= Unknown autotool: ${_AUTOTOOLS_NOCOMP:O:u} -.endif - -# Check for anything other than 'yes' or 'env' -# -_AUTOTOOLS_BADCOMP= -.for component in ${_AUTOTOOLS_IMPL} -. if ${_AUTOTOOL_${component}}!="env" && ${_AUTOTOOL_${component}}!="yes" -_AUTOTOOLS_BADCOMP+= ${component}:${_AUTOTOOL_${component}} -. endif -.endfor -.if !empty(_AUTOTOOLS_BADCOMP) -IGNORE+= Bad autotool stanza: ${_AUTOTOOLS_BADCOMP:O:u} -.endif - -#--------------------------------------------------------------------------- -# autoconf -#--------------------------------------------------------------------------- - -.if defined(_AUTOTOOL_autoconf) -AUTOCONF_VERSION= 2.69 -AUTOCONF_PORT= devel/autoconf - -. if ${_AUTOTOOL_autoconf} == "yes" -_AUTOTOOL_rule_autoconf= yes -GNU_CONFIGURE?= yes -. endif -.endif - -.if defined(AUTOCONF_VERSION) -AUTOCONF= ${LOCALBASE}/bin/autoconf-${AUTOCONF_VERSION} -AUTOCONF_DIR= ${LOCALBASE}/share/autoconf-${AUTOCONF_VERSION} -AUTOIFNAMES= ${LOCALBASE}/bin/ifnames-${AUTOCONF_VERSION} -AUTOM4TE?= ${LOCALBASE}/bin/autom4te-${AUTOCONF_VERSION} -AUTORECONF= ${LOCALBASE}/bin/autoreconf-${AUTOCONF_VERSION} -AUTOSCAN= ${LOCALBASE}/bin/autoscan-${AUTOCONF_VERSION} -AUTOUPDATE= ${LOCALBASE}/bin/autoupdate-${AUTOCONF_VERSION} - -AUTOCONF_VARS= AUTOCONF=${AUTOCONF} \ - AUTOCONF_DIR=${AUTOCONF_DIR} \ - AUTOIFNAMES=${AUTOIFNAMES} \ - AUTOM4TE=${AUTOM4TE} \ - AUTORECONF=${AUTORECONF} \ - AUTOSCAN=${AUTOSCAN} \ - AUTOUPDATE=${AUTOUPDATE} \ - AUTOCONF_VERSION=${AUTOCONF_VERSION} - -AUTOCONF_DEPENDS= ${AUTOCONF}:${AUTOCONF_PORT} -BUILD_DEPENDS+= ${AUTOCONF_DEPENDS} -.endif - -#--------------------------------------------------------------------------- -# Add to the environment -#--------------------------------------------------------------------------- - -AUTOTOOLS_VARS= ${AUTOCONF_VARS} - -.if defined(AUTOTOOLS_VARS) && !empty(AUTOTOOLS_VARS) -. for var in AUTOTOOLS CONFIGURE MAKE SCRIPTS -${var:tu}_ENV+= ${AUTOTOOLS_VARS} -. endfor -.endif - -#--------------------------------------------------------------------------- -# Make targets -#--------------------------------------------------------------------------- - -_USES_configure+=461:run-autotools-autoconf - -.if defined(_AUTOTOOL_rule_autoconf) && !target(run-autotools-autoconf) -run-autotools-autoconf: - @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} \ - ${AUTOCONF_ARGS}) -.endif diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index e30e1b0311a0..3db728b11168 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -380,10 +380,6 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # - If set, the system should use OpenLDAP libraries # with SASL support. ## -# USE_AUTOTOOLS - If set, this port uses various GNU autotools -# (libtool, autoconf, autoheader, automake et al.) -# See bsd.autotools.mk for more details. -## # USE_FPC - If set, this port relies on the Free Pascal language. # Implies inclusion of bsd.fpc.mk. (Also see # that file for more information on WANT_FPC_*). @@ -1979,10 +1975,6 @@ _USES_POST+= php .include "${PORTSDIR}/Mk/bsd.apache.mk" .endif -.if defined(USE_AUTOTOOLS) -.include "${PORTSDIR}/Mk/bsd.autotools.mk" -.endif - .if defined(USE_FPC) || defined(WANT_FPC_BASE) || defined(WANT_FPC_ALL) .include "${PORTSDIR}/Mk/bsd.fpc.mk" .endif |