|
Lines 1-114
Link Here
|
| 1 |
# Created by: Shaun Amott <shaun@FreeBSD.org> |
1 |
# Created by: Shaun Amott <shaun@FreeBSD.org> |
| 2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
| 3 |
|
3 |
|
| 4 |
PORTNAME= bitcoin |
4 |
PORTNAME= bitcoin |
| 5 |
PORTVERSION= 0.14.2 |
5 |
PORTVERSION= 0.15.0.1 |
| 6 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSIONPREFIX= v |
| 7 |
PORTREVISION= 2 |
|
|
| 8 |
CATEGORIES= net-p2p finance |
7 |
CATEGORIES= net-p2p finance |
| 9 |
|
8 |
|
| 10 |
MAINTAINER= robbak@robbak.com |
9 |
MAINTAINER= robbak@robbak.com |
| 11 |
COMMENT?= Virtual Peer-to-Peer Currency Client (QT) |
10 |
COMMENT?= Virtual Peer-to-Peer Currency Client (QT) |
| 12 |
|
11 |
|
| 13 |
LICENSE= MIT |
12 |
LICENSE= MIT |
| 14 |
|
13 |
|
| 15 |
LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \ |
14 |
LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \ |
| 16 |
libevent.so:devel/libevent |
15 |
libevent.so:devel/libevent |
| 17 |
|
16 |
|
| 18 |
BROKEN_powerpc64= fails to compile: util.cpp: undefined reference to boost::program_options::to_internal |
17 |
BROKEN_powerpc64= fails to compile: util.cpp: undefined reference to boost::program_options::to_internal |
| 19 |
|
18 |
|
| 20 |
USES= autoreconf compiler:c++11-lib gmake libtool pkgconfig shebangfix ssl |
19 |
USES= autoreconf compiler:c++11-lib gmake libtool pkgconfig shebangfix ssl |
| 21 |
SHEBANG_FILES= src/test/*.py |
|
|
| 22 |
USE_GITHUB= yes |
20 |
USE_GITHUB= yes |
| 23 |
GNU_CONFIGURE= yes |
21 |
GNU_CONFIGURE= yes |
| 24 |
|
22 |
|
| 25 |
SLAVE_PORT?= no |
23 |
SLAVE_PORT?= no |
| 26 |
|
24 |
|
| 27 |
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" |
25 |
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" |
| 28 |
USES+= desktop-file-utils |
26 |
USES+= desktop-file-utils |
| 29 |
USE_QT5= core gui network widgets \ |
27 |
USE_QT5= core gui network widgets \ |
| 30 |
buildtools_build linguisttools_build qmake_build |
28 |
buildtools_build linguisttools_build qmake_build |
| 31 |
|
29 |
|
| 32 |
BUILD_DEPENDS+= protoc:devel/protobuf |
30 |
BUILD_DEPENDS+= protoc:devel/protobuf |
| 33 |
LIB_DEPENDS+= libprotobuf.so:devel/protobuf |
31 |
LIB_DEPENDS+= libprotobuf.so:devel/protobuf |
| 34 |
|
32 |
|
| 35 |
TESTS_USE= QT5=testlib |
33 |
TESTS_USE= QT5=testlib |
| 36 |
TESTS_PLIST_FILES= bin/test_bitcoin-qt \ |
34 |
TESTS_PLIST_FILES= bin/test_bitcoin-qt \ |
| 37 |
bin/test_bitcoin |
35 |
bin/test_bitcoin |
| 38 |
.endif |
36 |
.endif |
| 39 |
|
37 |
|
| 40 |
OPTIONS_DEFINE?= DBUS DEBUG HARDENING QRCODES TESTS UPNP WALLET ZMQ |
38 |
OPTIONS_DEFINE?= DBUS DEBUG HARDENING QRCODES TESTS UPNP WALLET ZMQ |
| 41 |
OPTIONS_DEFAULT?= DBUS HARDENING QRCODES UPNP WALLET |
39 |
OPTIONS_DEFAULT?= DBUS HARDENING QRCODES UPNP WALLET |
| 42 |
OPTIONS_SUB= yes |
40 |
OPTIONS_SUB= yes |
| 43 |
|
41 |
|
| 44 |
HARDENING_DESC= Attempt to harden binaries (PIE for ASLR, NX Stack) |
42 |
HARDENING_DESC= Attempt to harden binaries (PIE for ASLR, NX Stack) |
| 45 |
QRCODES_DESC= Display QR Codes |
43 |
QRCODES_DESC= Display QR Codes |
| 46 |
TESTS_DESC= Build test binary and unit tests |
44 |
TESTS_DESC= Build test binary and unit tests |
| 47 |
WALLET_DESC= Wallet Management Support |
45 |
WALLET_DESC= Wallet Management Support |
| 48 |
ZMQ_DESC= Block and transaction broadcasting with ZeroMQ |
46 |
ZMQ_DESC= Block and transaction broadcasting with ZeroMQ |
| 49 |
|
47 |
|
| 50 |
DBUS_CONFIGURE_WITH= dbus |
48 |
DBUS_CONFIGURE_WITH= dbus |
| 51 |
DBUS_USE= QT5=dbus |
49 |
DBUS_USE= QT5=dbus |
| 52 |
|
50 |
|
| 53 |
DEBUG_CONFIGURE_ENABLE= debug |
51 |
DEBUG_CONFIGURE_ENABLE= debug |
| 54 |
DEBUG_INSTALL_TARGET_OFF= install-strip |
52 |
DEBUG_INSTALL_TARGET_OFF= install-strip |
| 55 |
|
53 |
|
| 56 |
HARDENING_CONFIGURE_ENABLE= hardening |
54 |
HARDENING_CONFIGURE_ENABLE= hardening |
| 57 |
|
55 |
|
| 58 |
TESTS_CONFIGURE_ENABLE= tests bench |
56 |
TESTS_CONFIGURE_ENABLE= tests bench |
| 59 |
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "yes" |
57 |
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "yes" |
| 60 |
TESTS_PLIST_FILES= bin/test_bitcoin |
58 |
TESTS_PLIST_FILES= bin/test_bitcoin |
| 61 |
.endif |
59 |
.endif |
| 62 |
TESTS_PLIST_FILES+= bin/bench_bitcoin |
60 |
TESTS_PLIST_FILES+= bin/bench_bitcoin |
| 63 |
|
61 |
|
| 64 |
UPNP_CONFIGURE_WITH= miniupnpc |
62 |
UPNP_CONFIGURE_WITH= miniupnpc |
| 65 |
UPNP_LIB_DEPENDS= libminiupnpc.so:net/miniupnpc |
63 |
UPNP_LIB_DEPENDS= libminiupnpc.so:net/miniupnpc |
| 66 |
UPNP_CPPFLAGS= -I${LOCALBASE}/include |
64 |
UPNP_CPPFLAGS= -I${LOCALBASE}/include |
| 67 |
UPNP_LIBS= -L${LOCALBASE}/lib |
65 |
UPNP_LIBS= -L${LOCALBASE}/lib |
| 68 |
|
66 |
|
| 69 |
QRCODES_CONFIGURE_WITH= qrencode |
67 |
QRCODES_CONFIGURE_WITH= qrencode |
| 70 |
QRCODES_LIB_DEPENDS= libqrencode.so:graphics/libqrencode |
68 |
QRCODES_LIB_DEPENDS= libqrencode.so:graphics/libqrencode |
| 71 |
|
69 |
|
| 72 |
WALLET_CONFIGURE_ENABLE= wallet |
70 |
WALLET_CONFIGURE_ENABLE= wallet |
| 73 |
WALLET_CXXFLAGS= -I${BDB_INCLUDE_DIR} |
71 |
WALLET_CXXFLAGS= -I${BDB_INCLUDE_DIR} |
| 74 |
WALLET_LIBS= -L${BDB_LIB_DIR} |
72 |
WALLET_LIBS= -L${BDB_LIB_DIR} |
| 75 |
WALLET_USES= bdb:48 |
73 |
WALLET_USES= bdb:48 |
| 76 |
|
74 |
|
| 77 |
ZMQ_CONFIGURE_ENABLE= zmq |
75 |
ZMQ_CONFIGURE_ENABLE= zmq |
| 78 |
ZMQ_BUILD_DEPENDS= libzmq4>0:net/libzmq4 |
76 |
ZMQ_BUILD_DEPENDS= libzmq4>0:net/libzmq4 |
| 79 |
ZMQ_RUN_DEPENDS= libzmq4>0:net/libzmq4 |
77 |
ZMQ_RUN_DEPENDS= libzmq4>0:net/libzmq4 |
| 80 |
|
78 |
|
| 81 |
GH_ACCOUNT= bitcoin |
79 |
GH_ACCOUNT= bitcoin |
| 82 |
|
80 |
|
| 83 |
CONFIGURE_ARGS?= --without-libs \ |
81 |
CONFIGURE_ARGS?= --without-libs \ |
| 84 |
--with-gui=qt5 \ |
82 |
--with-gui=qt5 \ |
| 85 |
--without-daemon \ |
83 |
--without-daemon \ |
| 86 |
--without-utils |
84 |
--without-utils |
| 87 |
|
85 |
|
| 88 |
CONFIGURE_ENV= CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" \ |
86 |
CONFIGURE_ENV= CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" \ |
| 89 |
SSL_CFLAGS="-I${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl" \ |
87 |
SSL_CFLAGS="-I${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl" \ |
| 90 |
OBJCXX="${CXX}" OBJCXXFLAGS="${CXXFLAGS}" |
88 |
OBJCXX="${CXX}" OBJCXXFLAGS="${CXXFLAGS}" |
| 91 |
MAKE_ENV+= V=1 |
89 |
MAKE_ENV+= V=1 |
| 92 |
|
90 |
|
| 93 |
PLIST_FILES?= bin/bitcoin-qt man/man1/bitcoin-qt.1.gz \ |
91 |
PLIST_FILES?= bin/bitcoin-qt man/man1/bitcoin-qt.1.gz \ |
| 94 |
share/applications/bitcoin-qt.desktop share/pixmaps/bitcoin128.png |
92 |
share/applications/bitcoin-qt.desktop share/pixmaps/bitcoin128.png |
| 95 |
|
93 |
|
| 96 |
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" |
94 |
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" |
| 97 |
|
95 |
|
| 98 |
post-install: |
96 |
post-install: |
| 99 |
${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \ |
97 |
${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \ |
| 100 |
${WRKSRC}/contrib/debian/bitcoin-qt.desktop |
98 |
${WRKSRC}/contrib/debian/bitcoin-qt.desktop |
| 101 |
${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop \ |
99 |
${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop \ |
| 102 |
${STAGEDIR}${PREFIX}/share/applications |
100 |
${STAGEDIR}${PREFIX}/share/applications |
| 103 |
${INSTALL} ${WRKSRC}/share/pixmaps/bitcoin128.png \ |
101 |
${INSTALL} ${WRKSRC}/share/pixmaps/bitcoin128.png \ |
| 104 |
${STAGEDIR}${PREFIX}/share/pixmaps/ |
102 |
${STAGEDIR}${PREFIX}/share/pixmaps/ |
| 105 |
|
103 |
|
| 106 |
.endif |
104 |
.endif |
| 107 |
|
105 |
|
| 108 |
regression-test: build |
106 |
regression-test: build |
| 109 |
# To use this sucessfully, remove --without-daemon and --without-utils |
107 |
# To use this sucessfully, remove --without-daemon and --without-utils |
| 110 |
# from CONFIGURE_ARGS above. |
108 |
# from CONFIGURE_ARGS above. |
| 111 |
|
109 |
|
| 112 |
@cd ${WRKSRC} && ${GMAKE} check |
110 |
@cd ${WRKSRC} && ${GMAKE} check |
| 113 |
|
111 |
|
| 114 |
.include <bsd.port.mk> |
112 |
.include <bsd.port.mk> |