forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPortfile
41 lines (31 loc) · 1.4 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
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup crossbinutils 1.0
crossbinutils.setup msp430-elf 2.26
set vers_patch 8.3.0.16
set name_patch msp430-gcc-${vers_patch}-source-patches
set file_patch ${name_patch}.tar.bz2
maintainers {g5pw @g5pw}
homepage http://www.ti.com/tool/msp430-gcc-opensource
master_sites-append http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/latest/exports/:patch
distfiles-append ${file_patch}:patch
checksums-append ${file_patch} \
rmd160 fa0c6ddd1d9e7a44ad470671c5c5be9a61a0051a \
sha256 2732abaf76e1da9e224b25d442c2f764c487087603ae1d954d6e980e48f37af7 \
size 143805
depends_extract-append \
bin:bzip2:bzip2
post-extract {
system -W ${workpath} "${prefix}/bin/bzip2 -dc ${distpath}/${file_patch} | /usr/bin/tar xf -"
}
pre-patch {
system -W ${worksrcpath} "/usr/bin/patch -p0 < ${workpath}/${name_patch}/binutils-2_26.patch"
}
configure.args-append \
--disable-werror
# --with-mpfr-include=${prefix}/include \
# --with-mpfr-lib=${prefix}/lib \
# --with-gmp-include=${prefix}/include \
# --with-gmp-lib=${prefix}/lib \
# --with-mpc-include=${prefix}/include \
# --with-mpc-lib=${prefix}/lib