source: trunk/dports/devel/lua-numlua/Portfile

Last change on this file was 147494, checked in by mmoll@…, 18 months ago

hdf5: update to version 1.10.0, bump revision of ports that depend on hdf5 and need to be rebuilt. closes #51062

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 147494 2016-04-05 20:52:07Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup               github  1.0
5
6github.setup            carvalho numlua 0.3
7revision                9
8name                    lua-numlua
9license                 MIT
10categories              devel
11platforms               darwin
12maintainers             bfulgham openmaintainer
13description             Numerical package for the Lua programming language.
14long_description        ${description} It includes support for complex numbers, multidimensional \
15                        matrices, random generation and special functions. Much of the routines are \
16                        simple wrappers for the stable and well-known libraries from Netlib
17
18use_zip                 yes
19# stealth packaging update
20master_sites            macports_distfiles
21set     archive_hash    f05281e96030adb9c09a01b9d9be4fa9fa4c795e
22distfiles               ${archive_hash}.zip
23worksrcdir              numlua-${archive_hash}
24
25checksums               md5     acfce2eb1c0c5f1942b3a9917893c17c \
26                        sha1    2fe543baedc9e62112a2df7b0dfbf8e8b304658d \
27                        rmd160  df58135379ce8f01e0b454a8073257a01f23a03e
28
29use_configure           no
30
31# there used to be a dependency on a gccXX port due to the need for a fortran compiler
32# this has now been removed due to dependency on port atlas
33
34depends_lib-append      port:lua \
35                        port:atlas \
36                        lib:fftw:fftw-3 \
37                        lib:hdf5:hdf5
38
39post-extract {
40    xinstall -m 644 ${filespath}/Makefile ${worksrcpath} }
41
42post-patch {
43    reinplace -W $worksrcpath "s|%%PREFIX%%|${prefix}|" Makefile }
44
45build.args-append       CC=${configure.cc} \
46                        CPP=${configure.cpp} \
47                        PREFIX=$prefix \
48                        CFLAGS="${configure.cflags} [get_canonical_archflags]" \
49                        CPPFLAGS=${configure.cppflags} \
50                        LDFLAGS=${configure.ldflags} \
51                        DEPLOYMENT_TARGET=${macosx_deployment_target}
52
53destroot.args-append    PREFIX=$prefix
54
55pre-destroot {
56    destroot.args-append    LUA_VERSION=[string range [lindex [lindex [registry_active lua] 0] 1] 0 2]
57}
58
59post-destroot {
60    xinstall -d -m 755 ${destroot}${prefix}/share/doc
61    xinstall -d -m 755 ${destroot}${prefix}/share/examples
62
63    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
64    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
65    file copy ${worksrcpath}/lhp ${destroot}${prefix}/share/doc/${name}/lhp }
Note: See TracBrowser for help on using the repository browser.