aboutsummaryrefslogtreecommitdiffstats
path: root/www/serf/Makefile
blob: 4200f703d01b52c57f5983a9be70a858b656d84a (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
37
38
39
40
41
42
43
44
45
46
# Created by: Craig Rodrigues <rodrigc@FreeBSD.org>
# $FreeBSD$

PORTNAME=   serf
PORTVERSION=    1.3.3
CATEGORIES= www
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= apache@FreeBSD.org
COMMENT=    Serf HTTP client library

LICENSE=    APACHE20

LIB_DEPENDS+=   apr-1:${PORTSDIR}/devel/apr1

USE_SCONS=  yes
USE_BZIP2=  yes
USE_OPENSSL=    yes
USE_LDCONFIG=   yes

SUB_FILES=  libserf-1.la

OPTIONS_DEFINE= DOCS

SCONS_ENV=  # empty
SCONS_BUILDENV= # empty
SCONS_ARGS= APR=${LOCALBASE}/bin/apr-1-config
SCONS_ARGS+=    APU=${LOCALBASE}/bin/apu-1-config
SCONS_ARGS+=    OPENSSL=${OPENSSLBASE}
SCONS_ARGS+=    PREFIX=${PREFIX}
SCONS_ARGS+=    CC=${CC}
SCONS_ARGS+=    CFLAGS="${CFLAGS}"
SCONS_INSTALL_TARGET=   install --install-sandbox=${STAGEDIR}

post-patch:
    @${REINPLACE_CMD} -e '/^Requires.private/d' ${WRKSRC}/build/serf.pc.in

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/design-guide.txt ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${SUB_FILES:S|^|${WRKDIR}/|} ${STAGEDIR}${PREFIX}/lib

regression-test check: build
    @(cd ${WRKSRC} && ${SCONS_BIN} check)

.include <bsd.port.mk>