diff options
author | demon <demon@FreeBSD.org> | 2012-10-21 22:37:44 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2012-10-21 22:37:44 +0800 |
commit | 94cde1d34cf94c367e97249077fa13c375553631 (patch) | |
tree | 920dfe0d3cedbccae98ee01679f5ac281f0778d6 /net | |
parent | f53b8d92ab39d9e39954cf45cf012f2cbfc9a159 (diff) | |
download | freebsd-ports-gnome-94cde1d34cf94c367e97249077fa13c375553631.tar.gz freebsd-ports-gnome-94cde1d34cf94c367e97249077fa13c375553631.tar.zst freebsd-ports-gnome-94cde1d34cf94c367e97249077fa13c375553631.zip |
Make OpenSSL support optional + minor Makefile nits.
PR: 172897
Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com>
Feature safe: yes
Diffstat (limited to 'net')
-rw-r--r-- | net/haproxy-devel/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/net/haproxy-devel/Makefile b/net/haproxy-devel/Makefile index cb0553ab690e..d009e40a7731 100644 --- a/net/haproxy-devel/Makefile +++ b/net/haproxy-devel/Makefile @@ -23,17 +23,17 @@ USE_GMAKE= YES SUB_FILES= pkg-message MAN1= haproxy.1 -OPTIONS_DEFINE= PCRE +OPTIONS_DEFINE= PCRE OPENSSL OPTIONS_SINGLE= PCRE OPTIONS_SINGLE_PCRE= DPCRE SPCRE -DPCRE_DESC= Link dynamically -SPCRE_DESC= Link statically -OPTIONS_DEFAULT=PCRE DPCRE +DPCRE_DESC= Link dynamically +SPCRE_DESC= Link statically +OPTIONS_DEFAULT= PCRE DPCRE OPENSSL .include <bsd.port.options.mk> MAKE_ARGS= TARGET=freebsd DEFINE=-DFREEBSD_PORTS USE_GETADDRINFO=1 \ - USE_OPENSSL=1 CC="${CC}" CFLAGS="${CFLAGS}" + CC="${CC}" CFLAGS="${CFLAGS}" .if ${PORT_OPTIONS:MPCRE} LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre @@ -46,6 +46,11 @@ MAKE_ARGS+= "USE_STATIC_PCRE=1" .endif .endif +.if ${PORT_OPTIONS:MOPENSSL} +USE_OPENSSL= yes +MAKE_ARGS+= USE_OPENSSL=1 +.endif + do-install: @${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin/ @${INSTALL_MAN} ${WRKSRC}/doc/haproxy.1 ${MAN1PREFIX}/man/man1 |