summaryrefslogtreecommitdiff
path: root/frontends/cocoa/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/cocoa/Makefile')
-rw-r--r--frontends/cocoa/Makefile17
1 files changed, 3 insertions, 14 deletions
diff --git a/frontends/cocoa/Makefile b/frontends/cocoa/Makefile
index 212ed0442..7fdefdf1a 100644
--- a/frontends/cocoa/Makefile
+++ b/frontends/cocoa/Makefile
@@ -4,20 +4,9 @@
POSTEXES += NetSurf.app
-# shut up zconf.h and zlib.h
-#CFLAGS += -D_LARGEFILE64_SOURCE=1
-
-# add Mac Ports include and library paths for openssl
-ifneq ($(shell test -d /opt/local && echo 'yes'),)
- LDFLAGS += -L/opt/local/lib
- CFLAGS += -I/opt/local/include
-else
- # Check for homebrew installation of openssl
- ifneq ($(shell test -d /usr/local/opt/openssl/lib && echo 'yes'),)
- LDFLAGS += -L/usr/local/opt/openssl/lib
- CFLAGS += -I/usr/local/opt/openssl/include
- endif
-endif
+NETSURF_FEATURE_RSVG_CFLAGS := -DWITH_RSVG
+$(eval $(call pkg_config_find_and_add_enabled,RSVG,librsvg-2.0,SVG))
+
SDK_PARAM := $(shell xcodebuild -showsdks | awk '/^$$/{p=0};p; /(OS X|macOS) SDKs:/{p=1}' | head -1 | cut -f3)