Add some help to the OSX makefile if one wants to compile with

homebrew for the dependencies instead of macports.  Thanks Kyle Isom
<kyle@tyrfingr.is> for initially doing it.
This commit is contained in:
John C. Vernaleo 2013-06-10 16:30:12 -04:00
parent 21a0870e7d
commit 3f810281df

View file

@ -1,8 +1,16 @@
# 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 INCFLAGS+= -I/opt/local/include/freetype2 -I/opt/local/include
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+= -O2 -Wall -g -D_GNU_SOURCE -D__OSX__ -I. -I.. ${INCFLAGS}
CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\" 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
PREFIX?= /usr/local PREFIX?= /usr/local
BINDIR?= $(PREFIX)/bin BINDIR?= $(PREFIX)/bin