source: trunk/dports/net/bnbt/Portfile @ 66956

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

bnbt: fix build on Snow Leopard as reported at http://lists.macosforge.org/pipermail/macports-users/2010-April/019884.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 66956 2010-04-26 22:04:16Z ryandesign@macports.org $
2
3PortSystem 1.0
4name             bnbt
5version          8.1r3
6categories       net
7maintainers      nomaintainer
8description      C++ BitTorrent tracker
9long_description \
10        BNBT is a complete port of the original Python \
11        BitTorrent tracker to C++ for speed and \
12        efficiency. BNBT also offers many additional \
13        features beyond the original Python BitTorrent \
14        tracker, plus it's easy to use and customizable.
15homepage         http://bnbt.depthstrike.com/
16platforms        darwin
17
18regsub -all      "\\." ${version} "" dversion
19regsub -all      "r" ${dversion} "b-" dversion
20
21master_sites     sourceforge
22distname         ${name}${dversion}-sf
23use_zip          yes
24checksums        md5 2935ffe0f51090a79d5bd76566af3b2b
25
26post-extract {
27    # CRLF to LF
28    reinplace "s|\r||g" ${worksrcpath}/src/Makefile
29}
30
31patchfiles       patch-Makefile patch-src__bnbt.h
32
33post-patch {
34    reinplace "s|@CXX@|${configure.cxx}|g" ${worksrcpath}/src/Makefile
35}
36
37use_configure    no
38
39worksrcdir       ${name}
40
41build.dir        ${worksrcpath}/src
42build.target     bnbt
43
44destroot {
45        xinstall ${worksrcpath}/src/bnbt ${destroot}${prefix}/bin
46        file mkdir ${destroot}${prefix}/share/doc
47        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/bnbt
48}
Note: See TracBrowser for help on using the repository browser.