-
Notifications
You must be signed in to change notification settings - Fork 15
/
Portfile
60 lines (58 loc) · 2.71 KB
/
Portfile
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
# -*- 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
# $Id$
PortSystem 1.0
set targetarch arm-none-eabi
name ${targetarch}-binutils
version 2.21
categories cross devel
platforms darwin
maintainers nomaintainer
description binutils for ${targetarch}
long_description binutils compiled for ${targetarch}
master_sites http://ftp.gnu.org/gnu/binutils/
distfiles binutils-${version}.tar.bz2
use_bzip2 yes
checksums md5 c84c5acc9d266f1a7044b51c85a823f5 \
sha1 ef93235588eb443e4c4a77f229a8d131bccaecc6 \
rmd160 8d2ebab3287a6283267879074b808d20fe9112b0
# All cross ports violate the mtree layout.
destroot.violate_mtree yes
worksrcdir build
pre-configure {
file mkdir ${worksrcpath}
}
configure.cmd ../binutils-${version}/configure
configure.optflags-delete -O2
configure.pipe
configure.cc gcc
configure.cxx g++
configure.cppflags
configure.ldflags
configure.args --target=${targetarch} \
--enable-interwork \
--enable-multilib \
--disable-nls \
--disable-shared \
--disable-threads \
--with-gcc \
--with-gnu-as \
--with-gnu-ld \
--disable-werror
post-destroot {
file rename ${destroot}${prefix}/share/info/configure.info \
${destroot}${prefix}/share/info/configure-mp-${version}-${name}.info
file rename ${destroot}${prefix}/share/info/standards.info \
${destroot}${prefix}/share/info/standards-mp-${version}-${name}.info
file rename ${destroot}${prefix}/share/info/bfd.info \
${destroot}${prefix}/share/info/bfd-mp-${version}-${name}.info
file rename ${destroot}${prefix}/share/info/binutils.info \
${destroot}${prefix}/share/info/binutils-mp-${version}-${name}.info
file rename ${destroot}${prefix}/share/info/gprof.info \
${destroot}${prefix}/share/info/gprof-mp-${version}-${name}.info
file rename ${destroot}${prefix}/share/info/ld.info \
${destroot}${prefix}/share/info/ld-mp-${version}-${name}.info
# (host) libiberty
foreach f [glob -directory "${destroot}${prefix}/lib" libiberty.a */libiberty.a] {
file delete $f
}
}