Ticket #18305: Portfile

File Portfile, 2.3 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
Line 
1# $Id$
2
3PortSystem                      1.0
4
5name                            pure-ffi
6version                         0.3
7categories                      lang
8platforms                       darwin
9maintainers                     ryandesign
10use_parallel_build              yes
11homepage                        http://pure-lang.googlecode.com/
12master_sites                    ${homepage}files/
13
14description                     an interface to libffi which enables you to \
15                                call C functions from Pure and vice versa
16
17long_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
25checksums                       md5     8030fbff0c2fff58861f05850d2a0911 \
26                                sha1    62d8f8e85aa8925fb2b41a9df9e44b1bae39d3ab \
27                                rmd160  d607e91265866e908364143634a30a037a5c4219
28
29depends_lib-append              path:lib/libpure.dylib:pure \
30                                port:libffi
31
32patchfiles                      patch-Makefile.diff
33
34use_configure                   no
35
36pre-build {
37    build.args-append           CC=${configure.cc} \
38                                CFLAGS="${configure.cflags}" \
39                                CPPFLAGS="${configure.cppflags}" \
40                                LDFLAGS="${configure.ldflags}"
41}
42
43post-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
54platform darwin {
55    configure.cflags-append     -fno-common
56}
57
58livecheck.check                 regex
59livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
60livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar