--- Makefile.orig	2006-12-10 11:59:54.000000000 -0600
+++ Makefile	2010-07-29 22:13:59.000000000 -0500
@@ -16,8 +16,8 @@
 
 FORMATDEFS = -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF
 
-LDOPTS = $(MACOS_LDOPTS) -L/usr/X11R6/lib $(PROFILE) $(DEBUG)
-CCOPTS = $(MACOS_CCOPTS) -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall $(OPTIMIZE) $(DEBUG) $(PROFILE) -DMETAPIXEL_VERSION=\"$(VERSION)\"
+LDOPTS = $(MACOS_LDOPTS) -L$(PREFIX)/lib $(PROFILE) $(DEBUG)
+CCOPTS = $(MACOS_CCOPTS) -I$(PREFIX)/include -I$(PREFIX)/include/X11 -I. -Irwimg -Wall $(OPTIMIZE) $(DEBUG) $(PROFILE) -DMETAPIXEL_VERSION=\"$(VERSION)\"
 CC = gcc
 #LIBFFM = -lffm
 
