source: trunk/dports/net/libtorrent-devel/Portfile @ 85585

Last change on this file since 85585 was 85585, checked in by ryandesign@…, 9 years ago

Add depends_skip_archcheck apple-gcc42; see #31584

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
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: Portfile 85585 2011-10-14 20:17:51Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libtorrent-devel
7conflicts           libtorrent
8set real_name       libtorrent
9version             0.12.9
10revision            1
11categories          net
12platforms           darwin
13maintainers         gmail.com:gardnermj
14license             GPL-2+
15
16description         BitTorrent library (unstable release)
17
18long_description    libTorrent is a BitTorrent library written in C++ for \
19                    *nix. It is designed to avoid redundant copying and \
20                    storing of data that other clients and libraries suffer from. \
21                    This is the "unstable" release of libTorrent.
22
23homepage            http://libtorrent.rakshasa.no/
24master_sites        ${homepage}downloads/
25dist_subdir         ${real_name}
26distname            ${real_name}-${version}
27
28checksums           sha1    176a836c6e685e4dad71ac08c0e09caaa5b7757c \
29                    rmd160  a898e882da94977973d62f34a5dd82577fd83cf5
30
31depends_build       port:zlib \
32                    port:pkgconfig
33
34depends_lib         port:openssl \
35                    port:libsigcxx2
36
37configure.args      --disable-debug \
38                    --enable-ipv6 \
39                    --with-kqueue
40
41post-destroot {
42    set docdir ${prefix}/share/doc/${real_name}
43    xinstall -d ${destroot}${docdir}
44    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
45        ${destroot}${docdir}
46}
47
48if {${os.platform} == "darwin" && ${os.major} <= 9} {
49    patchfiles-append   no_posix_memalign.patch
50    configure.compiler  gcc-4.2
51    if {![file executable ${configure.cc}]} {
52        depends_build-append port:apple-gcc42
53        depends_skip_archcheck apple-gcc42
54        configure.compiler   apple-gcc-4.2
55        # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
56        configure.cxx        ${prefix}/bin/g++-apple-4.2
57    }
58}
59
60livecheck.type      regex
61livecheck.url       [lindex ${master_sites} 0]
62livecheck.regex     ${real_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.