diff options
author | Steve Wills <swills@FreeBSD.org> | 2014-01-17 03:53:35 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2014-01-17 03:53:35 +0000 |
commit | eeefd8ca2f7f594a2fc893fed0c6ebf24913a204 (patch) | |
tree | ea8dfa9c295d3e845c666f7b595b11c3262045b1 /net-p2p/litecoin | |
parent | 47dc7e1304fb06f01f9f4528c9a252a9190693f8 (diff) | |
download | ports-eeefd8ca2f7f594a2fc893fed0c6ebf24913a204.tar.gz ports-eeefd8ca2f7f594a2fc893fed0c6ebf24913a204.zip |
Notes
Diffstat (limited to 'net-p2p/litecoin')
-rw-r--r-- | net-p2p/litecoin/Makefile | 19 | ||||
-rw-r--r-- | net-p2p/litecoin/files/patch-src-makefile.unix | 8 |
2 files changed, 18 insertions, 9 deletions
diff --git a/net-p2p/litecoin/Makefile b/net-p2p/litecoin/Makefile index e5e691ad4b56..4f3217a77912 100644 --- a/net-p2p/litecoin/Makefile +++ b/net-p2p/litecoin/Makefile @@ -3,6 +3,7 @@ PORTNAME= litecoin PORTVERSION= 0.8.6.1 +PORTREVISION= 1 CATEGORIES= net-p2p finance MASTER_SITES= LOCAL/swills \ GH @@ -34,7 +35,6 @@ DBUS_DESC= Build with DBUS support CXXFLAGS+= -I${LOCALBASE}/include -I${BDB_INCLUDE_DIR} CXXFLAGS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR} -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MUPNP} @@ -72,6 +72,10 @@ QMAKE_USE_DBUS= 0 .include <bsd.port.pre.mk> +.if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11) +PLIST_FILES+= share/applications/litecoin-qt.desktop share/pixmaps/litecoin64.png +.endif + .if ${OSVERSION} >= 1000000 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-endian .endif @@ -89,15 +93,20 @@ do-configure: .endif do-install: - @${MKDIR} ${PREFIX}/bin .if ${PORT_OPTIONS:MGUI} && !defined(WITHOUT_X11) - ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/bin/ + ${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \ + -e 's,bitcoin,litecoin,g' \ + -e 's,Bitcoin,Litecoin,g' \ + -e 's,128,64,g' ${WRKSRC}/contrib/debian/bitcoin-qt.desktop + ${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications/litecoin-qt.desktop + ${INSTALL} ${WRKSRC}/share/pixmaps/bitcoin64.png ${STAGEDIR}${PREFIX}/share/pixmaps/litecoin64.png .else - ${INSTALL_PROGRAM} ${WRKSRC}/src/${BINARY} ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/src/${BINARY} ${STAGEDIR}${PREFIX}/bin/ .endif post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/makefile.unix + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/makefile.unix regression-test: .if !${PORT_OPTIONS:MGUI} || defined(WITHOUT_X11) diff --git a/net-p2p/litecoin/files/patch-src-makefile.unix b/net-p2p/litecoin/files/patch-src-makefile.unix index a271c117d38d..a9c89cb68998 100644 --- a/net-p2p/litecoin/files/patch-src-makefile.unix +++ b/net-p2p/litecoin/files/patch-src-makefile.unix @@ -4,10 +4,10 @@ DEFS=-DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -+BOOST_INCLUDE_PATH=%%PREFIX%%/include -+BDB_INCLUDE_PATH=%%PREFIX%%/include/db48 -+BOOST_LIB_PATH=%%PREFIX%%/lib -+BDB_LIB_PATH=%%PREFIX%%/lib/db48 ++BOOST_INCLUDE_PATH=%%LOCALBASE%%/include ++BDB_INCLUDE_PATH=%%LOCALBASE%%/include/db48 ++BOOST_LIB_PATH=%%LOCALBASE%%/lib ++BDB_LIB_PATH=%%LOCALBASE%%/lib/db48 + DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH)) LIBS = $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH)) |