diff options
author | Steve Wills <swills@FreeBSD.org> | 2012-09-02 02:51:56 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2012-09-02 02:51:56 +0000 |
commit | 0d1385818a005da0d766fb3d85dddb0fe45e6691 (patch) | |
tree | 3f58216c2d248fcedb46822e723b6030315c3cb4 /net-p2p/bitcoin | |
parent | 31617a0d0a25dc0554b44cc88d5bae6744b6416a (diff) |
Notes
Diffstat (limited to 'net-p2p/bitcoin')
-rw-r--r-- | net-p2p/bitcoin/Makefile | 89 | ||||
-rw-r--r-- | net-p2p/bitcoin/distinfo | 4 | ||||
-rw-r--r-- | net-p2p/bitcoin/files/patch-transactiondesc.cpp | 10 |
3 files changed, 54 insertions, 49 deletions
diff --git a/net-p2p/bitcoin/Makefile b/net-p2p/bitcoin/Makefile index 8848e72d0ecf..5e385faeb05c 100644 --- a/net-p2p/bitcoin/Makefile +++ b/net-p2p/bitcoin/Makefile @@ -6,77 +6,68 @@ # PORTNAME= bitcoin -PORTVERSION= 0.4.0 -PORTREVISION= 1 +PORTVERSION= 0.6.3 CATEGORIES= net-p2p finance -MASTER_SITES= https://nodeload.github.com/${PORTNAME}/${PORTNAME}/tarball/ \ - http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/ -DISTFILES= v${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Virtual Peer-to-Peer Currency Client -BUILD_DEPENDS= ${LOCALBASE}/include/boost/graph/parallel/algorithm.hpp:${PORTSDIR}/devel/boost-libs # 1.40+ -LIB_DEPENDS= boost_date_time.4:${PORTSDIR}/devel/boost-libs +LIB_DEPENDS= boost_date_time:${PORTSDIR}/devel/boost-libs -OPTIONS= GUI "Build with wxWidgets GUI" on \ - UPNP "Build with UPNP support" off +OPTIONS= GUI "Build with QT3 GUI" on \ + UPNP "Build with UPNP support" off \ + QRCODES "Build with QR code display" on + +USE_GITHUB= yes +GH_ACCOUNT= bitcoin +GH_PROJECT= bitcoin +GH_COMMIT= 6e0c5e3 USE_GMAKE= yes USE_OPENSSL= yes USE_BDB= yes -WANT_BDB_VER= 47 # 4.8 doesn't work +WANT_BDB_VER= 47 CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR} CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR} CXXFLAGS+= -Wno-invalid-offsetof -WRKSRC= ${WRKDIR}/bitcoin-bitcoin-72274ed/src - -DIST_SUBDIR= ${PORTNAME} - -LOCALES= cs de eo es fr it lt nl pt ro ru sv zh_cn - .include <bsd.port.options.mk> .if defined(WITH_GUI) && !defined(WITHOUT_X11) -USE_GNOME= gtk20 - -#USE_WX= 2.9+ - -BUILD_DEPENDS+= ${LOCALBASE}/include/wx-2.9/wx/aboutdlg.h:${PORTSDIR}/x11-toolkits/wxgtk29 -RUN_DEPENDS+= ${LOCALBASE}/include/wx-2.9/wx/aboutdlg.h:${PORTSDIR}/x11-toolkits/wxgtk29 -WX_CONFIG= ${LOCALBASE}/bin/wxgtk2u-2.9-config - -BINARY= bitcoin -PLIST_FILES= bin/${BINARY} +USE_QT_VER= 4 +USE_QT4= corelib gui qmake_build linguist uic moc rcc +BINARY= bitcoin-qt .else -USE_GNOME= glib20 - BINARY= bitcoind ALL_TARGET= ${BINARY} -PLIST_FILES= bin/${BINARY} +MAKE_ARGS+= -C ${WRKSRC}/src .endif -.if defined(WITH_UPNP) -LIB_DEPENDS+= miniupnpc:${PORTSDIR}/net/miniupnpc -MAKE_ENV+= USE_UPNP=yes +.if defined(WITH_QRCODES) +LIB_DEPENDS+= qrencode:${PORTSDIR}/graphics/libqrencode +QMAKE_USE_QRCODE=1 +.else +QMAKE_USE_QRCODE=0 .endif -.if !defined(WITHOUT_NLS) -PLIST_FILES+= ${LOCALES:C|^|share/locale/|:C|$|/LC_MESSAGES/bitcoin.mo|} -PLIST_DIRSTRY+= ${LOCALES:C|^|share/locale/|:C|$|/LC_MESSAGES|} -PLIST_DIRSTRY+= ${LOCALES:C|^|share/locale/|} +PLIST_FILES= bin/${BINARY} + +.if defined(WITH_UPNP) +LIB_DEPENDS+= miniupnpc:${PORTSDIR}/net/miniupnpc +QMAKE_USE_UPNP= 1 +.else +QMAKE_USE_UPNP= - .endif .include <bsd.port.pre.mk> post-patch: - @${CP} ${WRKSRC}/protocol.h ${WRKSRC}/protocol.h.orig + @${CP} ${WRKSRC}/src/protocol.h ${WRKSRC}/src/protocol.h.orig @${AWK} 'BEGIN { f = 0 } { if ( $$0 ~ /^#include/ && f == 0 ) { f = 1; print "#include <sys/socket.h>"; print "#include <netinet/in.h>" }; print }' \ - ${WRKSRC}/protocol.h.orig > ${WRKSRC}/protocol.h + ${WRKSRC}/src/protocol.h.orig > ${WRKSRC}/src/protocol.h - @cd ${WRKSRC} && ${CP} -p makefile.unix Makefile + @cd ${WRKSRC}/src && ${CP} -p makefile.unix Makefile @${REINPLACE_CMD} \ -e 's|wx-config|${WX_CONFIG}|g' \ -e 's|^CXXFLAGS=.*$$|CXXFLAGS += $$(DEFS)|' \ @@ -84,18 +75,22 @@ post-patch: -e 's|-l pthread|${PTHREAD_LIBS}|g' \ -e 's:-O3::' -e 's:-\(march=[A-Za-z0-9]*\)::g' \ -e 's:-l dl::' \ - ${WRKSRC}/Makefile + ${WRKSRC}/src/Makefile + +do-configure: +.if defined(WITH_GUI) && !defined(WITHOUT_X11) + cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ + ${QMAKE} USE_UPNP=${QMAKE_USE_UPNP} USE_QRCODE=${QMAKE_USE_QRCODE} \ + QMAKE_LRELEASE=lrelease-qt4 PREFIX=${PREFIX} INCLUDEPATH=${BDB_INCLUDE_DIR} \ + QMAKE_LIBDIR+=${BDB_LIB_DIR} bitcoin-qt.pro +.endif do-install: @${MKDIR} ${PREFIX}/bin +.if defined(WITH_GUI) && !defined(WITHOUT_X11) ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/ - -.if !defined(WITHOUT_NLS) -. for lo in ${LOCALES} - @${MKDIR} ${PREFIX}/share/locale/${lo}/LC_MESSAGES - ${INSTALL_DATA} ${WRKSRC}/../locale/${lo}/LC_MESSAGES/bitcoin.mo \ - ${PREFIX}/share/locale/${lo}/LC_MESSAGES/ -. endfor +.else + ${INSTALL_PROGRAM} ${WRKSRC}/src/${BINARY} ${PREFIX}/bin/ .endif .include <bsd.port.post.mk> diff --git a/net-p2p/bitcoin/distinfo b/net-p2p/bitcoin/distinfo index 6a839f4d4abe..476ad4b31dfc 100644 --- a/net-p2p/bitcoin/distinfo +++ b/net-p2p/bitcoin/distinfo @@ -1,2 +1,2 @@ -SHA256 (bitcoin/v0.4.0) = 4feb67c2191ae3c7ebfbcd2fbc98bfdb01242a63f9d9158f5a75482542f02d11 -SIZE (bitcoin/v0.4.0) = 896167 +SHA256 (bitcoin-0.6.3.tar.gz) = b4d538bdfd0c11dd0d12896ad444bcdc04cfc98b55deca73ed951ecef03363a6 +SIZE (bitcoin-0.6.3.tar.gz) = 1362075 diff --git a/net-p2p/bitcoin/files/patch-transactiondesc.cpp b/net-p2p/bitcoin/files/patch-transactiondesc.cpp new file mode 100644 index 000000000000..eaaba020eb2e --- /dev/null +++ b/net-p2p/bitcoin/files/patch-transactiondesc.cpp @@ -0,0 +1,10 @@ +--- src/qt/transaction.cpp.orig 2012-09-01 03:08:26.000000000 +0000 ++++ src/qt/transactiondesc.cpp 2012-09-01 03:08:38.000000000 +0000 +@@ -7,6 +7,7 @@ + #include "wallet.h" + #include "db.h" + #include "ui_interface.h" ++#include "walletdb.h" + + #include <QString> + |