Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= zetacoin |
4 |
PORTNAME= zetacoin |
5 |
PORTVERSION= 0.8.99.16 |
5 |
PORTVERSION= 0.9.2.1 |
6 |
CATEGORIES= net-p2p finance |
6 |
CATEGORIES= net-p2p finance |
7 |
MASTER_SITES= GH |
7 |
MASTER_SITES= GH |
8 |
|
8 |
|
Lines 11-102
Link Here
|
11 |
|
11 |
|
12 |
LICENSE= MIT |
12 |
LICENSE= MIT |
13 |
|
13 |
|
|
|
14 |
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconf |
14 |
LIB_DEPENDS= libboost_date_time.so:${PORTSDIR}/devel/boost-libs |
15 |
LIB_DEPENDS= libboost_date_time.so:${PORTSDIR}/devel/boost-libs |
15 |
|
16 |
|
16 |
OPTIONS_DEFINE= X11 UPNP QRCODES |
|
|
17 |
OPTIONS_DEFAULT= X11 QRCODES |
18 |
UPNP_DESC= Build with UPNP support |
19 |
QRCODES_DESC= Build with QR code display |
20 |
|
21 |
USE_GITHUB= yes |
17 |
USE_GITHUB= yes |
22 |
GH_ACCOUNT= ${PORTNAME} |
18 |
GH_ACCOUNT= ${PORTNAME} |
23 |
GH_PROJECT= ${PORTNAME} |
19 |
GH_PROJECT= ${PORTNAME} |
24 |
GH_COMMIT= 9a52761 |
20 |
GH_COMMIT= 93a4ace |
25 |
GH_TAGNAME= 9a52761 |
21 |
GH_TAGNAME= 93a4ace |
26 |
|
22 |
|
|
|
23 |
OPTIONS_DEFINE= X11 UPNP WALLET CLI TEST |
24 |
OPTIONS_SUB= yes |
25 |
|
26 |
WALLET_DESC= Build wallet or P2P server node only |
27 |
QRCODES_DESC= Enable QR code display when building graphical interface |
28 |
CLI_DESC= Build command line RPC client |
29 |
|
30 |
OPTIONS_DEFAULT= X11 WALLET QRCODES |
31 |
OPTIONS_GROUP= X11 |
32 |
OPTIONS_GROUP_X11= QRCODES |
33 |
|
34 |
UPNP_CONFIGURE_WITH= miniupnpc |
35 |
UPNP_LIB_DEPENDS= libminiupnpc.so:${PORTSDIR}/net/miniupnpc |
36 |
|
37 |
X11_CONFIGURE_WITH= gui |
38 |
X11_CONFIGURE_ON= --without-daemon |
39 |
X11_CONFIGURE_OFF= --with-daemon |
40 |
X11_BUILD_DEPENDS= protoc:${PORTSDIR}/devel/protobuf |
41 |
X11_USE= qt4=corelib,gui,qmake_build,linguist,uic,moc,rcc,qtestlib_build |
42 |
X11_USES= desktop-file-utils |
43 |
|
44 |
WALLET_CONFIGURE_ENABLE= wallet |
45 |
WALLET_CXXFLAGS= -I${BDB_INCLUDE_DIR} -L${BDB_LIB_DIR} |
46 |
WALLET_USE= bdb=yes |
47 |
|
48 |
QRCODES_LIB_DEPENDS= libqrencode.so:${PORTSDIR}/graphics/libqrencode |
49 |
QRCODES_CONFIGURE_WITH= qrencode |
50 |
|
51 |
CLI_CONFIGURE_WITH= cli |
52 |
|
53 |
TEST_CONFIGURE_ENABLE= tests |
54 |
TEST_ALL_TARGET= check |
55 |
|
56 |
AUTOMAKE_ARGS+= --add-missing |
57 |
USE_AUTOTOOLS= aclocal autoheader automake autoconf |
58 |
CONFIGURE_ENV= SSL_LIBS="-lssl" CRYPTO_LIBS="-lcrypto" SSL_CFLAGS="-I/usr/include" CRYPTO_CFLAGS="-I/usr/include" |
59 |
|
27 |
USES= gmake |
60 |
USES= gmake |
28 |
USE_OPENSSL= yes |
61 |
USE_OPENSSL= yes |
29 |
USE_BDB= yes |
|
|
30 |
WANT_BDB_VER= 48 |
62 |
WANT_BDB_VER= 48 |
31 |
|
63 |
|
32 |
CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR} |
64 |
CXXFLAGS+= -I${LOCALBASE}/include |
33 |
CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR} |
65 |
CXXFLAGS+= -L${LOCALBASE}/lib |
34 |
CXXFLAGS+= -Wno-invalid-offsetof |
66 |
CXXFLAGS+= -Wno-invalid-offsetof |
35 |
|
67 |
|
|
|
68 |
QT_BINARY= ${PORTNAME}-qt |
69 |
CLI_BINARY= ${PORTNAME}-cli |
70 |
DAEMON= ${PORTNAME}d |
71 |
|
72 |
PLIST_SUB+= EXECUTABLE_QT=bin/${QT_BINARY} \ |
73 |
EXECUTABLE_CLI=bin/${CLI_BINARY} \ |
74 |
EXECUTABLE_DAEMON=bin/${DAEMON} \ |
75 |
PORTNAME=${PORTNAME} |
76 |
|
36 |
.include <bsd.port.options.mk> |
77 |
.include <bsd.port.options.mk> |
37 |
|
78 |
|
38 |
.if ${PORT_OPTIONS:MX11} |
79 |
.if empty(PORT_OPTIONS:MX11) && !empty(PORT_OPTIONS:MQRCODES) |
39 |
PLIST_SUB+= X11="" |
80 |
BROKEN= QRCODES requires X11 support. Run 'make config' again! |
40 |
.else |
81 |
.endif |
|
|
82 |
|
83 |
# tests will currently fail |
84 |
.if ${PORT_OPTIONS:MTEST} |
85 |
BROKEN= automated testing fails |
86 |
.endif |
87 |
|
88 |
.if ! ${PORT_OPTIONS:MX11} |
89 |
USE_RC_SUBR= ${PORTNAME} |
41 |
SUB_LIST+= PORTNAME=${PORTNAME} |
90 |
SUB_LIST+= PORTNAME=${PORTNAME} |
42 |
USE_RC_SUBR= ${PORTNAME} |
|
|
43 |
SUB_FILES= pkg-message |
91 |
SUB_FILES= pkg-message |
44 |
PLIST_SUB+= X11="@comment " |
|
|
45 |
USERS= ${PORTNAME} |
92 |
USERS= ${PORTNAME} |
46 |
GROUPS= ${PORTNAME} |
93 |
GROUPS= ${PORTNAME} |
47 |
.endif |
94 |
.endif |
48 |
|
95 |
|
49 |
.if ${PORT_OPTIONS:MX11} |
|
|
50 |
USE_QT4= corelib gui qmake_build linguist uic moc rcc |
51 |
BINARY= ${PORTNAME}-qt |
52 |
PLIST_SUB+= HEADLESS="@comment " |
53 |
.else |
54 |
BINARY= ${PORTNAME}d |
55 |
MAKE_ARGS+= -C ${WRKSRC}/src |
56 |
PLIST_SUB+= HEADLESS="" |
57 |
.endif |
58 |
|
59 |
.if ${PORT_OPTIONS:MQRCODES} |
60 |
LIB_DEPENDS+= libqrencode.so:${PORTSDIR}/graphics/libqrencode |
61 |
QMAKE_USE_QRCODE=1 |
62 |
.else |
63 |
QMAKE_USE_QRCODE=0 |
64 |
.endif |
65 |
|
66 |
PLIST_SUB+= EXECUTABLE="bin/${BINARY}" \ |
67 |
PORTNAME=${PORTNAME} |
68 |
|
69 |
.if ${PORT_OPTIONS:MUPNP} |
70 |
LIB_DEPENDS+= libminiupnpc.so:${PORTSDIR}/net/miniupnpc |
71 |
QMAKE_USE_UPNP= 1 |
72 |
.else |
73 |
QMAKE_USE_UPNP= - |
74 |
.endif |
75 |
|
76 |
.include <bsd.port.pre.mk> |
96 |
.include <bsd.port.pre.mk> |
77 |
|
97 |
|
78 |
post-patch: |
98 |
post-patch: |
79 |
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/makefile.unix |
99 |
${MKDIR} ${WRKSRC}/src/build-aux |
80 |
.if !${PORT_OPTIONS:MX11} |
|
|
81 |
@cd ${WRKSRC}/src && ${CP} -p makefile.unix Makefile |
82 |
@${REINPLACE_CMD} \ |
83 |
-e 's|^USE_UPNP.*$$|USE_UPNP=${QMAKE_USE_UPNP}|' \ |
84 |
-e 's|-l pthread|${PTHREAD_LIBS}|g' \ |
85 |
-e 's:-l dl::' \ |
86 |
${WRKSRC}/src/Makefile |
87 |
.endif |
88 |
|
100 |
|
89 |
do-configure: |
101 |
do-install: |
90 |
.if ${PORT_OPTIONS:MX11} |
102 |
.if ${PORT_OPTIONS:MCLI} |
91 |
cd ${WRKSRC} && ${SETENV} ${QMAKE_ENV} \ |
103 |
${INSTALL_PROGRAM} -s ${WRKSRC}/src/${CLI_BINARY} ${STAGEDIR}${PREFIX}/bin/${CLI_BINARY} |
92 |
${QMAKE} ${QMAKE_ARGS} USE_UPNP=${QMAKE_USE_UPNP} USE_QRCODE=${QMAKE_USE_QRCODE} \ |
|
|
93 |
QMAKE_LRELEASE=lrelease-qt4 PREFIX=${PREFIX} INCLUDEPATH=${BDB_INCLUDE_DIR} \ |
94 |
QMAKE_LIBDIR+=${BDB_LIB_DIR} ${PORTNAME}-qt.pro |
95 |
.endif |
104 |
.endif |
96 |
|
105 |
|
97 |
do-install: |
|
|
98 |
.if ${PORT_OPTIONS:MX11} |
106 |
.if ${PORT_OPTIONS:MX11} |
99 |
${INSTALL_PROGRAM} -s ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/bin/${BINARY} |
107 |
${INSTALL_PROGRAM} -s ${WRKSRC}/src/qt/${QT_BINARY} ${STAGEDIR}${PREFIX}/bin/${QT_BINARY} |
100 |
${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \ |
108 |
${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \ |
101 |
-e 's,bitcoin,zetacoin,g' \ |
109 |
-e 's,bitcoin,zetacoin,g' \ |
102 |
-e 's,Bitcoin,Zetacoin,g' \ |
110 |
-e 's,Bitcoin,Zetacoin,g' \ |
Lines 103-115
Link Here
|
103 |
-e 's,128,,g' ${WRKSRC}/contrib/debian/bitcoin-qt.desktop |
111 |
-e 's,128,,g' ${WRKSRC}/contrib/debian/bitcoin-qt.desktop |
104 |
${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}-qt.desktop |
112 |
${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}-qt.desktop |
105 |
${INSTALL} ${WRKSRC}/src/qt/res/icons/bitcoin.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png |
113 |
${INSTALL} ${WRKSRC}/src/qt/res/icons/bitcoin.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png |
106 |
|
|
|
107 |
.else |
114 |
.else |
108 |
${INSTALL_PROGRAM} -s ${WRKSRC}/src/${BINARY} ${STAGEDIR}${PREFIX}/bin/${BINARY} |
115 |
${INSTALL_PROGRAM} -s ${WRKSRC}/src/${DAEMON} ${STAGEDIR}${PREFIX}/bin/${DAEMON} |
109 |
${INSTALL} ${FILESDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample |
116 |
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample |
110 |
@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \ |
|
|
111 |
${CP} -p ${FILESDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf; \ |
112 |
fi |
113 |
.endif |
117 |
.endif |
114 |
|
118 |
|
115 |
.include <bsd.port.post.mk> |
119 |
.include <bsd.port.post.mk> |