2007-08-05 21:42:52 +02:00
|
|
|
# New ports collection makefile for: haproxy-devel
|
|
|
|
# Date created: Thu May 3 16:30:19 WEST 2007
|
|
|
|
# Whom: Hugo Saro <hugo@barafranca.com>
|
2003-06-03 07:20:23 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= haproxy
|
2011-03-16 15:17:12 +01:00
|
|
|
DISTVERSION= 1.5-dev4
|
2007-10-13 17:29:06 +02:00
|
|
|
CATEGORIES= net
|
2010-09-03 23:49:54 +02:00
|
|
|
MASTER_SITES= http://haproxy.1wt.eu/download/1.5/src/devel/
|
2007-10-13 17:29:06 +02:00
|
|
|
PKGNAMESUFFIX= -devel
|
2003-06-03 07:20:23 +02:00
|
|
|
|
2010-05-09 13:22:51 +02:00
|
|
|
MAINTAINER= freebsd@linepoint.com
|
2010-11-15 22:26:16 +01:00
|
|
|
COMMENT= The Reliable, High Performance TCP/HTTP Load Balancer
|
2003-06-03 07:20:23 +02:00
|
|
|
|
2010-09-03 23:49:54 +02:00
|
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE= GPLv2 LGPL21
|
|
|
|
|
2011-03-16 15:17:12 +01:00
|
|
|
CONFLICTS= haproxy-[1234567890]\*
|
2007-08-05 21:42:52 +02:00
|
|
|
USE_RC_SUBR= haproxy
|
2010-09-03 23:49:54 +02:00
|
|
|
USE_GMAKE= YES
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
MAN1= haproxy.1
|
2006-09-24 12:54:04 +02:00
|
|
|
|
2010-09-03 23:49:54 +02:00
|
|
|
OPTIONS= PCRE "Use PCRE regex library" On\
|
|
|
|
STATIC_PCRE "Use static PCRE regex library" Off
|
2006-09-24 12:54:04 +02:00
|
|
|
|
2010-09-03 23:49:54 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
MAKE_ARGS= TARGET=freebsd DEFINE=-DFREEBSD_PORTS
|
|
|
|
|
|
|
|
.if defined(WITH_PCRE)
|
|
|
|
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
|
|
|
|
MAKE_ARGS+= "USE_PCRE=1"
|
|
|
|
.endif
|
2007-09-12 07:20:13 +02:00
|
|
|
|
2010-09-03 23:49:54 +02:00
|
|
|
.if defined(WITH_STATIC_PCRE)
|
|
|
|
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
|
|
|
|
MAKE_ARGS+= "USE_STATIC_PCRE=1"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin/
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/haproxy.1 ${MAN1PREFIX}/man/man1
|
2003-09-26 08:22:37 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2010-09-03 23:49:54 +02:00
|
|
|
(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
|
2008-07-08 13:15:18 +02:00
|
|
|
.endif
|
2003-06-03 07:20:23 +02:00
|
|
|
|
2004-06-08 12:31:00 +02:00
|
|
|
post-install:
|
2010-09-03 23:49:54 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2004-06-08 12:31:00 +02:00
|
|
|
|
2003-06-03 07:20:23 +02:00
|
|
|
.include <bsd.port.mk>
|