-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
52 lines (38 loc) · 1.63 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
# -*- 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
name matio
version 1.5.27
revision 1
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers {mps @Schamschula} openmaintainer
license LGPL-2.1
categories math
description Matio is a library for working with Matlab save files
long_description Matio is a library for reading and writing Matlab \
save files. It is used by scientific data processing \
programs.
homepage http://sourceforge.net/projects/matio
master_sites sourceforge:project/matio/matio/${version}/
checksums rmd160 d8f503a747c723b7218c9bd3a77a07ccf943bcc6 \
sha256 0a6aa00b18c4512b63a8d27906b079c8c6ed41d4b2844f7a4ae598e18d22d3b3 \
size 10122031
depends_lib path:lib/libhdf5.dylib:hdf5 \
port:zlib
use_autoreconf yes
configure.args --enable-shared
configure.cflags -DH5_USE_18_API
pre-destroot {
system "cd ${worksrcpath}/config && chmod a+x install-sh"
}
post-destroot {
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d ${docdir}
xinstall -m 644 -W ${worksrcpath} \
COPYING \
NEWS \
README \
${docdir}
}
test.run yes
test.target check
livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)${extract.suffix}