mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
net-p2p/dogecoin: update to 1.8.0
This commit is contained in:
parent
e06196ad2e
commit
d7ce2c000e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371091
@ -2,8 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= dogecoin
|
||||
PORTVERSION= 1.5.0
|
||||
PORTREVISION= 4
|
||||
PORTVERSION= 1.8.0
|
||||
CATEGORIES= net-p2p finance
|
||||
|
||||
MAINTAINER= swills@FreeBSD.org
|
||||
@ -11,6 +10,8 @@ COMMENT= Virtual Peer-to-Peer Currency Client
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
BUILD_DEPENDS= protoc:${PORTSDIR}/devel/protobuf
|
||||
|
||||
LIB_DEPENDS= libboost_date_time.so:${PORTSDIR}/devel/boost-libs
|
||||
|
||||
OPTIONS_DEFINE= GUI UPNP QRCODES
|
||||
@ -22,83 +23,59 @@ QRCODES_DESC= Build with QR code display
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= ${PORTNAME}
|
||||
GH_COMMIT= be94b62
|
||||
GH_COMMIT= c4209a3
|
||||
GH_TAGNAME= v${PORTVERSION}
|
||||
|
||||
USES= gmake compiler:c++11-lib
|
||||
USES= gmake compiler:c++11-lib pkgconfig autoreconf
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --with-incompatible-bdb \
|
||||
SSL_CFLAGS="-I${OPENSSLINC} -L${OPENSSLLIB}" SSL_LIBS="-lssl" \
|
||||
CRYPTO_CFLAGS="-I${OPENSSLINC} -L${OPENSSLLIB}" CRYPTO_LIBS="-lcrypto"
|
||||
CONFIGURE_ENV+= OBJC="${CC}" OBJCFLAGS="${CFLAGS}" OBJCXX="${CXX}" OBJCXXFLAGS="${CXXFLAGS}"
|
||||
USE_OPENSSL= yes
|
||||
USE_BDB= yes
|
||||
WANT_BDB_VER= 48
|
||||
WANT_BDB_VER= 5
|
||||
|
||||
CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR}
|
||||
CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR}
|
||||
CXXFLAGS+= -Wno-invalid-offsetof
|
||||
CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR} \
|
||||
-L${LOCALBASE}/lib -L${BDB_LIB_DIR}
|
||||
|
||||
PLIST_FILES= bin/dogecoind bin/dogecoin-cli
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} <= 1000000
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__leveldb__Makefile
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
|
||||
USE_QT4= corelib network gui qmake_build linguist_build uic_build moc_build rcc_build
|
||||
BINARY= dogecoin-qt
|
||||
.else
|
||||
BINARY= dogecoind
|
||||
ALL_TARGET= ${BINARY} test
|
||||
MAKE_ARGS+= -C ${WRKSRC}/src
|
||||
#.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
|
||||
#EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__leveldb__Makefile
|
||||
#.endif
|
||||
|
||||
GUI_CONFIGURE_ENABLE= gui
|
||||
.if ${PORT_OPTIONS:MGUI}
|
||||
USE_QT4= corelib network gui qmake_build linguist_build uic_build moc_build rcc_build dbus
|
||||
PLIST_FILES+= share/applications/dogecoin-qt.desktop \
|
||||
share/pixmaps/dogecoin64.png \
|
||||
bin/dogecoin-qt
|
||||
.endif
|
||||
|
||||
QRCODES_CONFIGURE_ENABLE= qrencode
|
||||
.if ${PORT_OPTIONS:MQRCODES}
|
||||
LIB_DEPENDS+= libqrencode.so:${PORTSDIR}/graphics/libqrencode
|
||||
QMAKE_USE_QRCODE=1
|
||||
.else
|
||||
QMAKE_USE_QRCODE=0
|
||||
.endif
|
||||
|
||||
PLIST_FILES= bin/${BINARY}
|
||||
|
||||
UPNP_CONFIGURE_ENABLE= miniupnpc
|
||||
.if ${PORT_OPTIONS:MUPNP}
|
||||
LIB_DEPENDS+= libminiupnpc.so:${PORTSDIR}/net/miniupnpc
|
||||
QMAKE_USE_UPNP= 1
|
||||
.else
|
||||
QMAKE_USE_UPNP= -
|
||||
.endif
|
||||
|
||||
SUB_FILES+= dogecoin-qt.desktop
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
|
||||
PLIST_FILES+= share/applications/dogecoin-qt.desktop share/pixmaps/dogecoin64.png
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if !${PORT_OPTIONS:MGUI} || defined(WITHOUT_X11)
|
||||
@cd ${WRKSRC}/src && ${CP} -p makefile.unix Makefile
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's|^USE_UPNP.*$$|USE_UPNP=${QMAKE_USE_UPNP}|' \
|
||||
-e 's|-l pthread|${PTHREAD_LIBS}|g' \
|
||||
-e 's:-l dl::' \
|
||||
${WRKSRC}/src/Makefile
|
||||
.endif
|
||||
|
||||
do-configure:
|
||||
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
|
||||
cd ${WRKSRC} && ${SETENV} ${QMAKE_ENV} \
|
||||
${QMAKE} ${QMAKE_ARGS} USE_UPNP=${QMAKE_USE_UPNP} USE_QRCODE=${QMAKE_USE_QRCODE} \
|
||||
QMAKE_LRELEASE=${LRELEASE} INCLUDEPATH=${BDB_INCLUDE_DIR} \
|
||||
QMAKE_LIBDIR+=${BDB_LIB_DIR} dogecoin-qt.pro
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/bin
|
||||
.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/bin/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/dogecoind ${STAGEDIR}${PREFIX}/bin/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/dogecoin-cli ${STAGEDIR}${PREFIX}/bin/
|
||||
.if ${PORT_OPTIONS:MGUI}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/qt/dogecoin-qt ${STAGEDIR}${PREFIX}/bin/
|
||||
${INSTALL} ${WRKDIR}/dogecoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications
|
||||
${INSTALL} ${WRKSRC}/src/qt/res/icons/bitcoin.png ${STAGEDIR}${PREFIX}/share/pixmaps/dogecoin64.png
|
||||
.else
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/${BINARY} ${STAGEDIR}${PREFIX}/bin/
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (dogecoin-1.5.0.tar.gz) = 43832d6a147471b759599b4dd080b88ed4d39c119231129d1febd2f1e991cf06
|
||||
SIZE (dogecoin-1.5.0.tar.gz) = 3509184
|
||||
SHA256 (dogecoin-1.8.0.tar.gz) = 8eb2d30175cda6065f9dc8e2b6a937eb0e638119fec3966ed3ec0afa87743680
|
||||
SIZE (dogecoin-1.8.0.tar.gz) = 8049394
|
||||
|
@ -1,11 +0,0 @@
|
||||
diff -ur ../bitcoin-bitcoin-18c9239.orig/src/makefile.unix ./src/makefile.unix
|
||||
--- ../bitcoin-bitcoin-18c9239.orig/src/makefile.unix 2013-05-24 22:50:15.000000000 +1000
|
||||
+++ ./src/makefile.unix 2013-05-24 22:52:34.000000000 +1000
|
||||
@@ -38,6 +38,7 @@
|
||||
-l boost_filesystem$(BOOST_LIB_SUFFIX) \
|
||||
-l boost_program_options$(BOOST_LIB_SUFFIX) \
|
||||
-l boost_thread$(BOOST_LIB_SUFFIX) \
|
||||
+ -l boost_chrono$(BOOST_LIB_SUFFIX) \
|
||||
-l db_cxx$(BDB_LIB_SUFFIX) \
|
||||
-l ssl \
|
||||
-l crypto
|
@ -1,10 +0,0 @@
|
||||
--- src/util.h.orig 2013-12-31 20:53:22.000000000 +0000
|
||||
+++ src/util.h 2013-12-31 20:53:40.000000000 +0000
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
+#include <cstdarg>
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/filesystem.hpp>
|
27
net-p2p/dogecoin/files/patch-src__Makefile.include
Normal file
27
net-p2p/dogecoin/files/patch-src__Makefile.include
Normal file
@ -0,0 +1,27 @@
|
||||
--- src/Makefile.include.orig 2014-10-13 01:51:55.000000000 +0000
|
||||
+++ src/Makefile.include 2014-10-13 01:53:22.000000000 +0000
|
||||
@@ -41,18 +41,18 @@
|
||||
ui_%.h: %.ui
|
||||
@test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
|
||||
@test -f $(UIC) && QT_SELECT=$(QT_SELECT) $(UIC) -o $(abs_builddir)/$@ $(abs_srcdir)/$< || echo error: could not build $(abs_builddir)/$@
|
||||
- $(SED) -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@{.n,}
|
||||
- $(SED) -e '/^\*\*.*by:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@{.n,}
|
||||
+ $(SED) -e '/^\*\*.*Created:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@.n $(abs_builddir)/$@
|
||||
+ $(SED) -e '/^\*\*.*by:/d' $(abs_builddir)/$@ > $(abs_builddir)/$@.n && mv $(abs_builddir)/$@.n $(abs_builddir)/$@
|
||||
|
||||
%.moc: %.cpp
|
||||
QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
|
||||
- $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,}
|
||||
- $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,}
|
||||
+ $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@.n $@
|
||||
+ $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@.n $@
|
||||
|
||||
moc_%.cpp: %.h
|
||||
QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) -o $@ $<
|
||||
- $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,}
|
||||
- $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,}
|
||||
+ $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@.n $@
|
||||
+ $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@.n $@
|
||||
|
||||
%.qm: %.ts
|
||||
@test -d $(abs_builddir)/$(@D) || $(MKDIR_P) $(abs_builddir)/$(@D)
|
12
net-p2p/dogecoin/files/patch-src__qt__Makefile.am
Normal file
12
net-p2p/dogecoin/files/patch-src__qt__Makefile.am
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/qt/Makefile.am.orig 2014-10-13 01:49:25.000000000 +0000
|
||||
+++ src/qt/Makefile.am 2014-10-13 01:50:00.000000000 +0000
|
||||
@@ -382,7 +382,7 @@
|
||||
$(QT_QRC_CPP): $(QT_QRC) $(QT_QM) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(RES_FONTS) $(PROTOBUF_H)
|
||||
@cd $(abs_srcdir); test -f $(RCC) && QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin -o $(abs_builddir)/$@ $< || \
|
||||
echo error: could not build $@
|
||||
- $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@{.n,}
|
||||
- $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@{.n,}
|
||||
+ $(SED) -e '/^\*\*.*Created:/d' $@ > $@.n && mv $@.n $@
|
||||
+ $(SED) -e '/^\*\*.*by:/d' $@ > $@.n && mv $@.n $@
|
||||
|
||||
CLEANFILES = $(BUILT_SOURCES) $(QT_QM) $(QT_FORMS_H) *.gcda *.gcno
|
@ -1,6 +1,6 @@
|
||||
--- ./src/scrypt.cpp.orig 2014-01-10 01:38:53.000000000 +0000
|
||||
+++ ./src/scrypt.cpp 2014-02-09 05:45:03.131006405 +0000
|
||||
@@ -33,6 +33,7 @@
|
||||
--- src/scrypt.cpp.orig 2014-08-24 15:09:34 UTC
|
||||
+++ src/scrypt.cpp
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <openssl/sha.h>
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
#if defined(USE_SSE2) && !defined(USE_SSE2_ALWAYS)
|
||||
#ifdef _MSC_VER
|
||||
@@ -44,22 +45,6 @@
|
||||
@@ -46,22 +47,6 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- ./src/scrypt.h.orig 2014-01-10 01:38:53.000000000 +0000
|
||||
+++ ./src/scrypt.h 2014-02-09 05:45:03.133009188 +0000
|
||||
@@ -27,19 +27,4 @@
|
||||
--- src/scrypt.h.orig 2014-08-24 15:09:34 UTC
|
||||
+++ src/scrypt.h
|
||||
@@ -29,19 +29,4 @@
|
||||
PBKDF2_SHA256(const uint8_t *passwd, size_t passwdlen, const uint8_t *salt,
|
||||
size_t saltlen, uint64_t c, uint8_t *buf, size_t dkLen);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user