aboutsummaryrefslogtreecommitdiffstats
path: root/net/haproxy-devel/Makefile
blob: 85db09cfe04ba7d3b8e60e8e0d006a92294757ee (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
# New ports collection makefile for:    haproxy-devel
# Date created:         Thu May  3 16:30:19 WEST 2007
# Whom:                 Hugo Saro <hugo@barafranca.com>
#
# $FreeBSD$
#

PORTNAME=   haproxy
DISTVERSION=    1.5-dev5
CATEGORIES= net
MASTER_SITES=   http://haproxy.1wt.eu/download/1.5/src/devel/
PKGNAMESUFFIX=  -devel

MAINTAINER= freebsd@linepoint.com
COMMENT=    The Reliable, High Performance TCP/HTTP Load Balancer

LICENSE_COMB=   multi
LICENSE=    GPLv2 LGPL21

CONFLICTS=  haproxy-[1234567890]\*
USE_RC_SUBR=    haproxy
USE_GMAKE=  YES
SUB_FILES=  pkg-message
MAN1=       haproxy.1

OPTIONS=    PCRE        "Use PCRE regex library"        On\
        STATIC_PCRE "Use static PCRE regex library" Off

.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

.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
.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>