Lines 2-97
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= bitcoin |
4 |
PORTNAME= bitcoin |
5 |
PORTVERSION= 0.9.2 |
5 |
PORTVERSION= 0.10.0 |
6 |
PORTREVISION= 3 |
|
|
7 |
CATEGORIES= net-p2p finance |
6 |
CATEGORIES= net-p2p finance |
8 |
MASTER_SITES= http://vps.robbak.com/distfiles/ \ |
|
|
9 |
${MASTER_SITE_LOCAL} \ |
10 |
http://people.freebsd.org/~swills/ \ |
11 |
GH |
12 |
|
7 |
|
13 |
MAINTAINER= robbak@robbak.com |
8 |
MAINTAINER= robbak@robbak.com |
14 |
COMMENT= Virtual Peer-to-Peer Currency Client |
9 |
COMMENT= Virtual Peer-to-Peer Currency Client (QT) |
15 |
|
10 |
|
16 |
LICENSE= MIT |
11 |
LICENSE= MIT |
17 |
|
12 |
|
18 |
BUILD_DEPENDS= protoc:${PORTSDIR}/devel/protobuf \ |
13 |
BUILD_DEPENDS= protoc:${PORTSDIR}/devel/protobuf |
19 |
pkg-config:${PORTSDIR}/devel/pkgconf |
14 |
LIB_DEPENDS= libboost_date_time.so:${PORTSDIR}/devel/boost-libs \ |
20 |
LIB_DEPENDS= libboost_date_time.so:${PORTSDIR}/devel/boost-libs |
15 |
libprotobuf.so:${PORTSDIR}/devel/protobuf |
21 |
|
16 |
|
22 |
OPTIONS_DEFINE= GUI WALLET UPNP QRCODES |
17 |
USES= autoreconf compiler:c++0x gmake libtool pkgconfig |
23 |
OPTIONS_DEFAULT= GUI WALLET QRCODES |
18 |
USE_GITHUB= yes |
|
|
19 |
USE_OPENSSL= yes |
20 |
GNU_CONFIGURE= yes |
24 |
|
21 |
|
25 |
GUI_DESC= Build and install the QT4 binary |
22 |
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" |
26 |
WALLET_DESC= Build with support to create and manage a wallet |
23 |
USES+= desktop-file-utils |
27 |
UPNP_DESC= Build with UPNP support |
24 |
USE_QT4= corelib network gui qmake_build moc_build uic_build \ |
28 |
QRCODES_DESC= Build with QR code display |
25 |
rcc_build linguist_build |
|
|
26 |
.endif |
29 |
|
27 |
|
30 |
AUTOMAKE_ARGS+= --add-missing |
28 |
OPTIONS_DEFINE?= DBUS DEBUG QRCODES UPNP WALLET |
31 |
USE_AUTOTOOLS= aclocal autoheader automake autoconf |
29 |
OPTIONS_DEFAULT?= QRCODES WALLET |
32 |
#ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal |
|
|
33 |
CONFIGURE_ENV= SSL_LIBS="-lssl" CRYPTO_LIBS="-lcrypto" SSL_CFLAGS="-I/usr/include" CRYPTO_CFLAGS="-I/usr/include" |
34 |
|
30 |
|
35 |
USE_GITHUB= yes |
31 |
QRCODES_DESC= Display QR Codes |
|
|
32 |
WALLET_DESC= Wallet Management Support |
33 |
|
34 |
DBUS_CONFIGURE_WITH= qtdbus |
35 |
DBUS_USE= QT4=dbus |
36 |
|
37 |
DEBUG_CONFIGURE_ENABLE= debug |
38 |
DEBUG_INSTALL_TARGET_OFF= install-strip |
39 |
|
40 |
UPNP_CONFIGURE_WITH= miniupnpc |
41 |
UPNP_LIB_DEPENDS= libminiupnpc.so:${PORTSDIR}/net/miniupnpc |
42 |
|
43 |
QRCODES_CONFIGURE_WITH= qrencode |
44 |
QRCODES_LIB_DEPENDS= libqrencode.so:${PORTSDIR}/graphics/libqrencode |
45 |
|
46 |
WALLET_CONFIGURE_ENABLE= wallet |
47 |
WALLET_CPPFLAGS= -I${BDB_INCLUDE_DIR} |
48 |
WALLET_LDFLAGS= -L${BDB_LIB_DIR} |
49 |
WALLET_USE= BDB=48 |
50 |
|
36 |
GH_ACCOUNT= bitcoin |
51 |
GH_ACCOUNT= bitcoin |
37 |
GH_PROJECT= bitcoin |
52 |
GH_COMMIT= 58810d2 |
38 |
GH_COMMIT= 30a7357 |
|
|
39 |
GH_TAGNAME= v${PORTVERSION} |
53 |
GH_TAGNAME= v${PORTVERSION} |
40 |
|
54 |
|
41 |
USES= gmake |
55 |
CONFIGURE_ARGS?= --with-gui \ |
42 |
USE_OPENSSL= yes |
56 |
--without-daemon \ |
43 |
USE_BDB= yes |
57 |
--without-utils \ |
44 |
WANT_BDB_VER= 48 |
58 |
--disable-libs \ |
|
|
59 |
--disable-tests |
45 |
|
60 |
|
46 |
CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR} |
61 |
CONFIGURE_ENV= CRYPTO_CFLAGS="-I/usr/include" CRYPTO_LIBS="-lcrypto" \ |
47 |
CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR} |
62 |
SSL_CFLAGS="-I/usr/include" SSL_LIBS="-lssl" |
|
|
63 |
|
64 |
CPPFLAGS+= -I${LOCALBASE}/include |
48 |
CXXFLAGS+= -Wno-invalid-offsetof |
65 |
CXXFLAGS+= -Wno-invalid-offsetof |
|
|
66 |
LDFLAGS+= -L${LOCALBASE}/lib |
49 |
|
67 |
|
50 |
.include <bsd.port.options.mk> |
68 |
PLIST_FILES?= bin/bitcoin-qt share/applications/bitcoin-qt.desktop \ |
|
|
69 |
share/pixmaps/bitcoin128.png |
51 |
|
70 |
|
52 |
CONFIGURE_ARGS+=--disable-tests |
71 |
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" |
53 |
|
72 |
|
54 |
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11) |
73 |
post-install: |
55 |
USE_QT4= corelib gui qmake_build linguist uic moc rcc qtestlib_build |
74 |
${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \ |
56 |
USES+= desktop-file-utils |
75 |
${WRKSRC}/contrib/debian/bitcoin-qt.desktop |
57 |
PLIST_FILES= %%QT_BINDIR%%/bitcoin-qt %%QT_BINDIR%%/bitcoind %%QT_BINDIR%%/bitcoin-cli |
76 |
${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop \ |
58 |
PLIST_FILES+= share/applications/bitcoin-qt.desktop share/pixmaps/bitcoin128.png |
77 |
${STAGEDIR}${PREFIX}/share/applications |
59 |
CONFIGURE_ARGS+=--with-gui |
78 |
${INSTALL} ${WRKSRC}/share/pixmaps/bitcoin128.png \ |
60 |
.else |
79 |
${STAGEDIR}${PREFIX}/share/pixmaps/ |
61 |
PLIST_FILES= bin/bitcoind bin/bitcoin-cli |
|
|
62 |
CONFIGURE_ARGS+=--without-gui |
63 |
.endif |
64 |
|
80 |
|
65 |
.if ${PORT_OPTIONS:MQRCODES} |
|
|
66 |
LIB_DEPENDS+= libqrencode.so:${PORTSDIR}/graphics/libqrencode |
67 |
CONFIGURE_ARGS+=--with-qrencode |
68 |
.else |
69 |
CONFIGURE_ARGS+=--without-qrencode |
70 |
.endif |
81 |
.endif |
71 |
|
82 |
|
72 |
.if ${PORT_OPTIONS:MUPNP} |
|
|
73 |
LIB_DEPENDS+= libminiupnpc.so:${PORTSDIR}/net/miniupnpc |
74 |
CONFIGURE_ARGS+=--with-miniupnpc |
75 |
.else |
76 |
CONFIGURE_ARGS+=--without-miniupnpc |
77 |
.endif |
78 |
|
79 |
.if ${PORT_OPTIONS:MWALLET} |
80 |
CONFIGURE_ARGS+=--enable-wallet |
81 |
.else |
82 |
CONFIGURE_ARGS+=--disable-wallet |
83 |
.endif |
84 |
|
85 |
.include <bsd.port.pre.mk> |
86 |
|
87 |
post-patch: |
83 |
post-patch: |
88 |
${MKDIR} ${WRKSRC}/src/build-aux |
84 |
${MKDIR} ${WRKSRC}/src/build-aux |
89 |
|
85 |
|
90 |
post-install: |
86 |
.include <bsd.port.mk> |
91 |
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11) |
|
|
92 |
${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' ${WRKSRC}/contrib/debian/bitcoin-qt.desktop |
93 |
${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications |
94 |
${INSTALL} ${WRKSRC}/share/pixmaps/bitcoin128.png ${STAGEDIR}${PREFIX}/share/pixmaps/ |
95 |
.endif |
96 |
|
97 |
.include <bsd.port.post.mk> |