aboutsummaryrefslogtreecommitdiffstats
path: root/finance/vanitygen/Makefile
blob: 5020b8789da7d8c99662314969a795e306500519 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$

PORTNAME=   vanitygen
PORTVERSION=    0.22
PORTREVISION=   1
CATEGORIES= finance

MAINTAINER= ports@FreeBSD.org
COMMENT=    Standalone vanity address generator for bitcoin

LICENSE=    AGPLv3

LIB_DEPENDS=    libpcre.so:devel/pcre

USE_GITHUB= yes
GH_ACCOUNT= samr7
GH_TAGNAME= cd1a728

USES=       gmake ssl
ALL_TARGET= most

PLIST_FILES=    bin/keyconv bin/vanitygen

post-patch:
    @${REINPLACE_CMD} -e \
        's|-lpcre|$$(shell pcre-config --libs)| ; \
         s|-lpthread|-pthread $$(LDFLAGS)| ; \
         s|^\(CFLAGS\).*|\1+=$$(shell pcre-config --cflags)|' \
        ${WRKSRC}/Makefile

do-install:
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} keyconv vanitygen \
        ${STAGEDIR}${PREFIX}/bin)

.include <bsd.port.mk>