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

Last change on this file since 101879 was 99643, checked in by singingwolfboy@…, 7 years ago

Dropped maintainership on all my ports

I'm moving to homebrew, and I haven't actually touched most of these in ages, anyway

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 99643 2012-11-13 04:26:02Z singingwolfboy@macports.org $
2
3PortSystem          1.0
4name                bitcoin
5categories          finance crypto
6version             0.3.22
7platforms           darwin
8license             MIT
9maintainers         nomaintainer
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     5daa8d577e5ee081a4eae7cf4845f76c \
22                    sha1    5798efd33d38d530428d22aa4edf37e99731072e \
23                    rmd160  094c90358ed24be23feb66db6c68c6525e6234fc
24
25depends_lib         port:boost \
26                    port:openssl \
27                    port:db48 \
28                    port:wxWidgets-devel \
29                    port:miniupnpc
30
31supported_archs     x86_64
32universal_variant   no
33worksrcdir          ${name}-${version}/src
34set makefile ${worksrcpath}/makefile.osx
35configure {
36    reinplace "s|^DEPSDIR=.*$|DEPSDIR=${prefix}|" ${makefile}
37    reinplace "s|-I\"\$\(DEPSDIR\)\/include\"|-I${prefix}/include -I${prefix}/include/db48|" ${makefile}
38    reinplace "s|lib/libdb_cxx-4.8.a|lib/db48/libdb_cxx-4.8.dylib|" ${makefile}
39    reinplace "s|lib/libboost_thread.a|lib/libboost_thread-mt.dylib|" ${makefile}
40    reinplace "s|\\\.a|.dylib|" ${makefile}
41    reinplace "s|/miniupnpc/|/lib/|" ${makefile}
42
43    # The QuickTime framework isn't actually needed, and it doesn't exist for
44    # x86_64, but wx-config --libs spits it out anyway, so we'll filter it out
45    # with sed.
46    reinplace "s|wx-config --libs --static|wx-config --libs \\\| sed -e \"s/-framework QuickTime//\"|g" ${makefile}
47
48    # Building with i386 support seems to make everything explode, so we'll
49    # remove it.
50    reinplace "s|-arch i386||" ${makefile}
51}
52build.args          -f ${makefile}
53build.target-append bitcoind
54destroot {
55    xinstall -m 755 -W ${worksrcpath} \
56        bitcoin bitcoind ${destroot}${prefix}/bin
57
58    set docdir ${destroot}${prefix}/share/doc/${name}
59    xinstall -d ${docdir}
60    xinstall -m 444 -W ${worksrcpath}/.. readme.txt license.txt ${docdir}
61 
62    file copy ${worksrcpath}/../Bitcoin.app ${destroot}${applications_dir}/
63}
64
65# Tweak the Sourceforge livechecking
66livecheck.regex     {/bitcoin-(\d+(?:\.\w+)+)/README}
Note: See TracBrowser for help on using the repository browser.