Changeset View
Changeset View
Standalone View
Standalone View
net-p2p/litecoin/Makefile
PORTNAME= litecoin | PORTNAME= litecoin | ||||
PORTVERSION= 0.18.1 | |||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
diizzy: Style fix, PORTVERSION --> DISTVERSION and order of variables should be changed:
See Example 17. | |||||
PORTREVISION= 6 | DISTVERSION= 0.21.2 | ||||
CATEGORIES= net-p2p finance | CATEGORIES= net-p2p finance | ||||
MAINTAINER= hsw@bitmark.com | MAINTAINER= hsw@bitmark.com | ||||
COMMENT?= Virtual Peer-to-Peer Currency Client (QT) | COMMENT?= Virtual Peer-to-Peer Currency Client (QT) | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \ | LIB_DEPENDS= libboost_date_time.so:devel/boost-libs \ | ||||
libfmt.so:devel/libfmt \ | |||||
libevent.so:devel/libevent | libevent.so:devel/libevent | ||||
USES= autoreconf compiler:c++11-lib cpe gmake libtool pkgconfig qt:5 shebangfix ssl | USES= autoreconf compiler:c++11-lib cpe gmake libtool localbase pkgconfig qt:5 shebangfix ssl | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
SLAVE_PORT?= no | SLAVE_PORT?= no | ||||
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" | .if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no" | ||||
USES+= desktop-file-utils | USES+= desktop-file-utils | ||||
Show All 10 Lines | |||||
OPTIONS_DEFINE?= DBUS DEBUG HARDENING QRCODES TESTS UPNP WALLET_BDBMODERN ZMQ | OPTIONS_DEFINE?= DBUS DEBUG HARDENING QRCODES TESTS UPNP WALLET_BDBMODERN ZMQ | ||||
OPTIONS_DEFAULT?= DBUS HARDENING QRCODES UPNP WALLET_BDBMODERN ZMQ | OPTIONS_DEFAULT?= DBUS HARDENING QRCODES UPNP WALLET_BDBMODERN ZMQ | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
HARDENING_DESC= Attempt to harden binaries (PIE for ASLR, NX Stack) | HARDENING_DESC= Attempt to harden binaries (PIE for ASLR, NX Stack) | ||||
QRCODES_DESC= Display QR Codes | QRCODES_DESC= Display QR Codes | ||||
TESTS_DESC= Build test binary and unit tests | TESTS_DESC= Build test binary and unit tests | ||||
WALLET_BDBMODERN_DESC= Wallet using modern BDB 5.x or 6.x | WALLET_BDBMODERN_DESC= Wallet using modern BDB 18.x | ||||
ZMQ_DESC= Block and transaction broadcasting with ZeroMQ | ZMQ_DESC= Block and transaction broadcasting with ZeroMQ | ||||
DBUS_CONFIGURE_WITH= dbus | DBUS_CONFIGURE_WITH= dbus | ||||
DBUS_USE= QT=dbus | DBUS_USE= QT=dbus | ||||
DEBUG_CONFIGURE_ENABLE= debug | DEBUG_CONFIGURE_ENABLE= debug | ||||
DEBUG_INSTALL_TARGET_OFF= install-strip | DEBUG_INSTALL_TARGET_OFF= install-strip | ||||
HARDENING_CONFIGURE_ENABLE= hardening | HARDENING_CONFIGURE_ENABLE= hardening | ||||
TESTS_CONFIGURE_ENABLE= tests bench | TESTS_CONFIGURE_ENABLE= tests bench | ||||
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "yes" | .if defined(SLAVE_PORT) && ${SLAVE_PORT} == "yes" | ||||
TESTS_PLIST_FILES= bin/test_litecoin | TESTS_PLIST_FILES= bin/test_litecoin | ||||
.endif | .endif | ||||
TESTS_PLIST_FILES+= bin/bench_litecoin | TESTS_PLIST_FILES+= bin/bench_litecoin | ||||
UPNP_CONFIGURE_WITH= miniupnpc | UPNP_CONFIGURE_WITH= miniupnpc | ||||
UPNP_LIB_DEPENDS= libminiupnpc.so:net/miniupnpc | UPNP_LIB_DEPENDS= libminiupnpc.so:net/miniupnpc | ||||
UPNP_CPPFLAGS= -I${LOCALBASE}/include | |||||
UPNP_LIBS= -L${LOCALBASE}/lib | |||||
QRCODES_CONFIGURE_WITH= qrencode | QRCODES_CONFIGURE_WITH= qrencode | ||||
QRCODES_LIB_DEPENDS= libqrencode.so:graphics/libqrencode | QRCODES_LIB_DEPENDS= libqrencode.so:graphics/libqrencode | ||||
ZMQ_CONFIGURE_ENABLE= zmq | ZMQ_CONFIGURE_ENABLE= zmq | ||||
ZMQ_BUILD_DEPENDS= libzmq4>0:net/libzmq4 | ZMQ_LIB_DEPENDS= libzmq.so:net/libzmq4 | ||||
ZMQ_RUN_DEPENDS= libzmq4>0:net/libzmq4 | |||||
Not Done Inline ActionsInstead of defining it multiple times why not just set it globally? diizzy: Instead of defining it multiple times why not just set it globally?
There's also a helper for… | |||||
Not Done Inline ActionsTyped a bit too fast, USES= localbase (without :ldflags) would be the corresponding helper diizzy: Typed a bit too fast, USES= localbase (without :ldflags) would be the corresponding helper… | |||||
GH_ACCOUNT= litecoin-project | GH_ACCOUNT= litecoin-project | ||||
CONFIGURE_ARGS?= --without-libs \ | CONFIGURE_ARGS?= --without-libs \ | ||||
--with-gui=qt5 \ | --with-gui=qt5 \ | ||||
--without-daemon \ | --without-daemon \ | ||||
--without-utils | --without-utils | ||||
CONFIGURE_ENV= CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" \ | CONFIGURE_ENV= CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" \ | ||||
SSL_CFLAGS="-I${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl" \ | SSL_CFLAGS="-I${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl" \ | ||||
OBJCXX="${CXX}" OBJCXXFLAGS="${CXXFLAGS}" | OBJCXX="${CXX}" OBJCXXFLAGS="${CXXFLAGS}" | ||||
MAKE_ENV+= V=1 | MAKE_ENV+= V=1 | ||||
PLIST_FILES?= bin/litecoin-qt man/man1/litecoin-qt.1.gz \ | PLIST_FILES?= bin/litecoin-qt man/man1/litecoin-qt.1.gz \ | ||||
share/applications/litecoin-qt.desktop share/pixmaps/litecoin.png | share/applications/litecoin-qt.desktop share/pixmaps/litecoin.png | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MWALLET_BDBMODERN} | .if ${PORT_OPTIONS:MWALLET_BDBMODERN} | ||||
CONFIGURE_ARGS+= --enable-wallet --with-incompatible-bdb | CONFIGURE_ARGS+= --enable-wallet --with-incompatible-bdb | ||||
USES+= bdb:5+ | USES+= bdb:18 | ||||
.else | .else | ||||
CONFIGURE_ARGS+= --disable-wallet | CONFIGURE_ARGS+= --disable-wallet | ||||
.endif | .endif | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${PORT_OPTIONS:MWALLET_BDBMODERN} | .if ${PORT_OPTIONS:MWALLET_BDBMODERN} | ||||
CPPFLAGS+= -I${BDB_INCLUDE_DIR} | CPPFLAGS+= -I${BDB_INCLUDE_DIR} | ||||
Show All 20 Lines |
Style fix, PORTVERSION --> DISTVERSION and order of variables should be changed:
See Example 17. Use of USE_GITHUB with DISTVERSIONPREFIX in Porters Handbook