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