diff options
author | shaun <shaun@FreeBSD.org> | 2011-05-21 06:50:37 +0800 |
---|---|---|
committer | shaun <shaun@FreeBSD.org> | 2011-05-21 06:50:37 +0800 |
commit | c9aaa15ef57c23c9753d8d1e4618d1ef9a0da542 (patch) | |
tree | 4ccf23f6b7cc608e33d37cbca6da9f83992e2c0e /net-p2p | |
parent | 2000d97d717719ebae57310c61e9e932f399236d (diff) | |
download | freebsd-ports-gnome-c9aaa15ef57c23c9753d8d1e4618d1ef9a0da542.tar.gz freebsd-ports-gnome-c9aaa15ef57c23c9753d8d1e4618d1ef9a0da542.tar.zst freebsd-ports-gnome-c9aaa15ef57c23c9753d8d1e4618d1ef9a0da542.zip |
Add port: bitcoin
Bitcoin is a digital currency created in 2009 by Satoshi Nakamoto. It is
also the name of the open source software designed in order to use this
currency.
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/Makefile | 1 | ||||
-rw-r--r-- | net-p2p/bitcoin/Makefile | 72 | ||||
-rw-r--r-- | net-p2p/bitcoin/distinfo | 2 | ||||
-rw-r--r-- | net-p2p/bitcoin/pkg-descr | 7 |
4 files changed, 82 insertions, 0 deletions
diff --git a/net-p2p/Makefile b/net-p2p/Makefile index b7042d044bff..38529157d72c 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -8,6 +8,7 @@ SUBDIR += apollon SUBDIR += azureus SUBDIR += azureus2 + SUBDIR += bitcoin SUBDIR += bitflu SUBDIR += bittyrant SUBDIR += bnbt diff --git a/net-p2p/bitcoin/Makefile b/net-p2p/bitcoin/Makefile new file mode 100644 index 000000000000..d2b76e2fa374 --- /dev/null +++ b/net-p2p/bitcoin/Makefile @@ -0,0 +1,72 @@ +# New ports collection makefile for: bitcoin +# Date created: 2011-05-20 +# Whom: Shaun Amott <shaun@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= bitcoin +PORTVERSION= 0.3.21 +CATEGORIES= net-p2p finance +MASTER_SITES= https://download.github.com/ \ + http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/ +DISTFILES= bitcoin-bitcoin-v${PORTVERSION}-0-g64ad448.tar.gz + +MAINTAINER= shaun@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 + +OPTIONS= GUI "Build with wxWidgets GUI" on \ + UPNP "Build with UPNP support" off + +USE_GMAKE= yes +USE_OPENSSL= yes +USE_BDB= yes +WANT_BDB_VER= 47 # 4.8 doesn't work + +CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR} +CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR} + +WRKSRC= ${WRKDIR}/bitcoin-bitcoin-1f578d2 + +.include <bsd.port.options.mk> + +.if defined(WITH_GUI) && !defined(WITHOUT_X11) +USE_GNOME= gtk20 + +#USE_WX= 2.9+ + +BUILD_DEPENDS+= include/wx-2.9/wx/aboutdlg.h:${PORTSDIR}/x11-toolkits/wxgtk29 +WX_CONFIG= ${LOCALBASE}/bin/wxgtk2u-2.9-config + +PLIST_FILES= bitcoin +.else +ALL_TARGET= bitcoind +PLIST_FILES= bitcoind +.endif + +.if defined(WITH_UPNP) +LIB_DEPENDS+= libminiupnpc.5:${PORTSDIR}/net/miniupnpc +MAKE_ENV+= -DUSE_UPNP +.endif + +.include <bsd.port.pre.mk> + +post-patch: + cd ${WRKSRC} && ${CP} -p makefile.unix Makefile + ${REINPLACE_CMD} \ + -e 's|wx-config|${WX_CONFIG}|g' \ + -e 's|^CXXFLAGS=.*$$|CXXFLAGS += $$(DEFS)|' \ + -e 's|^USE_UPNP.*$$||' \ + -e 's:-O3::' -e 's:-\(march=[A-Za-z0-9]*\)::g' \ + -e 's:-l z \\:-l z:' \ + -e 's:-l dl::' \ + ${WRKSRC}/Makefile + +do-install: + @${MKDIR} ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/${PLIST_FILES} ${PREFIX}/bin/ + +.include <bsd.port.post.mk> diff --git a/net-p2p/bitcoin/distinfo b/net-p2p/bitcoin/distinfo new file mode 100644 index 000000000000..6ce1a5aac8be --- /dev/null +++ b/net-p2p/bitcoin/distinfo @@ -0,0 +1,2 @@ +SHA256 (bitcoin-bitcoin-v0.3.21-0-g64ad448.tar.gz) = 8c62d735a13d89c25c35996c828bcee96aa6e00adcffd294c494ae8d8b5924bb +SIZE (bitcoin-bitcoin-v0.3.21-0-g64ad448.tar.gz) = 383958 diff --git a/net-p2p/bitcoin/pkg-descr b/net-p2p/bitcoin/pkg-descr new file mode 100644 index 000000000000..4f27aa7feea4 --- /dev/null +++ b/net-p2p/bitcoin/pkg-descr @@ -0,0 +1,7 @@ +Bitcoin is a free open source peer-to-peer electronic cash system that +is completely decentralized, without the need for a central server or +trusted parties. Users hold the crypto keys to their own money and +transact directly with each other, with the help of a P2P network to +check for double-spending. + +WWW: http://www.bitcoin.org/ |