aboutsummaryrefslogtreecommitdiff
path: root/net/zerotier/files
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2017-03-07 15:49:27 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2017-03-07 15:49:27 +0000
commitea21911cba71d9fdfc81c9f46ffc13098e3606e8 (patch)
treef01b997790b9ce027e14e11802a39073b089e0c5 /net/zerotier/files
parent7b0cbba52841fd4781a5533dab740cf96fd669e1 (diff)
downloadports-ea21911cba71d9fdfc81c9f46ffc13098e3606e8.tar.gz
ports-ea21911cba71d9fdfc81c9f46ffc13098e3606e8.zip
- Add an option to build network management controller microservice
- Respect CC/CXX and drop superfluous GH_ACCOUNT while I'm at it PR: 215031 (modified) Approved by: maintainer timeout (since 2016-12-03)
Notes
Notes: svn path=/head/; revision=435612
Diffstat (limited to 'net/zerotier/files')
-rw-r--r--net/zerotier/files/patch-make-freebsd.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/zerotier/files/patch-make-freebsd.mk b/net/zerotier/files/patch-make-freebsd.mk
new file mode 100644
index 000000000000..08c1ae43ba63
--- /dev/null
+++ b/net/zerotier/files/patch-make-freebsd.mk
@@ -0,0 +1,25 @@
+--- make-freebsd.mk.orig 2016-07-22 03:29:15 UTC
++++ make-freebsd.mk
+@@ -1,5 +1,5 @@
+-CC=cc
+-CXX=c++
++CC?=cc
++CXX?=c++
+
+ INCLUDES=
+ DEFS=
+@@ -18,6 +18,14 @@ ifeq ($(ZT_ENABLE_CLUSTER),1)
+ DEFS+=-DZT_ENABLE_CLUSTER
+ endif
+
++# Build with ZT_ENABLE_NETWORK_CONTROLLER=1 to build with SQLite network controller
++ifeq ($(ZT_ENABLE_NETWORK_CONTROLLER),1)
++ DEFS+=-DZT_ENABLE_NETWORK_CONTROLLER
++ INCLUDES+=-I$(LOCALBASE)/include
++ LDFLAGS+=-L$(LOCALBASE)/lib -lsqlite3
++ OBJS+=controller/SqliteNetworkController.o
++endif
++
+ # "make debug" is a shortcut for this
+ ifeq ($(ZT_DEBUG),1)
+ DEFS+=-DZT_TRACE