forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Portfile
69 lines (55 loc) · 2.89 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
60
61
62
63
64
65
66
67
68
69
# -*- 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
# Please keep the msp430-gdb and msp430-gdb-devel ports as similar as possible.
name msp430-gdb-devel
set name_common [join [lrange [split ${name} -] 0 1] -]
set name_target [lindex [split ${name_common} -] 0]
set name_package [lindex [split ${name_common} -] 1]
version 7.2a
epoch 20111205
conflicts ${name_common}
categories cross
platforms darwin
maintainers nomaintainer
description GDB for the MSP430 processors \
(development version)
long_description msp430-gdb is a version of the GNU Debugger that \
through the mspdebug program can be used to debug \
code for the MSP430 processors. \
This is the development version.
homepage https://www.gnu.org/software/gdb/gdb.html
license GPL-3+
dist_subdir ${name_common}
distname ${name_package}-${version}
use_bzip2 yes
master_sites gnu:gdb
patch_sites sourceforge:project/mspgcc/Patches/${distname}/
checksums ${distfiles} \
rmd160 b5821fafe6920dfd30b73606bbf819b8296dfb4e \
sha256 3c24dde332e33bfe2d5980c726d76224ebf8304278112a07bf701f8d2145d9bc \
size 18943981 \
${name_common}-${version}-${epoch}.patch \
rmd160 84fd86c8cee99575eb7db409d113f1e5bc71d7f2 \
sha256 b70b54df5e00d24a3a5b744545a87ce656bdc88546081c6ffabefbc4d6c42956 \
size 382048
depends_run port:mspdebug
worksrcdir ${name_package}-[string trimright ${version} a-zA-Z]
patchfiles ${name_common}-${version}-${epoch}.patch \
0002-bfdio-Invalid-size-of-memset.patch \
0003-elflink-Possible-use-of-unintialized-variable.patch \
0004-interp-Missing-return-value.patch \
0005-tui-Unknown-type-name.patch \
0006-elflink-Null-pointer-arithmetic.patch
configure.args --target=${name_target} \
--disable-Werror
patch.pre_args -p1
build.env-append CFLAGS=-I${prefix}/include
configure.env-append CFLAGS=-I${prefix}/include
post-destroot {
#remove libiberty.a
file delete "${destroot}${prefix}/lib/x86_64/libiberty.a"
file delete "${destroot}${prefix}/share/info/bfd.info"
file delete "${destroot}${prefix}/share/info/standards.info"
file delete -force "${destroot}${prefix}/share/locale"
}
livecheck.type none