Comment: P2P payment system Description: Litecoin is a peer-to-peer Internet currency that enables instant payments to anyone in the world. It is based on the Bitcoin protocol but differs from Bitcoin in that it can be efficiently mined with consumer-grade hardware. Litecoin provides faster transaction confirmations (2.5 minutes on average) and uses memory-hard, scrypt-based mining proof-of-work algorithm to target the regular computers and GPUs most people already have. The Litecoin network is scheduled to produce 84 million currency units. One of the aims of Litecoin was to provide a mining algorithm that could run at the same time, on the same hardware used to mine bitcoins. With the rise of specialized ASICs for Bitcoin, Litecoin continues to satisfy these goals. It is unlikely for ASIC mining to be developed for Litecoin until the currency is widely used. Maintainer: Rafael Sadowski <rsadowski@openbsd.org> WWW: https://litecoin.org
133 lines
3.9 KiB
Makefile
133 lines
3.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2019/03/08 05:52:25 rsadowski Exp $
|
|
|
|
COMMENT = P2P payment system
|
|
|
|
GH_ACCOUNT = litecoin-project
|
|
GH_PROJECT = litecoin
|
|
GH_TAGNAME = v0.16.3
|
|
|
|
SHARED_LIBS += bitcoinconsensus 0.0 # 0.0
|
|
SHARED_LIBS += secp256k1 0.0 # 0.0
|
|
SHARED_LIBS += univalue 0.0 # 100.3
|
|
|
|
CATEGORIES = net
|
|
|
|
HOMEPAGE = https://litecoin.org
|
|
|
|
MAINTAINER = Rafael Sadowski <rsadowski@openbsd.org>
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} boost_chrono-mt boost_filesystem
|
|
WANTLIB += boost_program_options-mt boost_timer-mt boost_unit_test_framework-mt
|
|
WANTLIB += boost_system boost_system-mt boost_thread-mt c crypto
|
|
WANTLIB += db_cxx event_core event_extra event_pthreads m sodium
|
|
WANTLIB += ssl zmq
|
|
|
|
BUILD_DEPENDS = ${MODGNU_AUTOMAKE_DEPENDS} \
|
|
${MODGNU_AUTOCONF_DEPENDS} \
|
|
devel/libtool
|
|
|
|
LIB_DEPENDS = devel/boost \
|
|
net/zeromq \
|
|
devel/libevent2 \
|
|
databases/db/v4
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
# C++11
|
|
# Undefined reference to boost and db4 with GCC
|
|
COMPILER = base-clang ports-clang
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
AUTOCONF_VERSION = 2.69
|
|
AUTOMAKE_VERSION = 1.14
|
|
CONFIGURE_ARGS += --with-incompatible-bdb
|
|
|
|
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include/db4 -I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib/db4"
|
|
|
|
CXXFLAGS += -std=c++11
|
|
|
|
MAKE_FLAGS = CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
|
|
|
|
FLAVORS = no_x11 debug
|
|
FLAVOR ?=
|
|
|
|
.if ${FLAVOR:Mdebug}
|
|
CONFIGURE_ARGS += --enable-debug
|
|
.endif
|
|
|
|
.if ${FLAVOR:Mno_x11}
|
|
CONFIGURE_ARGS += --without-gui
|
|
.else
|
|
|
|
WANTLIB += GL Qt5Core Qt5Test Qt5DBus Qt5Gui Qt5Network Qt5Widgets X11
|
|
WANTLIB += X11-xcb Xdamage Xext Xfixes Xxf86vm dbus-1 drm execinfo
|
|
WANTLIB += expat freetype glapi glib-2.0 graphite2 gthread-2.0
|
|
WANTLIB += harfbuzz iconv icudata icui18n icuuc intl miniupnpc
|
|
WANTLIB += pcre pcre2-16 png16 protobuf qrencode xcb xcb-dri2
|
|
WANTLIB += xcb-dri3 xcb-glx xcb-present xcb-sync xcb-xfixes xshmfence
|
|
WANTLIB += z
|
|
|
|
MODULES += x11/qt5
|
|
|
|
LIB_DEPENDS += devel/protobuf \
|
|
graphics/libqrencode \
|
|
net/miniupnp/miniupnpc
|
|
|
|
CONFIGURE_ARGS += --with-gui=qt5
|
|
|
|
CONFIGURE_ENV += LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
|
.endif
|
|
|
|
SUBST_VARS += VARBASE
|
|
|
|
post-patch:
|
|
cd ${WRKSRC} && ${SETENV} AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
|
|
AUTOCONF_VERSION=${AUTOCONF_VERSION} ./autogen.sh
|
|
|
|
post-install:
|
|
cd ${WRKBUILD}/src/secp256k1 && \
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} install
|
|
cd ${WRKBUILD}/src/univalue && \
|
|
${MAKE_PROGRAM} ${MAKE_FLAGS} install
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/litecoin
|
|
${INSTALL_SCRIPT} ${WRKDIST}/share/rpcauth/rpcauth.py \
|
|
${PREFIX}/share/litecoin/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/litecoin
|
|
${INSTALL_DATA} ${WRKDIST}/contrib/debian/examples/bitcoin.conf \
|
|
${PREFIX}/share/examples/litecoin/litecoin.conf
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions/litecoin
|
|
${INSTALL_DATA} ${WRKDIST}/contrib/*.bash-completion \
|
|
${PREFIX}/share/bash-completion/completions/litecoin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/litecoin
|
|
${INSTALL_DATA} ${WRKDIST}/doc/{assets-attribution.md,benchmarking.md} \
|
|
${PREFIX}/share/doc/litecoin
|
|
${INSTALL_DATA} ${WRKDIST}/doc/{bips.md,dnsseed-policy.md,fuzzing.md} \
|
|
${PREFIX}/share/doc/litecoin
|
|
${INSTALL_DATA} ${WRKDIST}/doc/{reduce-traffic.md,tor.md} \
|
|
${PREFIX}/share/doc/litecoin
|
|
${INSTALL_DATA} ${WRKDIST}/doc/translation_process.md \
|
|
${PREFIX}/share/doc/litecoin
|
|
${INSTALL_DATA} ${WRKDIST}/doc/translation_strings_policy.md \
|
|
${PREFIX}/share/doc/litecoin
|
|
|
|
.if ! ${FLAVOR:Mno_x11}
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
|
|
.for s in 16 32 64 128 256
|
|
${INSTALL_DATA} ${WRKDIST}/share/pixmaps/bitcoin${s}.png \
|
|
${PREFIX}/share/pixmaps/litecoin${s}.png
|
|
${INSTALL_DATA} ${WRKDIST}/share/pixmaps/bitcoin${s}.xpm \
|
|
${PREFIX}/share/pixmaps/litecoin${s}.xpm
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
# fix build when ccache is installed but not enabled
|
|
.if ${USE_CCACHE:L} != "yes"
|
|
CONFIGURE_ARGS += --disable-ccache
|
|
.endif
|