aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/dogecoin/Makefile
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2013-12-20 05:32:15 +0800
committerswills <swills@FreeBSD.org>2013-12-20 05:32:15 +0800
commit79e84c2a6d77cb5966f81d2d5fc432b8150bf922 (patch)
treea28135ff9cd8b03267ad84fdf2cc1a32e5c8be9d /net-p2p/dogecoin/Makefile
parent73de514ef58bc2ab2219e5d5df738f8951771e01 (diff)
downloadfreebsd-ports-gnome-79e84c2a6d77cb5966f81d2d5fc432b8150bf922.tar.gz
freebsd-ports-gnome-79e84c2a6d77cb5966f81d2d5fc432b8150bf922.tar.zst
freebsd-ports-gnome-79e84c2a6d77cb5966f81d2d5fc432b8150bf922.zip
Dogecoin is an open source peer-to-peer cryptocurrency, favored by Shiba Inus
worldwide. WWW: http://dogecoin.com/
Diffstat (limited to 'net-p2p/dogecoin/Makefile')
-rw-r--r--net-p2p/dogecoin/Makefile94
1 files changed, 94 insertions, 0 deletions
diff --git a/net-p2p/dogecoin/Makefile b/net-p2p/dogecoin/Makefile
new file mode 100644
index 000000000000..036cfd17147e
--- /dev/null
+++ b/net-p2p/dogecoin/Makefile
@@ -0,0 +1,94 @@
+# Created by: Shaun Amott <shaun@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= dogecoin
+PORTVERSION= 0.6.4.0
+CATEGORIES= net-p2p finance
+MASTER_SITES= ${MASTER_SITE_LOCAL} \
+ http://people.freebsd.org/~swills/ \
+ GH
+
+MAINTAINER= swills@FreeBSD.org
+COMMENT= Virtual Peer-to-Peer Currency Client
+
+LIB_DEPENDS= libboost_date_time.so:${PORTSDIR}/devel/boost-libs
+
+OPTIONS_DEFINE= GUI UPNP QRCODES
+OPTIONS_DEFAULT= GUI QRCODES
+
+GUI_DESC= Build as a QT4 GUI
+UPNP_DESC= Build with UPNP support
+QRCODES_DESC= Build with QR code display
+
+USE_GITHUB= yes
+GH_ACCOUNT= dogecoin
+GH_PROJECT= dogecoin
+GH_COMMIT= 8e53cb8
+GH_TAGNAME= ${GH_COMMIT}
+
+USES= gmake
+USE_OPENSSL= yes
+USE_BDB= yes
+WANT_BDB_VER= 48
+
+CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR}
+CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR}
+CXXFLAGS+= -Wno-invalid-offsetof
+
+NO_STAGE= yes
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11)
+USE_QT4= corelib gui qmake_build linguist uic moc rcc
+BINARY= dogecoin-qt
+.else
+BINARY= dogecoind
+ALL_TARGET= ${BINARY} test
+MAKE_ARGS+= -C ${WRKSRC}/src
+.endif
+
+.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}
+
+.if ${PORT_OPTIONS:MUPNP}
+LIB_DEPENDS+= libminiupnpc.so:${PORTSDIR}/net/miniupnpc
+QMAKE_USE_UPNP= 1
+.else
+QMAKE_USE_UPNP= -
+.endif
+
+.include <bsd.port.pre.mk>
+
+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} ${CONFIGURE_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} ${PREFIX}/bin/
+.else
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/${BINARY} ${PREFIX}/bin/
+.endif
+
+.include <bsd.port.post.mk>