source: trunk/dports/devel/libtool/Portfile

Last change on this file was 150720, checked in by larryv@…, 12 months ago

libtool: Add notes to patches

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
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 150720 2016-07-27 18:31:26Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libtool
7version             2.4.6
8revision            2
9categories          devel sysutils
10platforms           darwin freebsd
11# Scripts are GPL-2+, libltdl is LGPL-2+, but all parts that tend to be
12# distributed with dependents have a licensing exception that allows
13# distribution under the same terms as the rest of the program.
14license             libtool
15maintainers         larryv
16
17description         The GNU Portable Library Tool
18long_description    GNU libtool is a generic library support script. \
19                    Libtool hides the complexity of using shared \
20                    libraries behind a consistent, portable interface.
21homepage            https://www.gnu.org/software/libtool
22
23master_sites        gnu
24checksums           rmd160  6f4b4c3e89426652da3acffa707f71bb4ccee26a \
25                    sha256  e3bd4d5d3d025a36c21dd6af7ea818a2afcd4dfc1ea5a17b39d7854bcd0c06e3
26
27patchfiles          hardcode-m4.patch asan.patch
28post-patch {
29    # Stop build from trying to regenerate these after patching.
30    touch ${worksrcpath}/doc/libtool.1 ${worksrcpath}/doc/libtoolize.1
31}
32
33# Leopard and later provide GNU M4 1.4.6, which works fine. Tiger's
34# 1.4.2 does not (#47545).
35#   - http://lists.gnu.org/archive/html/libtool/2014-12/msg00002.html
36#   - http://lists.gnu.org/archive/html/libtool/2015-01/msg00004.html
37if {${os.platform} eq "darwin" && ${os.major} >= 9} {
38    configure.env   M4=/usr/bin/m4
39} else {
40    depends_lib     port:m4
41}
42
43# Don't let configure detect MacPorts' grep or gsed (#19237).
44if {${os.platform} eq "darwin"} {
45    configure.env-append    GREP=/usr/bin/grep SED=/usr/bin/sed
46} else {
47    depends_lib-append      port:grep port:gsed
48}
49
50# Don't look for broken compilers (#23684, #32321).
51configure.env-append    GCJ=no
52configure.fc            no
53configure.f77           no
54
55configure.args          --disable-silent-rules --program-prefix=g
56
57post-destroot {
58    set gnubin ${prefix}/libexec/gnubin
59    xinstall -d ${destroot}${gnubin}
60    ln -s ../../bin/glibtool ${destroot}${gnubin}/libtool
61    ln -s ../../bin/glibtoolize ${destroot}${gnubin}/libtoolize
62
63    set docdir ${prefix}/share/doc/${name}
64    xinstall -d ${destroot}${docdir}
65    xinstall -m 0644 -W ${worksrcpath} \
66            AUTHORS COPYING ChangeLog NEWS README THANKS TODO \
67            ${destroot}${docdir}
68}
69
70test.run            yes
71test.target         check
Note: See TracBrowser for help on using the repository browser.