1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/www/serf/Makefile
Olli Hauer 218bce8643 - update to version 1.3.4
- do not use USES=scons [1]
- adjust MASTER_SITES
- adopt new LIB_DEPENDS notation

[1] The upstream Scons script is terrible broken, the ports framework
    sets args unknown to the SConstruct script and every unknown arg
    breaks the script :( Unluckily I haven't found a way to strip the
    breaking args with our shiny USES=scons framework)

Changes:
Serf 1.3.4 [2014-02-08, from /tags/1.3.4, rxxxx]
  Fix issue #119: Endless loop during ssl tunnel setup with Negotiate authn
  Fix issue #123: Can't setup ssl tunnel which sends Connection close header
  Fix a race condition when initializing OpenSSL from multiple threads (r2263)
  Fix issue #138: Incorrect pkg-config file when GSSAPI isn't configured
2014-02-26 20:59:23 +00:00

53 lines
1.2 KiB
Makefile

# Created by: Craig Rodrigues <rodrigc@FreeBSD.org>
# $FreeBSD$
PORTNAME= serf
PORTVERSION= 1.3.4
CATEGORIES= www
MASTER_SITES= http://serf.googlecode.com/svn/src_releases/
MAINTAINER= apache@FreeBSD.org
COMMENT= Serf HTTP client library
LICENSE= APACHE20
LIB_DEPENDS+= libapr-1.so:${PORTSDIR}/devel/apr1
USE_SCONS= yes
USE_BZIP2= yes
USE_OPENSSL= yes
USE_LDCONFIG= yes
SUB_FILES= libserf-1.la
OPTIONS_DEFINE= DOCS GSSAPI
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:
@${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>