source: trunk/dports/finance/bitcoin/Portfile @ 78609

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

Set svn:eol-style to native

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 78609 2011-05-14 07:38:20Z ryandesign@macports.org $
2
3PortSystem          1.0
4name                bitcoin
5categories          finance crypto
6version             0.3.19
7platforms           darwin
8license             MIT
9maintainers         singingwolfboy openmaintainer
10description         a peer-to-peer digital currency
11long_description    \
12    Bitcoin is a peer-to-peer digital currency. Peer-to-peer (P2P) means that \
13    there is no central authority to issue new money or keep track of \
14    transactions. Instead, these tasks are managed collectively by the nodes \
15    of the network.
16
17homepage            http://www.bitcoin.org/
18master_sites        sourceforge
19distname            ${name}-${version}-macosx
20use_zip             yes
21checksums           md5     0a6e6f0b351ca59a61a2d7de5b057464 \
22                    sha1    415813cb46179b79fc278db42fd34027fff02b7b \
23                    rmd160  959bf4c1b2706883e272147904045828fbd04ee1
24
25depends_lib         port:boost \
26                    port:openssl \
27                    port:db48 \
28                    port:wxWidgets-devel
29
30worksrcdir          ${name}-${version}/src
31set makefile ${worksrcpath}/makefile.osx
32configure {
33    reinplace "s|^DEPSDIR=.*$|DEPSDIR=${prefix}|" ${makefile}
34    reinplace "s|\$\(DEPSDIR\)/bin/wx-config|${prefix}/lib/wx-devel/bin/wx-config|g" ${makefile}
35    reinplace "s|-I\"\$\(DEPSDIR\)\/include\"|-I${prefix}/include -I${prefix}/include/db48|" ${makefile}
36    reinplace "s|lib/libdb_cxx-4.8.a|lib/db48/libdb_cxx-4.8.dylib|" ${makefile}
37    reinplace "s|lib/libboost_thread.a|lib/libboost_thread-mt.dylib|" ${makefile}
38    reinplace "s|\\\.a|.dylib|" ${makefile}
39
40    # The QuickTime framework isn't actually needed, and it doesn't exist for
41    # x86_64, but wx-config --libs spits it out anyway, so we'll filter it out
42    # with sed.
43    reinplace "s|wx-config --libs --static|wx-config --libs \\\| sed -e \"s/-framework QuickTime//\"|g" ${makefile}
44
45    # Building with i386 support seems to make everything explode, so we'll
46    # remove it.
47    reinplace "s|-arch i386||" ${makefile}
48}
49build.args          -f ${makefile}
50destroot {
51    copy ${worksrcpath}/bitcoin ${destroot}${prefix}/bin
52
53    set docdir ${destroot}${prefix}/share/doc/${name}
54    xinstall -d ${docdir}
55    copy ${worksrcpath}/../readme.txt ${docdir}
56}
Note: See TracBrowser for help on using the repository browser.