View | Details | Raw Unified | Return to bug 192413
Collapse All | Expand All

(-)Makefile (-66 / +70 lines)
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>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (zetacoin-0.8.99.16.tar.gz) = e8e15cf23eb9498f9de61591755c2bd5673ee759ea82e6dd349397b72556d210
1
SHA256 (zetacoin-0.9.2.1.tar.gz) = 424f4c803d13b88aa72d3a04c6eadba194bd9adccc6d519bcbe3e32c512879bc
2
SIZE (zetacoin-0.8.99.16.tar.gz) = 2186180
2
SIZE (zetacoin-0.9.2.1.tar.gz) = 4265834
(-)files/patch-Makefile_include_editSedCommands.patch (+29 lines)
Line 0 Link Here
1
diff --git a/src/Makefile.include b/src/Makefile.include
2
index 2fc6cd7..cdd16f5 100644
3
--- a/src/Makefile.include
4
+++ src/Makefile.include
5
@@ -40,18 +40,18 @@ $(LIBBITCOINQT):
6
 ui_%.h: %.ui
7
 	@test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
8
 	@test -f $(UIC) && QT_SELECT=$(QT_SELECT) $(UIC) -o $(abs_builddir)/$@ $(abs_srcdir)/$< || echo error: could not build $(abs_builddir)/$@
9
-	$(SED) -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@{.n,}
10
-	$(SED) -e '/^\*\*.*by:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@{.n,}
11
+	$(SED) -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@.n $(abs_builddir)/$@
12
+	$(SED) -e '/^\*\*.*by:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@.n $(abs_builddir)/$@
13
 
14
 %.moc: %.cpp
15
 	QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
