summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Revel <mmu_man@netsurf-browser.org>2011-05-06 23:58:58 +0000
committerFrançois Revel <mmu_man@netsurf-browser.org>2011-05-06 23:58:58 +0000
commit0cc1dade3c6b7c560f0472f0feeaef5065417416 (patch)
treeaa6ee1c0c3d488185589632d128934af605c2bcb
parent6b0982c2e35a539855ac03b77c4626fbfecd5f4d (diff)
downloadnetsurf-0cc1dade3c6b7c560f0472f0feeaef5065417416.tar.gz
netsurf-0cc1dade3c6b7c560f0472f0feeaef5065417416.tar.bz2
When passed WITH_MACPORTS to make, add /opt/local/{include,lib} to the search paths for Cocoa builds.
svn path=/trunk/netsurf/; revision=12286
-rw-r--r--cocoa/Makefile.target5
1 files changed, 5 insertions, 0 deletions
diff --git a/cocoa/Makefile.target b/cocoa/Makefile.target
index 367278087..53ec553d6 100644
--- a/cocoa/Makefile.target
+++ b/cocoa/Makefile.target
@@ -17,6 +17,11 @@
# shut up zconf.h and zlib.h
#CFLAGS += -D_LARGEFILE64_SOURCE=1
+ifneq ($(WITH_MACPORTS),)
+ LDFLAGS += -L/opt/local/lib
+ CFLAGS += -I/opt/local/include
+endif
+
# for timerisset()
CFLAGS += -D_DARWIN_C_SOURCE