aboutsummaryrefslogtreecommitdiffstats
path: root/net/haproxy/Makefile
blob: 7545e9c8bab7ba2c964daf3fc6370462d2133ca9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection Makefile for:    haproxy
# Date created:             Apr 30, 2003
# Whom:                 Clement Laforet
#
# $FreeBSD$
#

PORTNAME=   haproxy
PORTVERSION=    1.4.24
CATEGORIES= net www
MASTER_SITES=   http://haproxy.1wt.eu/download/1.4/src/

MAINTAINER= demon@FreeBSD.org
COMMENT=    The Reliable, High Performance TCP/HTTP Load Balancer

LICENSE=    GPLv2 LGPL21
LICENSE_COMB=   multi

CONFLICTS=  haproxy-devel-[0-9]*

USE_RC_SUBR=    haproxy
USE_GMAKE=  yes
SUB_FILES=  pkg-message
MAN1=       haproxy.1

OPTIONS_DEFINE= PCRE
OPTIONS_SINGLE=     PCRE
OPTIONS_SINGLE_PCRE=    DPCRE SPCRE
DPCRE_DESC= Link dynamically
SPCRE_DESC= Link statically
OPTIONS_DEFAULT=PCRE DPCRE

.include <bsd.port.options.mk>

MAKE_ARGS=  TARGET=freebsd DEFINE=-DFREEBSD_PORTS CC=${CC}

.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+=   pcre:${PORTSDIR}/devel/pcre

.if ${PORT_OPTIONS:MDPCRE}
MAKE_ARGS+= "USE_PCRE=1"
.endif
.if ${PORT_OPTIONS:MSPCRE}
MAKE_ARGS+= "USE_STATIC_PCRE=1"
.endif
.endif

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin/
    @${INSTALL_MAN} ${WRKSRC}/doc/haproxy.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    (cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
aa91e25612f0d465b02704da039ec96b52b'>- Remove deprecated header information from Makefiletota2012-09-052-6/+1 * - Update to 0.1.1.863tota2012-09-053-9/+9 * Mark BROKEN: does not builderwin2012-08-201-0/+2 * Fix typos and make small modifications in COMMENT (according to Porter'scs2012-08-031-1/+1 * Add INSTALL_DEPENDS to fix build on pointyhat-west.linimon2012-07-241-0/+1 * - Update to 0.1.1.814tota2012-07-092-3/+3 * - Update to 0.1.1.810 [1]tota2012-07-023-18/+114 * - Convert to new options frameworktota2012-06-121-8/+11 * - Update to 0.0.3.615tota2011-12-202-3/+3 * - Update to 0.0.3.592tota2011-12-082-3/+3 * - Update to 0.0.3.549tota2011-10-173-3/+11 * - Update to 0.0.3.540tota2011-10-162-4/+4 * - Update to 0.0.3.533tota2011-10-102-3/+3 * - Update to 0.0.3.522tota2011-10-022-3/+3