1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/www/trafficserver/Makefile
Bernhard Froehlich faf39b9761 - Update to 3.2.5 [1]
- Add pkgconfig dependency to fix configure on FreeBSD 9.x and 10.x [2]
- Add USE_GCC=any to fix configure and compile on FreeBSD 10.x
- Convert LIB_DEPENDS to new shlib format
- Remove checks for old EoL FreeBSD versions
- Support staging

PR:		ports/179268 [1]
PR:		ports/183174 [2]
Submitted by:	Hung-Yi Chen <gaod@hychen.org> [1]
Reported by:	Gunnar Flygt <gunnar.flygt@sr.se> [2]
Approved by:	maintainer timeout (19 weeks) [1]
With hat:	portmgr
2013-10-23 12:12:40 +00:00

52 lines
1.3 KiB
Makefile

# Created by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
# $FreeBSD$
PORTNAME= trafficserver
PORTVERSION= 3.2.5
CATEGORIES= www
MASTER_SITES= APACHE/${PORTNAME}
MAINTAINER= jnlin@csie.nctu.edu.tw
COMMENT= A fast, scalable and extensible HTTP proxy server
LICENSE= AL2
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
libexpat.so:${PORTSDIR}/textproc/expat2 \
libpcre.so:${PORTSDIR}/devel/pcre
USE_AUTOTOOLS= autoconf automake libtool
USE_BZIP2= yes
USES= pkgconfig
USE_OPENSSL= yes
USE_SQLITE= yes
USE_TCL= yes
USE_RC_SUBR= ${PORTNAME}
USE_LDCONFIG= yes
USE_GCC= any
ONLY_FOR_ARCHS= i386 amd64
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-expat=${LOCALBASE} \
--with-pcre=${LOCALBASE} \
--with-openssl=${OPENSSLBASE}
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's,|| mv,|| cp -p,' ${WRKSRC}/proxy/config/Makefile.am
pre-configure:
@${FIND} ${WRKSRC}/example ${WRKSRC}/plugins/conf_remap \
-name Makefile.am | ${XARGS} ${REINPLACE_CMD} \
-e 's,CFLAGS+=,AM_CFLAGS=,' \
-e 's,CXXFLAGS+=,AM_CXXFLAGS=,'
@cd ${WRKSRC} && ${AUTORECONF} -i
post-configure:
@${FIND} ${WRKSRC} -name 'Makefile' | ${XARGS} ${REINPLACE_CMD} \
-e 's,LIBTOOL_LINK_FLAGS = -R -R,LIBTOOL_LINK_FLAGS = -R,' \
-e 's,LDFLAGS = -rdynamic *-R -R,LDFLAGS = -rdynamic -R,'
.include <bsd.port.post.mk>