- Support CFLAGS properly
- Fix USE_GITHUB support - Add LICENSE PR: 187499 Submitted by: Ports Fury
This commit is contained in:
parent
04995b15f4
commit
6e3e01a84a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354401
@ -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
|
||||
GH_COMMIT= b9237a0
|
||||
|
||||
USES= gmake
|
||||
USE_OPENSSL= yes
|
||||
ALL_TARGET= most
|
||||
|
||||
PLIST_FILES= bin/keyconv bin/vanitygen
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user