source: trunk/dports/devel/autoconf/Portfile

Last change on this file was 137299, checked in by larryv@…, 4 years ago

autoconf, libtool: Use system M4 on Leopard and later

Still trying to minimize dependencies of Autotools and Libtool.

Specific to libtool:

  • Avoid a weird, inadvertent dependency on the m4 port if it's present at compile time.
  • Bake the path to the system M4 into libtoolize to prevent it from picking up different executables depending on whether said m4 port is installed or not. (Setting "M4" in the calling environment will still override libtoolize's default.)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 137299 2015-06-08 18:06:10Z $
4PortSystem          1.0
6name                autoconf
7epoch               1
8version             2.69
9revision            5
10categories          devel
11# the license is GPL-3+ with an exception:
13platforms           darwin
14supported_archs     noarch
15license             {Autoconf GPL-3+}
16maintainers         larryv
18description         Automatically configures software for compilation
19long_description    Autoconf is an extensible package of m4 macros \
20                    that produce shell scripts to automatically \
21                    configure software source code packages. These \
22                    scripts can adapt the packages to many kinds of \
23                    UNIX-like systems without manual user \
24                    intervention. Autoconf creates a configuration \
25                    script for a package from a template file that \
26                    lists the operating system features that the \
27                    package can use, in the form of m4 macro calls.
30depends_lib         port:gettext
31installs_libs       no
33master_sites        gnu
34use_xz              yes
35checksums           rmd160  666aa45a58e856968c651e2a3b44be38de9c14e4 \
36                    sha256  64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684
38patchfiles          use-macports-tools.patch
39post-patch {
40    # Stop build from trying to regenerate this after patching.
41    touch ${worksrcpath}/man/autoreconf.1
44# Backport a testsuite fix from upstream.
45patchfiles-append \
46        0001-tests-avoid-spurious-test-failure-with-libtool-2.4.3.patch
48# The README prescribes GNU M4 1.4.6 or later, which Leopard and later
49# have. Tiger only provides 1.4.2.
50if {${os.platform} eq "darwin" && ${os.major} >= 9} {
51    configure.env       M4=/usr/bin/m4
52} else {
53    depends_lib-append  port:m4
56# It should be safe to use the system Perl, since the scripts only use
57# core modules. The README prescribes 5.6 or later, and Tiger has 5.8.6.
58configure.perl      /usr/bin/perl
59            yes
61test.env            CC=${}         check
64livecheck.type      regex
66livecheck.regex     ${name}-(\\d+\\.\\d+)
Note: See TracBrowser for help on using the repository browser.