OS X: support homebrew by MACLIBDIR=/usr/local/lib
authorRudolf Polzer <divverent@alientrap.org>
Mon, 23 Jan 2012 19:29:05 +0000 (20:29 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 23 Jan 2012 19:29:05 +0000 (20:29 +0100)
Makefile

index 3323a90..35ca718 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -197,11 +197,11 @@ ifeq ($(OS),Darwin)
        CPPFLAGS_COMMON += -DPOSIX -DXWINDOWS
        CFLAGS_COMMON += -fPIC
        CXXFLAGS_COMMON += -fno-exceptions -fno-rtti
-       CPPFLAGS_COMMON += -I/opt/local/include -I/sw/include -I/usr/X11R6/include
-       LDFLAGS_COMMON += -L/opt/local/lib -L/sw/lib -L/usr/X11R6/lib
+       MACLIBDIR ?= /opt/local/lib
+       CPPFLAGS_COMMON += -I$(MACLIBDIR)/../include -I/usr/X11R6/include
+       LDFLAGS_COMMON += -L$(MACLIBDIR) -L/usr/X11R6/lib
        LDFLAGS_DLL += -dynamiclib -ldl
        EXE ?= ppc
-       MACLIBDIR ?= /opt/local/lib
        A = a
        DLL = dylib
        MWINDOWS =