1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

Correct dependencies for static pcre linkage;

switch to USES=gmake.
This commit is contained in:
Dmitry Sivachenko 2013-10-09 08:24:40 +00:00
parent cc1292b873
commit 34232c71a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329875
2 changed files with 6 additions and 10 deletions

View File

@ -13,9 +13,9 @@ COMMENT= The Reliable, High Performance TCP/HTTP Load Balancer
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
USES= gmake
CONFLICTS= haproxy-[1234567890]\*
USE_RC_SUBR= haproxy
USE_GMAKE= yes
SUB_FILES= pkg-message
MAN1= haproxy.1
@ -32,16 +32,14 @@ NO_STAGE= yes
MAKE_ARGS= TARGET=freebsd DEFINE=-DFREEBSD_PORTS USE_GETADDRINFO=1 \
USE_ZLIB=1 CC="${CC}" CFLAGS="${CFLAGS}"
.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
.if ${PORT_OPTIONS:MDPCRE}
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
MAKE_ARGS+= "USE_PCRE=1"
.endif
.if ${PORT_OPTIONS:MSPCRE}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcre.a:${PORTSDIR}/devel/pcre
MAKE_ARGS+= "USE_STATIC_PCRE=1"
.endif
.endif
.if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL= yes

View File

@ -14,8 +14,8 @@ LICENSE_COMB= multi
CONFLICTS= haproxy-devel-[0-9]*
USES= gmake
USE_RC_SUBR= haproxy
USE_GMAKE= yes
SUB_FILES= pkg-message
MAN1= haproxy.1
@ -31,16 +31,14 @@ NO_STAGE= yes
MAKE_ARGS= TARGET=freebsd DEFINE=-DFREEBSD_PORTS CC=${CC}
.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
.if ${PORT_OPTIONS:MDPCRE}
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
MAKE_ARGS+= "USE_PCRE=1"
.endif
.if ${PORT_OPTIONS:MSPCRE}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcre.a:${PORTSDIR}/devel/pcre
MAKE_ARGS+= "USE_STATIC_PCRE=1"
.endif
.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin/