1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/net/opensips31/files/patch-modules_presence__xml_Makefile
Andriy 4e429139a0 net/opensips31: New port: Open SIP Server
Includes additional changes on top of submitters patch to improve port

PR:		253844
Approved by:	arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D31765
2021-09-05 20:42:00 +02:00

18 lines
521 B
Plaintext

--- modules/presence_xml/Makefile.orig 2020-07-22 09:42:09 UTC
+++ modules/presence_xml/Makefile
@@ -10,8 +10,12 @@ auto_gen=
NAME=presence_xml.so
ifeq ($(CROSS_COMPILE),)
-LIBS=-lxml2
-DEFS+=-I$(SYSBASE)/include/libxml2
+HAS_XML2CFG=$(shell if which xml2-config >/dev/null 2>/dev/null;then echo YES; fi)
+endif
+
+ifeq ($(HAS_XML2CFG),YES)
+LIBS=$(shell xml2-config --libs)
+DEFS+=$(shell xml2-config --cflags)
else
DEFS+=-I$(SYSBASE)/include/libxml2 -I$(LOCALBASE)/include/libxml2 \
-I$(LOCALBASE)/include