summaryrefslogtreecommitdiff
path: root/net/haproxy/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'net/haproxy/options.mk')
-rw-r--r--net/haproxy/options.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/haproxy/options.mk b/net/haproxy/options.mk
new file mode 100644
index 00000000000..cc68f8856a8
--- /dev/null
+++ b/net/haproxy/options.mk
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.1.2.2 2014/09/13 18:13:24 tron Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.haproxy
+PKG_SUPPORTED_OPTIONS= pcre ssl
+PKG_SUGGESTED_OPTIONS= pcre
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Use libpcre rather than libc for header processing regexp
+###
+.if !empty(PKG_OPTIONS:Mpcre)
+. include "../../devel/pcre/buildlink3.mk"
+BUILD_MAKE_FLAGS+= USE_PCRE=1
+.endif
+
+###
+### Support OpenSSL for termination.
+###
+.if !empty(PKG_OPTIONS:Mssl)
+. include "../../security/openssl/buildlink3.mk"
+BUILD_MAKE_FLAGS+= USE_OPENSSL=1
+.endif