Ticket #37353: bitcoin.Portfile.diff
File bitcoin.Portfile.diff, 4.6 KB (added by sami.laine@…, 12 years ago) |
---|
-
finance/bitcoin/Portfile
old new 1 # $Id: Portfile 99643 2012-11-13 04:26:02Z singingwolfboy@macports.org $ 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$ 2 3 3 4 PortSystem 1.0 4 5 name bitcoin 5 6 categories finance crypto 6 version 0.3.22 7 version 0.7.2 8 revision 1 7 9 platforms darwin 8 10 license MIT 9 maintainers nomaintainer 10 description a peer-to-peer digital currency 11 long_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 11 maintainers Sami Laine yopmail.com:sami.laine 12 description client user interface for a peer-to-peer digital currency 13 long_description Bitcoin is a peer-to-peer digital currency. Peer-to-peer \ 14 (P2P) means that there is no central authority to issue \ 15 new money or keep track of transactions. Instead, these \ 16 tasks are managed collectively by the nodes of then \ 17 network. \ 18 This port is for client user interface, if you're looking \ 19 for daemon, use port `bitcoind´ instead. 17 20 homepage http://www.bitcoin.org/ 18 21 master_sites sourceforge 19 distname ${name}-${version}-macosx 20 use_zip yes 21 checksums md5 5daa8d577e5ee081a4eae7cf4845f76c \ 22 sha1 5798efd33d38d530428d22aa4edf37e99731072e \ 23 rmd160 094c90358ed24be23feb66db6c68c6525e6234fc 22 distname ${name}-${version}-linux 23 checksums md5 a9596526a3c9d62cbcab5dd45957c717 \ 24 sha1 f09891283a322e095c67bedd3d5e37f4dd72c67f \ 25 rmd160 4946c02fbd72eb7c24b7ccc095ddc1c8595de9e8 24 26 25 27 depends_lib port:boost \ 26 28 port:openssl \ 27 29 port:db48 \ 28 port:wxWidgets-devel \ 29 port:miniupnpc 30 port:qt4-mac 31 32 worksrcdir ${name}-${version}-linux/src 33 34 configure.args "" 35 configure.pre_args "" 36 configure.post_args "" 37 configure.cmd qmake 38 build.args "" 39 build.pre_args "" 40 build.post_args "" 41 build.target "" 42 build.cmd (cd src && make -f makefile.osx) && make 30 43 31 supported_archs x86_6432 universal_variant no33 worksrcdir ${name}-${version}/src34 set makefile ${worksrcpath}/makefile.osx35 configure {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 for44 # x86_64, but wx-config --libs spits it out anyway, so we'll filter it out45 # 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'll49 # remove it.50 reinplace "s|-arch i386||" ${makefile}51 }52 build.args -f ${makefile}53 build.target-append bitcoind54 44 destroot { 45 xinstall -d ${destroot}${prefix}/bin 46 xinstall -d ${destroot}${prefix}/sbin 55 47 xinstall -m 755 -W ${worksrcpath} \ 56 bitcoin bitcoind ${destroot}${prefix}/bin 48 Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt \ 49 ${destroot}${prefix}/bin/bitcoin-qt 50 xinstall -m 755 -W ${worksrcpath} src/bitcoind ${destroot}${prefix}/sbin 57 51 58 52 set docdir ${destroot}${prefix}/share/doc/${name} 59 53 xinstall -d ${docdir} 60 xinstall -m 444 -W ${worksrcpath}/.. readme.txt license.txt ${docdir} 61 62 file copy ${worksrcpath}/../Bitcoin.app ${destroot}${applications_dir}/ 54 eval xinstall -m 444 -W ${worksrcpath} [glob ${worksrcpath}/doc/*] ${docdir} 63 55 } 64 56 65 # Tweak the Sourceforge livechecking 66 livecheck.regex {/bitcoin-(\d+(?:\.\w+)+)/README} 57 # end of file.