avoid using pkg-config on FreeBSD for CURL=1.

This commit is contained in:
Joris Vink 2019-05-14 20:53:27 +02:00
parent 34e3ba1318
commit 41366ba583

View File

@ -105,6 +105,12 @@ ifneq ("$(PYTHON)", "")
FEATURES_INC+=$(KORE_PYTHON_INC)
endif
OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
ifeq ("$(OSNAME)", "freebsd")
KORE_CURL_LIB=-L/usr/local/lib -lcurl
KORE_CURL_INC=-I/usr/local/include
endif
ifneq ("$(CURL)", "")
S_SRC+=src/curl.c
KORE_CURL_LIB?=$(shell pkg-config --libs libcurl)
@ -120,7 +126,6 @@ ifneq ("$(SANITIZE)", "")
LDFLAGS+=-fsanitize=$(SANITIZE)
endif
OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
ifeq ("$(OSNAME)", "darwin")
CFLAGS+=-I/opt/local/include/ -I/usr/local/opt/openssl/include
LDFLAGS+=-L/opt/local/lib -L/usr/local/opt/openssl/lib