|
36 | 36 | LIBGIT2_OPTS += -DCURL_INCLUDE_DIRS=$(build_includedir) -DCURL_LIBRARIES="-L$(build_shlibdir) -lcurl"
|
37 | 37 | endif
|
38 | 38 |
|
39 |
| -ifeq ($(OS),Linux) |
| 39 | +ifneq (,$(findstring $(OS),Linux FreeBSD)) |
40 | 40 | LIBGIT2_OPTS += -DUSE_HTTPS=ON -DTLS_BACKEND="mbedTLS" -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
|
41 | 41 | endif
|
42 |
| -ifeq ($(OS),FreeBSD) |
43 |
| -LIBGIT2_OPTS += -DCMAKE_INSTALL_RPATH="\$$ORIGIN" |
44 |
| -endif |
45 | 42 |
|
46 | 43 | # We need to bundle ca certs on linux now that we're using libgit2 with ssl
|
47 |
| -ifeq ($(OS),Linux) |
| 44 | +ifneq (,$(findstring $(OS),Linux FreeBSD)) |
48 | 45 | OPENSSL_DIR=$(shell openssl version -d | cut -d '"' -f 2)
|
49 | 46 | # This certfile location observed on Ubuntu 16.04
|
50 | 47 | ifeq ($(shell [ -e $(OPENSSL_DIR)/certs/ca-certificates.crt ] && echo exists),exists)
|
51 | 48 | CERTFILE=$(OPENSSL_DIR)/certs/ca-certificates.crt
|
52 | 49 | # This certfile location observed on openSUSE Leap 42.1
|
53 | 50 | else ifeq ($(shell [ -e $(OPENSSL_DIR)/ca-bundle.pem ] && echo exists),exists)
|
54 | 51 | CERTFILE=$(OPENSSL_DIR)/ca-bundle.pem
|
55 |
| -# This certfile location observed on Ubuntu 14.04 |
| 52 | +# This certfile location observed on Ubuntu 14.04 and FreeBSD |
56 | 53 | else ifeq ($(shell [ -e $(OPENSSL_DIR)/cert.pem ] && echo exists),exists)
|
57 | 54 | CERTFILE=$(OPENSSL_DIR)/cert.pem
|
58 | 55 | # This certfile location observed on Debian 7
|
59 | 56 | else ifeq ($(shell [ -e $(OPENSSL_DIR)/certs/ca.pem ] && echo exists),exists)
|
60 | 57 | CERTFILE=$(OPENSSL_DIR)/certs/ca.pem
|
61 | 58 | endif
|
62 |
| -endif # Linux |
| 59 | +endif # Linux and FreeBSD |
63 | 60 |
|
64 | 61 | LIBGIT2_SRC_PATH := $(SRCDIR)/srccache/$(LIBGIT2_SRC_DIR)
|
65 | 62 |
|
|
0 commit comments