Module: kamailio
Branch: master
Commit: 881e3e1e195858d36d863a32f3c40f1cb83c8d9d
URL:
https://github.com/kamailio/kamailio/commit/881e3e1e195858d36d863a32f3c40f1…
Author: drTr0jan <drtr0jan(a)yandex.ru>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2022-06-01T15:31:13+02:00
lost: Makefile - support for FreeBSD build
- added libcurl deps.
---
Modified: src/modules/lost/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/881e3e1e195858d36d863a32f3c40f1…
Patch:
https://github.com/kamailio/kamailio/commit/881e3e1e195858d36d863a32f3c40f1…
---
diff --git a/src/modules/lost/Makefile b/src/modules/lost/Makefile
index 30c12ce655..b847094e1c 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