Ticket #44838: Portfile

File Portfile, 2.5 KB (added by jul_bsd@…, 10 years ago)
Line 
1# -*- 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
2# $Id$
3
4PortSystem          1.0
5
6name                udt
7version             4.11
8categories          net
9platforms           darwin
10maintainers         yahoo.fr:jul_bsd openmaintainer
11license             BSD
12description         Breaking the Data Transfer Bottleneck
13long_description    UDT is a reliable UDP based application level data \
14                    transport protocol for distributed data intensive \
15                    applications over wide area high-speed networks. \
16                    UDT uses UDP to transfer bulk data with its own \
17                    reliability control and congestion control \
18                    mechanisms. The new protocol can transfer data at \
19                    a much higher speed than TCP does. UDT is also a \
20                    highly configurable framework that can \
21                    accommodate various congestion control algorithms.
22homepage            http://udt.sourceforge.net/
23master_sites        sourceforge
24distname            udt.sdk.${version}
25worksrcdir          udt4
26
27depends_build       port:gmake
28
29use_parallel_build no
30
31# g++ appserver.o -o appserver -L../src -ludt -lstdc++ -lpthread -lm
32# ld: library not found for -ludt
33
34use_configure       no
35variant universal {}
36configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]"
37
38build.post_args     -e os=OSX
39build.cmd           ${prefix}/bin/gmake
40
41destroot {
42    xinstall -d ${destroot}${prefix}/share/doc/${name}
43    xinstall ${worksrcpath}/README.txt ${destroot}${prefix}/share/doc/${name}/
44    xinstall ${worksrcpath}/RELEASE_NOTES.txt ${destroot}${prefix}/share/doc/${name}/
45    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}/html
46
47    xinstall ${worksrcpath}/src/libudt.dylib ${destroot}${prefix}/lib/
48    foreach f { appclient appserver recvfile sendfile test } {
49        xinstall ${worksrcpath}/app/${f} ${destroot}${prefix}/bin/
50    }
51}
52
53if {${subport} eq ${name}} {
54
55    checksums           rmd160  9033e391d30a58a20a83ef220c5682b55524be7c \
56                        sha256  aa25b6d7cbac474ca05b7c7b36f59e9a3cd5c61faed8bf1b7174ac118c3de1db
57
58}
59
60subport ${name}-devel {
61
62    version     20130224
63    fetch.type  git
64    git.branch  6b4216d8a4c9b8e1e9413ad6cf473f71e7b80502
65    #git.url     http://sourceforge.net/p/udt/git/ci/${git.branch}/tree
66    git.url     http://git.code.sf.net/p/udt/git/
67    ## FIXME! subdir loop...
68    worksrcdir  udt4
69
70    livecheck.type      none
71}
72
73#livecheck (default sourceforge)