mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
3c880db83d
Libs.private in serf-1.pc such that subversion-static can use "pkg-config --static" instead of requiring a .la file - Remove an old libtool patch from devel/subversion Approved by: ohauer
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# Created by: Craig Rodrigues <rodrigc@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= serf
|
|
PORTVERSION= 1.3.7
|
|
PORTREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://serf.googlecode.com/svn/src_releases/
|
|
|
|
MAINTAINER= lev@FreeBSD.org
|
|
COMMENT= Serf HTTP client library
|
|
|
|
LICENSE= APACHE20
|
|
|
|
LIB_DEPENDS+= libapr-1.so:${PORTSDIR}/devel/apr1
|
|
|
|
USES= scons tar:bzip2
|
|
USE_OPENSSL= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS_DEFINE= DOCS GSSAPI
|
|
|
|
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}"
|
|
INSTALL_TARGET= install --install-sandbox=${STAGEDIR}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MGSSAPI}
|
|
SCONS_ARGS+= GSSAPI="/usr"
|
|
.endif
|
|
|
|
do-build:
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_CMD} ${SCONS_ARGS})
|
|
|
|
do-install:
|
|
@(cd ${WRKSRC} && ${SENTENV} ${MAKE_CMD} ${SCONS_ARGS} ${INSTALL_TARGET})
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E \
|
|
-e '/^Requires.private/s/(libssl|libcrypto)//g' \
|
|
-e '/^Libs.private/s|$$| -L${OPENSSLLIB} -lssl -lcrypto|' \
|
|
${WRKSRC}/build/serf.pc.in
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/design-guide.txt ${STAGEDIR}${DOCSDIR}
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libserf-1.so
|
|
|
|
regression-test check: build
|
|
@(cd ${WRKSRC} && ${MAKE_CMD} check)
|
|
|
|
.include <bsd.port.mk>
|