Module: kamailio
Branch: 5.6
Commit: 46db60f1f4ee02ff5c28eee21b365963830790c7
URL:
https://github.com/kamailio/kamailio/commit/46db60f1f4ee02ff5c28eee21b36596…
Author: drTr0jan <drtr0jan(a)yandex.ru>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-06-16T09:32:03+02:00
lost: Makefile - support for FreeBSD build
- added libcurl deps.
(cherry picked from commit 881e3e1e195858d36d863a32f3c40f1cb83c8d9d)
---
Modified: src/modules/lost/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/46db60f1f4ee02ff5c28eee21b36596…
Patch:
https://github.com/kamailio/kamailio/commit/46db60f1f4ee02ff5c28eee21b36596…
---
diff --git a/src/modules/lost/Makefile b/src/modules/lost/Makefile
index 30c12ce6553..b847094e1ca 100755
--- a/src/modules/lost/Makefile
+++ b/src/modules/lost/Makefile
@@ -16,6 +16,12 @@ XML2CFG=$(shell \
echo 'pkg-config libxml-2.0'; \
fi)
endif
+CURL_BUILDER=$(shell \
+ if pkg-config --exists libcurl; then \
+ echo 'pkg-config libcurl'; \
+ else \
+ which curl-config; \
+ fi)
endif
ifneq ($(XML2CFG),)
@@ -26,4 +32,12 @@ else
LIBS+=-L$(LOCALBASE)/lib -lxml2
endif
+ifneq ($(CURL_BUILDER),)
+ DEFS += $(shell $(CURL_BUILDER) --cflags )
+ LIBS += $(shell $(CURL_BUILDER) --libs)
+else
+ DEFS+=-I$(LOCALBASE)/include
+ LIBS+=-L$(LOCALBASE)/lib -lcurl
+endif
+
include ../../Makefile.modules