2003-06-03 05:20:23 +00:00
|
|
|
# New ports collection Makefile for: haproxy
|
|
|
|
# Date created: Apr 30, 2003
|
|
|
|
# Whom: Clement Laforet
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= haproxy
|
2012-09-18 05:00:17 +00:00
|
|
|
PORTVERSION= 1.4.22
|
2012-12-10 19:11:11 +00:00
|
|
|
PORTREVISION= 2
|
2003-06-03 05:20:23 +00:00
|
|
|
CATEGORIES= net www
|
2010-03-16 01:39:45 +00:00
|
|
|
MASTER_SITES= http://haproxy.1wt.eu/download/1.4/src/
|
2003-06-03 05:20:23 +00:00
|
|
|
|
2012-06-05 07:32:59 +00:00
|
|
|
MAINTAINER= demon@FreeBSD.org
|
2010-03-16 01:39:45 +00:00
|
|
|
COMMENT= The Reliable, High Performance TCP/HTTP Load Balancer
|
2003-06-03 05:20:23 +00:00
|
|
|
|
2011-02-19 14:41:13 +00:00
|
|
|
LICENSE= GPLv2 LGPL21
|
2011-08-25 17:24:32 +00:00
|
|
|
LICENSE_COMB= multi
|
|
|
|
|
|
|
|
CONFLICTS= haproxy-devel-[0-9]*
|
2010-10-31 23:26:04 +00:00
|
|
|
|
2010-03-16 01:39:45 +00:00
|
|
|
USE_RC_SUBR= haproxy
|
|
|
|
USE_GMAKE= YES
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
MAN1= haproxy.1
|
2003-09-26 06:22:37 +00:00
|
|
|
|
2012-06-19 05:31:13 +00:00
|
|
|
OPTIONS_DEFINE= PCRE
|
|
|
|
OPTIONS_SINGLE= PCRE
|
|
|
|
OPTIONS_SINGLE_PCRE= DPCRE SPCRE
|
|
|
|
DPCRE_DESC= Link dynamically
|
|
|
|
SPCRE_DESC= Link statically
|
|
|
|
OPTIONS_DEFAULT=PCRE DPCRE
|
2003-06-03 05:20:23 +00:00
|
|
|
|
2010-03-16 01:39:45 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2011-08-25 17:24:32 +00:00
|
|
|
MAKE_ARGS= TARGET=freebsd DEFINE=-DFREEBSD_PORTS CC=${CC}
|
2003-06-03 05:20:23 +00:00
|
|
|
|
2012-06-19 05:31:13 +00:00
|
|
|
.if ${PORT_OPTIONS:MPCRE}
|
2012-06-19 05:44:09 +00:00
|
|
|
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
|
2012-06-19 05:31:13 +00:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDPCRE}
|
2010-03-16 01:39:45 +00:00
|
|
|
MAKE_ARGS+= "USE_PCRE=1"
|
2003-06-03 05:20:23 +00:00
|
|
|
.endif
|
2012-06-19 05:31:13 +00:00
|
|
|
.if ${PORT_OPTIONS:MSPCRE}
|
2010-03-16 01:39:45 +00:00
|
|
|
MAKE_ARGS+= "USE_STATIC_PCRE=1"
|
2006-09-24 10:54:04 +00:00
|
|
|
.endif
|
2012-06-19 05:31:13 +00:00
|
|
|
.endif
|
2006-09-24 10:54:04 +00:00
|
|
|
|
2003-06-03 05:20:23 +00:00
|
|
|
do-install:
|
2010-03-16 01:39:45 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin/
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/haproxy.1 ${MAN1PREFIX}/man/man1
|
2003-09-26 06:22:37 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2010-03-16 01:39:45 +00:00
|
|
|
(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
|
2010-05-15 05:27:50 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2004-06-08 10:31:00 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2010-03-16 01:39:45 +00:00
|
|
|
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
|
2003-09-26 06:22:37 +00:00
|
|
|
.endif
|
2003-06-03 05:20:23 +00:00
|
|
|
|
2004-06-08 10:31:00 +00:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2003-06-03 05:20:23 +00:00
|
|
|
.include <bsd.port.mk>
|