-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathPortfile
More file actions
87 lines (72 loc) · 3.15 KB
/
Copy pathPortfile
File metadata and controls
87 lines (72 loc) · 3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# -*- 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
PortSystem 1.0
PortGroup clang_dependency 1.0
name libtool
version 2.4.6
revision 6
categories devel sysutils
platforms darwin freebsd
# Scripts are GPL-2+, libltdl is LGPL-2+, but all parts that tend to be
# distributed with dependents have a licensing exception that allows
# distribution under the same terms as the rest of the program.
license libtool
maintainers {larryv @larryv}
description The GNU Portable Library Tool
long_description GNU libtool is a generic library support script. \
Libtool hides the complexity of using shared \
libraries behind a consistent, portable interface.
homepage https://www.gnu.org/software/libtool
master_sites gnu
checksums rmd160 6f4b4c3e89426652da3acffa707f71bb4ccee26a \
sha256 e3bd4d5d3d025a36c21dd6af7ea818a2afcd4dfc1ea5a17b39d7854bcd0c06e3
# To clean up libtool 2.4.6 distfile.
depends_build bin:xattr:xattr
license_noconflict xattr
# Ignore architecture of xattr port, if used (#58083).
depends_skip_archcheck-append xattr
patchfiles hardcode-m4.patch asan.patch
post-patch {
# Stop build from trying to regenerate these after patching.
touch ${worksrcpath}/doc/libtool.1 ${worksrcpath}/doc/libtoolize.1
}
# Leopard and later provide GNU M4 1.4.6, which works fine. Tiger's
# 1.4.2 does not (#47545).
# - https://lists.gnu.org/archive/html/libtool/2014-12/msg00002.html
# - https://lists.gnu.org/archive/html/libtool/2015-01/msg00004.html
if {${os.platform} eq "darwin" && ${os.major} >= 9} {
configure.env M4=/usr/bin/m4
} else {
depends_lib port:m4
}
# Don't let configure detect MacPorts' grep or gsed (#19237).
if {${os.platform} eq "darwin"} {
configure.env-append GREP=/usr/bin/grep SED=/usr/bin/sed
} else {
depends_lib-append port:grep port:gsed
}
# Don't look for broken compilers (#23684, #32321).
configure.env-append GCJ=no
configure.fc no
configure.f77 no
configure.args --disable-silent-rules --program-prefix=g
post-destroot {
set gnubin ${prefix}/libexec/gnubin
xinstall -d ${destroot}${gnubin}
ln -s ../../bin/glibtool ${destroot}${gnubin}/libtool
ln -s ../../bin/glibtoolize ${destroot}${gnubin}/libtoolize
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} \
AUTHORS COPYING ChangeLog NEWS README THANKS TODO \
${destroot}${docdir}
# libtool 2.4.6 contains com.dropbox.attributes xattrs,
# let's avoid spreading them further (#54459)
# xattr on leopard or earlier does not support -r so do the recursion manually
if {${os.platform} eq "darwin" && ${os.major} >= 10} {
system "xattr -r -d com.dropbox.attributes ${destroot}"
} else {
system -W ${destroot} "find . -type f -print0 | xargs -0 xattr -d com.dropbox.attributes"
}
}
test.run yes
test.target check