Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jan 2014 03:53:36 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340012 - in head/net-p2p/litecoin: . files
Message-ID:  <201401170353.s0H3ra17061022@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Fri Jan 17 03:53:35 2014
New Revision: 340012
URL: http://svnweb.freebsd.org/changeset/ports/340012
QAT: https://qat.redports.org/buildarchive/r340012/

Log:
  - Support stage dir
  - Install icon and desktop file

Modified:
  head/net-p2p/litecoin/Makefile
  head/net-p2p/litecoin/files/patch-src-makefile.unix

Modified: head/net-p2p/litecoin/Makefile
==============================================================================
--- head/net-p2p/litecoin/Makefile	Fri Jan 17 03:31:57 2014	(r340011)
+++ head/net-p2p/litecoin/Makefile	Fri Jan 17 03:53:35 2014	(r340012)
@@ -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)

Modified: head/net-p2p/litecoin/files/patch-src-makefile.unix
==============================================================================
--- head/net-p2p/litecoin/files/patch-src-makefile.unix	Fri Jan 17 03:31:57 2014	(r340011)
+++ head/net-p2p/litecoin/files/patch-src-makefile.unix	Fri Jan 17 03:53:35 2014	(r340012)
@@ -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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401170353.s0H3ra17061022>