From: John C. Vernaleo Date: Mon, 10 Jun 2013 20:30:12 +0000 (-0400) Subject: Add some help to the OSX makefile if one wants to compile with X-Git-Url: https://jasonwoof.com/gitweb/?p=spectrwm.git;a=commitdiff_plain;h=3f810281df3bd11273632ccfdb9f766d75778ab0 Add some help to the OSX makefile if one wants to compile with homebrew for the dependencies instead of macports. Thanks Kyle Isom for initially doing it. --- diff --git a/osx/Makefile b/osx/Makefile index bccfd98..899b3fb 100644 --- a/osx/Makefile +++ b/osx/Makefile @@ -1,9 +1,17 @@ +# To use homebrew instead of macports, uncomment the following three lines. +#INCFLAGS+= -I/opt/X11/include +#LDADD+= -lX11 -lXcursor -lXft -L/opt/X11/lib +#INCFLAGS+= -I/usr/local/Cellar/freetype/2.4.10/include/freetype2 + +# To use homebrew instead of macports, comment out the following two lines. INCFLAGS+= -I/opt/local/include/freetype2 -I/opt/local/include -CFLAGS+= -O2 -Wall -g -D_GNU_SOURCE -D__OSX__ -I. -I.. ${INCFLAGS} -CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\" LDADD+= -L/opt/local/lib -lX11 -lXcursor -lXft + LDADD+= -lxcb-keysyms -lxcb-util -lxcb-randr -lX11-xcb -lxcb-xtest -lxcb -lxcb-icccm +CFLAGS+= -O2 -Wall -g -D_GNU_SOURCE -D__OSX__ -I. -I.. ${INCFLAGS} +CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\" + PREFIX?= /usr/local BINDIR?= $(PREFIX)/bin LIBDIR?= $(PREFIX)/lib