2013-05-30 06:23:48 +02:00
|
|
|
# Created by: Steve Wills <swills@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= litecoin
|
2016-02-08 20:51:27 +01:00
|
|
|
PORTVERSION= 0.10.4.0
|
2015-05-07 19:26:05 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2016-02-08 20:51:27 +01:00
|
|
|
#PORTREVISION= 1
|
2013-05-30 06:23:48 +02:00
|
|
|
CATEGORIES= net-p2p finance
|
2015-05-07 19:26:05 +02:00
|
|
|
MASTER_SITES= LOCAL/swills
|
2013-06-22 13:47:57 +02:00
|
|
|
|
2013-05-30 06:23:48 +02:00
|
|
|
MAINTAINER= swills@FreeBSD.org
|
2015-08-05 15:21:53 +02:00
|
|
|
COMMENT?= Virtual Peer-to-Peer Currency Client (QT)
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libboost_date_time.so:devel/boost-libs
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2016-08-08 15:46:50 +02:00
|
|
|
USES+= autoreconf gmake libtool pkgconfig shebangfix ssl
|
2015-08-05 15:21:53 +02:00
|
|
|
SHEBANG_FILES= src/test/*.py
|
2013-05-30 06:23:48 +02:00
|
|
|
USE_GITHUB= yes
|
2015-08-05 15:21:53 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
SLAVE_PORT?= no
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no"
|
|
|
|
USES+= cpe desktop-file-utils
|
|
|
|
USE_QT4= corelib gui moc_build linguisttools_build network qmake_build \
|
|
|
|
rcc_build uic_build
|
|
|
|
CPE_VENDOR= bitcoin
|
|
|
|
CPE_PRODUCT= bitcoin-qt
|
|
|
|
CPE_VERSION= ${PORTVERSION:R}
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS+= protoc:devel/protobuf
|
|
|
|
LIB_DEPENDS+= libprotobuf.so:devel/protobuf
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
DBUS_USE= QT4=dbus
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
TESTS_USE= QT4=testlib
|
|
|
|
TESTS_PLIST_FILES= %%QT_BINDIR%%/test_litecoin-qt
|
2013-05-30 06:23:48 +02:00
|
|
|
.endif
|
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
OPTIONS_DEFINE?= DBUS DEBUG HARDENING QRCODES TESTS UPNP WALLET
|
|
|
|
OPTIONS_DEFAULT?= HARDENING QRCODES WALLET
|
|
|
|
OPTIONS_SUB= yes
|
2014-02-10 03:49:15 +01:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
HARDENING_DESC= Attempt to harden binaries (PIE for ASLR, NX Stack)
|
|
|
|
QRCODES_DESC= Display QR Codes
|
|
|
|
TESTS_DESC= Build test binary and unit tests
|
|
|
|
WALLET_DESC= Wallet Management Support
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
DBUS_CONFIGURE_WITH= qtdbus
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
|
|
|
DEBUG_INSTALL_TARGET_OFF= install-strip
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
HARDENING_CONFIGURE_ENABLE= hardening
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
TESTS_CONFIGURE_ENABLE= tests
|
|
|
|
TESTS_PLIST_FILES+= bin/test_litecoin
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
UPNP_CONFIGURE_WITH= miniupnpc
|
2016-04-01 16:16:16 +02:00
|
|
|
UPNP_LIB_DEPENDS= libminiupnpc.so:net/miniupnpc
|
2015-08-05 15:21:53 +02:00
|
|
|
UPNP_CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
UPNP_LIBS= -L${LOCALBASE}/lib
|
2014-01-17 04:53:35 +01:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
QRCODES_CONFIGURE_WITH= qrencode
|
2016-04-01 16:16:16 +02:00
|
|
|
QRCODES_LIB_DEPENDS= libqrencode.so:graphics/libqrencode
|
2013-05-30 06:23:48 +02:00
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
WALLET_CONFIGURE_ENABLE= wallet
|
|
|
|
WALLET_CXXFLAGS= -I${BDB_INCLUDE_DIR}
|
|
|
|
WALLET_LIBS= -L${BDB_LIB_DIR}
|
2016-08-08 15:46:50 +02:00
|
|
|
WALLET_USES= bdb:48
|
2015-08-05 15:21:53 +02:00
|
|
|
|
|
|
|
GH_ACCOUNT= litecoin-project
|
|
|
|
|
|
|
|
CONFIGURE_ARGS?= --without-libs \
|
|
|
|
--disable-reduce-exports \
|
|
|
|
--with-gui \
|
|
|
|
--without-daemon \
|
|
|
|
--without-utils
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" \
|
|
|
|
SSL_CFLAGS="-I${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl"
|
|
|
|
|
2016-08-11 17:26:09 +02:00
|
|
|
CONFIGURE_ENV+= OBJC="${CC}" OBJCFLAGS="${CFLAGS}" OBJCXX="${CXX}" OBJCXXFLAGS="${CXXFLAGS}"
|
|
|
|
|
2016-09-12 19:26:26 +02:00
|
|
|
CPPFLAGS+= -I${OPENSSLINC}
|
|
|
|
CFLAGS+= -I${OPENSSLINC}
|
|
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
PLIST_FILES?= bin/litecoin-qt share/applications/litecoin-qt.desktop \
|
|
|
|
share/pixmaps/litecoin128.png
|
|
|
|
|
|
|
|
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no"
|
2013-05-30 06:23:48 +02:00
|
|
|
|
|
|
|
post-patch:
|
2015-08-05 16:39:42 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|bitcoin|litecoin|g' \
|
|
|
|
-e 's|Bitcoin|Litecoin|g' \
|
2015-08-05 15:21:53 +02:00
|
|
|
${WRKSRC}/contrib/debian/bitcoin-qt.desktop
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \
|
|
|
|
${WRKSRC}/contrib/debian/bitcoin-qt.desktop
|
|
|
|
${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop \
|
|
|
|
${STAGEDIR}${PREFIX}/share/applications/litecoin-qt.desktop
|
|
|
|
${INSTALL} ${WRKSRC}/share/pixmaps/bitcoin128.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/litecoin128.png
|
2013-05-30 06:23:48 +02:00
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2015-08-05 15:21:53 +02:00
|
|
|
regression-test: build
|
|
|
|
# To use this sucessfully, remove --without-daemon and --without-utils
|
|
|
|
# from CONFIGURE_ARGS above.
|
|
|
|
|
|
|
|
@cd ${WRKSRC} && ${GMAKE} check
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|