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

PORTNAME=   hiredis
PORTVERSION=    0.12.1
PORTREVISION=   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
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>