source: trunk/dports/net/bnbt/Portfile

Last change on this file was 123093, checked in by jmr@…, 3 years ago

bnbt: license

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