Module: kamailio Branch: master Commit: afcab24d999fa999fbc99cda607423cde9fa8714 URL: https://github.com/kamailio/kamailio/commit/afcab24d999fa999fbc99cda607423cd...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: GitHub noreply@github.com Date: 2022-05-31T18:43:31+02:00
Merge pull request #3130 from drTr0jan/fix-freebsd
Fix Makefile.groups and SLACK for build on FreeBSD
---
Modified: src/Makefile.groups Modified: src/modules/slack/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/afcab24d999fa999fbc99cda607423cd... Patch: https://github.com/kamailio/kamailio/commit/afcab24d999fa999fbc99cda607423cd...
---
diff --git a/src/Makefile.groups b/src/Makefile.groups index c388489a66..bd111ca7b5 100644 --- a/src/Makefile.groups +++ b/src/Makefile.groups @@ -38,7 +38,7 @@ mod_list_dbuid=db2_ops uid_auth_db uid_avp_db uid_domain uid_gflags \ uid_uri_db
# - modules for devel purposes -mod_list_devel=malloc_test print print_lib +mod_list_devel=misctest print print_lib
# - modules depending on pcre3 library mod_list_pcre=dialplan lcr regex diff --git a/src/modules/slack/Makefile b/src/modules/slack/Makefile index 9bc748a2e5..a4f0c1ff81 100644 --- a/src/modules/slack/Makefile +++ b/src/modules/slack/Makefile @@ -8,5 +8,21 @@ include ../../Makefile.defs auto_gen= NAME=slack.so
+ifeq ($(CROSS_COMPILE),) +CURL_BUILDER=$(shell \ + if pkg-config --exists libcurl; then \ + echo 'pkg-config libcurl'; \ + else \ + which curl-config; \ + fi) +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