aboutsummaryrefslogtreecommitdiffstats
path: root/databases/hiredis/Makefile
blob: f9ec6cb3019a811f670956a04a8e7cbfee2a5119 (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
# Created by: Grzegorz Blach <gblach@FreeBSD.org>
# $FreeBSD$

PORTNAME=   hiredis
PORTVERSION=    0.12.1
CATEGORIES= databases

MAINTAINER= gblach@FreeBSD.org
COMMENT=    Minimalistic C client library for the Redis database

LICENSE=    BSD3CLAUSE

USE_GITHUB= yes
GH_ACCOUNT= redis
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT=  9be3a07

USES=       gmake:lite
USE_LDCONFIG=   yes

post-patch:
    @${REINPLACE_CMD} \
        -e '/^REAL_/s/ \$$(ARCH)//' \
        -e 's|\$$(INSTALL_LIBRARY_PATH)/\$$(PKGCONF_PATH)|\$$(DESTDIR)\$$(PREFIX)/libdata/\$$(PKGCONF_PATH)|' \
        ${WRKSRC}/Makefile

post-build:
    @${STRIP_CMD} ${WRKSRC}/libhiredis.so

.include <bsd.port.mk>