1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name pure-ffi |
---|
6 | version 0.3 |
---|
7 | categories lang |
---|
8 | platforms darwin |
---|
9 | maintainers ryandesign |
---|
10 | use_parallel_build yes |
---|
11 | homepage http://pure-lang.googlecode.com/ |
---|
12 | master_sites ${homepage}files/ |
---|
13 | |
---|
14 | description an interface to libffi which enables you to \ |
---|
15 | call C functions from Pure and vice versa |
---|
16 | |
---|
17 | long_description ${name} provides ${description}. It goes \ |
---|
18 | beyond Pure's built-in C interface in that \ |
---|
19 | it also handles C structs and makes Pure \ |
---|
20 | functions callable from C. Moreover, \ |
---|
21 | depending on the libffi implementation, it \ |
---|
22 | may also be possible to call foreign \ |
---|
23 | languages other than C. |
---|
24 | |
---|
25 | checksums md5 8030fbff0c2fff58861f05850d2a0911 \ |
---|
26 | sha1 62d8f8e85aa8925fb2b41a9df9e44b1bae39d3ab \ |
---|
27 | rmd160 d607e91265866e908364143634a30a037a5c4219 |
---|
28 | |
---|
29 | depends_lib-append path:lib/libpure.dylib:pure \ |
---|
30 | port:libffi |
---|
31 | |
---|
32 | patchfiles patch-Makefile.diff |
---|
33 | |
---|
34 | use_configure no |
---|
35 | |
---|
36 | pre-build { |
---|
37 | build.args-append CC=${configure.cc} \ |
---|
38 | CFLAGS="${configure.cflags}" \ |
---|
39 | CPPFLAGS="${configure.cppflags}" \ |
---|
40 | LDFLAGS="${configure.ldflags}" |
---|
41 | } |
---|
42 | |
---|
43 | post-destroot { |
---|
44 | xinstall -d \ |
---|
45 | ${destroot}${prefix}/share/doc/${name} \ |
---|
46 | ${destroot}${prefix}/share/examples |
---|
47 | xinstall -m 644 -W ${worksrcpath} \ |
---|
48 | COPYING \ |
---|
49 | README \ |
---|
50 | ${destroot}${prefix}/share/doc/${name} |
---|
51 | copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name} |
---|
52 | } |
---|
53 | |
---|
54 | platform darwin { |
---|
55 | configure.cflags-append -fno-common |
---|
56 | } |
---|
57 | |
---|
58 | livecheck.check regex |
---|
59 | livecheck.url http://code.google.com/p/pure-lang/downloads/list |
---|
60 | livecheck.regex ${name}-(\[0-9.\]+)\\.tar |
---|