Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 2014 07:30:11 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r354401 - head/finance/vanitygen
Message-ID:  <201405180730.s4I7UBce078635@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Sun May 18 07:30:11 2014
New Revision: 354401
URL: http://svnweb.freebsd.org/changeset/ports/354401
QAT: https://qat.redports.org/buildarchive/r354401/

Log:
  - Support CFLAGS properly
  - Fix USE_GITHUB support
  - Add LICENSE
  PR:		187499
  Submitted by:	Ports Fury

Modified:
  head/finance/vanitygen/Makefile
  head/finance/vanitygen/distinfo

Modified: head/finance/vanitygen/Makefile
==============================================================================
--- head/finance/vanitygen/Makefile	Sun May 18 07:26:29 2014	(r354400)
+++ head/finance/vanitygen/Makefile	Sun May 18 07:30:11 2014	(r354401)
@@ -3,32 +3,36 @@
 
 PORTNAME=	vanitygen
 PORTVERSION=	0.21
+PORTREVISION=	1
 CATEGORIES=	finance
-MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${PORTNAME}/archive/
-DISTNAME=	${PORTVERSION}
+MASTER_SITES=	GH
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Standalone vanity address generator for bitcoin
 
+LICENSE=	AGPLv3
+
 LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
 
-USES=		gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	samr7
-GH_PROJECT=	${PORTNAME}
-GH_TAGNAME=	20130402
-PLIST_FILES=	bin/keyconv bin/vanitygen
+GH_COMMIT=	b9237a0
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USES=		gmake
+USE_OPENSSL=	yes
+ALL_TARGET=	most
+
+PLIST_FILES=	bin/keyconv bin/vanitygen
 
 post-patch:
-	@${REINPLACE_CMD} \
-	    	-e 's|CFLAGS=|CFLAGS=-I${LOCALBASE}/include -L${LOCALBASE}/lib |g' \
-		-e 's| oclvanitygen oclvanityminer||g' \
-	    	${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e \
+		's|-lpcre|$$(shell pcre-config --libs)| ; \
+		 s|-lpthread|-pthread $$(LDFLAGS)| ; \
+		 s|^\(CFLAGS\).*|\1+=$$(shell pcre-config --cflags)|' \
+		${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/keyconv ${STAGEDIR}${PREFIX}/bin/
-	${INSTALL_PROGRAM} ${WRKSRC}/vanitygen ${STAGEDIR}${PREFIX}/bin/
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} keyconv vanitygen \
+		${STAGEDIR}${PREFIX}/bin)
 
 .include <bsd.port.mk>

Modified: head/finance/vanitygen/distinfo
==============================================================================
--- head/finance/vanitygen/distinfo	Sun May 18 07:26:29 2014	(r354400)
+++ head/finance/vanitygen/distinfo	Sun May 18 07:30:11 2014	(r354401)
@@ -1,2 +1,2 @@
-SHA256 (0.21.tar.gz) = 58c56e1ec51c654077ace5599d4f9dc512110e2150fe40a05380f948b305be7f
-SIZE (0.21.tar.gz) = 77441
+SHA256 (vanitygen-0.21.tar.gz) = e5f08956e6d01dd9cb57fb16167656ccea102a1602d89d950e122dc7429b0b78
+SIZE (vanitygen-0.21.tar.gz) = 77478



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