freebsd-ports/www/serf/Makefile

53 lines
1.1 KiB
Makefile
Raw Normal View History

# 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
2013-11-05 22:57:16 +01:00
USE_SCONS= yes
USE_BZIP2= yes
2013-11-05 22:57:16 +01:00
USE_OPENSSL= yes
USE_LDCONFIG= yes
SUB_FILES= libserf-1.la
OPTIONS_DEFINE= DOCS GSSAPI
2013-11-05 22:57:16 +01:00
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}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGSSAPI}
SCONS_ARGS+= GSSAPI="/usr"
.endif
post-patch:
2013-11-05 22:57:16 +01:00
@${REINPLACE_CMD} -e '/^Requires.private/d' ${WRKSRC}/build/serf.pc.in
post-install:
2013-11-05 22:57:16 +01:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/design-guide.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${SUB_FILES:S|^|${WRKDIR}/|} ${STAGEDIR}${PREFIX}/lib
2013-11-05 22:57:16 +01:00
regression-test check: build
@(cd ${WRKSRC} && ${SCONS_BIN} check)
.include <bsd.port.mk>