16
-	$(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,}
17
-	$(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,}
18
+	$(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@.n $(abs_builddir)/$@
19
+	$(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@.n $(abs_builddir)/$@
20
 
21
 moc_%.cpp: %.h
22
 	QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
23
-	$(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,}
24
-	$(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,}
25
+	$(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@.n $(abs_builddir)/$@
26
+	$(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@.n $(abs_builddir)/$@
27
 
28
 %.qm: %.ts
29
 	@test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
(-)files/patch-qt_makefile_am_editSedCommands.patch (+14 lines)
Line 0 Link Here
1
diff --git a/src/qt/Makefile.am b/src/qt/Makefile.am
2
index 648971b..97b2ec4 100644
3
--- a/src/qt/Makefile.am
4
+++ src/qt/Makefile.am
5
@@ -373,7 +373,7 @@ translate: bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_CPP) $(
6
 $(QT_QRC_CPP): $(QT_QRC) $(QT_QM) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(PROTOBUF_H)
7
 	@cd $(abs_srcdir); test -f $(RCC) && QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin -o $(abs_builddir)/$@ $< || \
8
 	  echo error: could not build $@
9
-	$(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,}
10
-	$(SED) -e '/^\*\*.*by:/d' $@  > $@.n && mv $@{.n,}
11
+	$(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@.n $@
12
+	$(SED) -e '/^\*\*.*by:/d' $@  > $@.n && mv $@.n $@
13
 
14
 CLEANFILES = $(BUILT_SOURCES) $(QT_QM) $(QT_FORMS_H) *.gcda *.gcno
(-)files/patch-src-makefile_unix (-30 lines)
Lines 1-30 Link Here
1
--- src/makefile.unix.orig	2013-10-13 06:05:19.000000000 -0400
2
+++ src/makefile.unix	2013-12-27 05:11:28.000000000 -0500
3
@@ -15,6 +15,11 @@
4
 
5
 DEFS=-DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64
6
 
7
+BOOST_INCLUDE_PATH=%%PREFIX%%/include
8
+BDB_INCLUDE_PATH=%%PREFIX%%/include/db48
9
+BOOST_LIB_PATH=%%PREFIX%%/lib
10
+BDB_LIB_PATH=%%PREFIX%%/lib/db48
11
+
12
 DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH))
13
 LIBS = $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH))
14
 
15
@@ -38,6 +43,7 @@
16
    -l boost_filesystem$(BOOST_LIB_SUFFIX) \
17
    -l boost_program_options$(BOOST_LIB_SUFFIX) \
18
    -l boost_thread$(BOOST_LIB_SUFFIX) \
19
+   -l boost_chrono$(BOOST_LIB_SUFFIX) \
20
    -l db_cxx$(BDB_LIB_SUFFIX) \
21
    -l ssl \
22
    -l crypto
23
@@ -61,7 +67,6 @@
24
 LIBS+= \
25
  -Wl,-B$(LMODE2) \
26
    -l z \
27
-   -l dl \
28
    -l pthread
29
 
30
 
(-)files/patch-src__leveldb__build_detect_platform (-20 lines)
Lines 1-20 Link Here
1
--- src/leveldb/build_detect_platform.orig	2014-01-17 19:31:04.000000000 +0000
2
+++ src/leveldb/build_detect_platform	2014-01-17 19:33:47.000000000 +0000
3
@@ -170,7 +170,7 @@
4
     true
5
 else
6
     # If -std=c++0x works, use <cstdatomic>.  Otherwise use port_posix.h.
7
-    $CXX $CXXFLAGS -std=c++0x -x c++ - -o /dev/null 2>/dev/null  <<EOF
8
+    $CXX $CXXFLAGS -std=c++0x -x c++ - -o - > /dev/null 2>/dev/null  <<EOF
9
       #include <cstdatomic>
10
       int main() {}
11
 EOF
12
@@ -182,7 +182,7 @@
13
     fi
14
 
15
     # Test whether tcmalloc is available
16
-    $CXX $CXXFLAGS -x c++ - -o /dev/null -ltcmalloc 2>/dev/null  <<EOF
17
+    $CXX $CXXFLAGS -x c++ -ltcmalloc - -o - > /dev/null 2>/dev/null  <<EOF
18
       int main() {}
19
 EOF
20
     if [ "$?" = 0 ]; then
(-)files/patch-zetacoin-qt_pro (-11 lines)
Lines 1-11 Link Here
1
--- zetacoin-qt.pro.orig	2013-10-13 06:05:19.000000000 -0400
2
+++ zetacoin-qt.pro	2013-10-18 18:49:57.000000000 -0400
3
@@ -418,7 +418,7 @@
4
 LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
5
 # -lgdi32 has to happen after -lcrypto (see  #681)
6
 win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
7
-LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
8
+LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX -lboost_chrono$$BOOST_LIB_SUFFIX
9
 win32:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
10
 macx:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
11
 
(-)files/zetacoin.conf.sample (-6 / +1 lines)
Lines 1-6 Link Here
1
rpcuser=myname
1
rpcuser=myname
2
#rpcpassword=YOU MUST SET A PASSWORD
2
#rpcpassword=YOU MUST SET A PASSWORD
3
maxconnection=80
3
maxconnections=80
4
rpcallowip=127.0.0.1
4
rpcallowip=127.0.0.1
5
rpcport=17335
5
rpcport=17335
6
port=17333
6
port=17333
Lines 8-15 Link Here
8
daemon=1
8
daemon=1
9
listen=1
9
listen=1
10
logtimestamps=1
10
logtimestamps=1
11
addnode=63.247.147.163
12
addnode=105.236.111.72
13
addnode=188.252.16.110
14
addnode=54.212.51.236
15
addnode=75.162.220.45
(-)files/zetacoin.in (-1 lines)
Lines 46-52 Link Here
46
	echo "Creating data directory"
46
	echo "Creating data directory"
47
	eval mkdir -p ${%%PORTNAME%%_datadir}
47
	eval mkdir -p ${%%PORTNAME%%_datadir}
48
	[ $? -eq 0 ] && chown -R ${%%PORTNAME%%_user}:${%%PORTNAME%%_group} ${%%PORTNAME%%_datadir}
48
	[ $? -eq 0 ] && chown -R ${%%PORTNAME%%_user}:${%%PORTNAME%%_group} ${%%PORTNAME%%_datadir}
49
	ln -s ${%%PORTNAME%%_datadir} /.%%PORTNAME%%
50
}
49
}
51
50
52
%%PORTNAME%%_prestart()
51
%%PORTNAME%%_prestart()
(-)pkg-plist (-4 / +4 lines)
Lines 1-6 Link Here
1
%%EXECUTABLE%%
1
%%NO_X11%%%%EXECUTABLE_DAEMON%%
2
%%NO_X11%%@sample etc/%%PORTNAME%%.conf.sample
3
%%CLI%%%%EXECUTABLE_CLI%%
4
%%X11%%%%EXECUTABLE_QT%%
2
%%X11%%share/applications/%%PORTNAME%%-qt.desktop
5
%%X11%%share/applications/%%PORTNAME%%-qt.desktop
3
%%X11%%share/pixmaps/%%PORTNAME%%.png
6
%%X11%%share/pixmaps/%%PORTNAME%%.png
4
%%HEADLESS%%@unexec if cmp -s %D/etc/%%PORTNAME%%.conf.sample %D/etc/%%PORTNAME%%.conf; then rm -f %D/etc/%%PORTNAME%%.conf; fi
5
%%HEADLESS%%etc/%%PORTNAME%%.conf.sample
6
%%HEADLESS%%@exec if [ ! -f %D/etc/%%PORTNAME%%.conf ] ; then cp -p %D/%F %B/%%PORTNAME%%.conf; fi

Return to bug 192413