1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= autotools-wrappers
7 SDESC[standard]= Wrapper scripts for GNU autoconf and automake
13 SPKGS[standard]= complete
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 FPC_EQUIVALENT= devel/autoconf-wrapper
24 SUB_FILES= autoconf-wrapper
25 SUB_LIST= TOOL="AUTOCONF"
26 TOOLS_CASE="autoconf|autoheader|autom4te|autoreconf|autoscan|autoupdate|ifnames"
29 ${INSTALL_SCRIPT} ${WRKDIR}/autoconf-wrapper ${STAGEDIR}${PREFIX}/bin/
30 ${INSTALL_SCRIPT} ${WRKDIR}/automake-wrapper ${STAGEDIR}${PREFIX}/bin/
31 .for tool in autoconf autoheader autom4te autoreconf autoscan autoupdate ifnames
32 ${LN} -sf autoconf-wrapper ${STAGEDIR}${PREFIX}/bin/${tool}
34 .for tool in aclocal automake
35 ${LN} -sf automake-wrapper ${STAGEDIR}${PREFIX}/bin/${tool}
39 # Rather than duplicate autotools-wrapper.in, just manually
40 # create second SUB_FILE
41 ${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
42 -e 's,%%TOOL%%,AUTOMAKE,g' \
43 -e 's,%%TOOLS_CASE%%,aclocal|automake,g' \
44 ${FILESDIR}/autoconf-wrapper.in > ${WRKDIR}/automake-wrapper
46 [FILE:211:descriptions/desc.autoconf]
47 This port installs a wrapper script for autoconf, with symlinks to the
48 unversioned name of each tool included with autoconf. This allows the
49 correct version to be selected depending on the user's requirements.
52 [FILE:211:descriptions/desc.automake]
53 This port installs a wrapper script for automake, with symlinks to the
54 unversioned name of each tool included with automake. This allows the
55 correct version to be selected depending on the user's requirements.
58 [FILE:98:manifests/plist.autoconf]
70 [FILE:42:manifests/plist.automake]
77 [FILE:2845:files/autoconf-wrapper.in]
80 # Copyright (c) 2007 Dag-Erling Smørgrav
81 # All rights reserved.
83 # Redistribution and use in source and binary forms, with or without
84 # modification, are permitted provided that the following conditions
86 # 1. Redistributions of source code must retain the above copyright
87 # notice, this list of conditions and the following disclaimer
88 # in this position and unchanged.
89 # 2. Redistributions in binary form must reproduce the above copyright
90 # notice, this list of conditions and the following disclaimer in the
91 # documentation and/or other materials provided with the distribution.
93 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
94 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
95 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
96 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
97 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
98 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
99 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
100 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
101 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
102 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
106 bindir=%%PREFIX%%/bin
116 # Verify that the requested tool is one we know about
121 error "${tool}: unknown tool"
125 if [ -n "${AUTOTOOLS_DEBUG}" -a -n "${%%TOOL%%_VERSION}" ] ; then
126 echo "Requested ${tool} version ${%%TOOL%%_VERSION}" 1>&2
130 # Identify available versions.
132 # The double sort is necessary to correctly identify 1.10 as newer
135 # Note that it is conceivable that version A.BC of the requested tool
136 # is present both as "toolABC" and as "tool-A.BC". We take no special
137 # measures to handle this case.
139 /usr/bin/find ${bindir}/ -name "${tool}*[0-9]" | /usr/bin/sed -E \
140 -e "s@^.*/${tool}-([0-9])\\.([0-9]+)\$@\1 \2 \1.\2@" | \
141 /usr/bin/sort -n -k1 | /usr/bin/sort -n -s -k2 | {
142 while read maj min suffix ; do
143 selected_version=$suffix
144 if [ -n "${%%TOOL%%_VERSION}" -a \
145 "x${%%TOOL%%_VERSION}" = x${selected_version} ] ; then
150 if [ -z "${selected_version}" ] ; then
151 error "${tool}: not installed"
154 if [ -n "${%%TOOL%%_VERSION}" -a \
155 "x${%%TOOL%%_VERSION}" != x${selected_version} ] ; then
156 error "${tool}: required version" \
157 "${%%TOOL%%_VERSION} not found"
160 if [ -n "${AUTOTOOLS_DEBUG}" ] ; then
161 echo "Selecting ${tool} version ${selected_version}" \
162 "(${bindir}/${tool}-${selected_version})" 1>&2
166 exec ${bindir}/${tool}-${selected_version} "$@"