$OpenBSD: patch-libImaging_Makefile_in,v 1.2 2003/12/27 23:40:18 jose Exp $
--- libImaging/Makefile.in.orig	2002-03-10 11:57:40.000000000 -0500
+++ libImaging/Makefile.in	2003-12-21 23:07:20.000000000 -0500
@@ -30,7 +30,7 @@ LIBS=		@LIBS@ @LIBM@
 # Other things that are customizable but not by configure
 
 INCLDIR=	$(srcdir)/.
-JPEGINCLUDE=	/usr/local/include
+JPEGINCLUDE=	${LOCALBASE}/include
 OPT=		@OPT@
 #OPT=		-g
 CFLAGS=		$(OPT) -I$(INCLDIR) -I$(JPEGINCLUDE) $(DEFS)
@@ -81,7 +81,7 @@ LIB=		libImaging.a
 all:		coretest $(LIB)
 
 coretest:	coretest.o $(LIB)
-		$(CC) -o coretest coretest.o $(LIB) $(LIBS)
+		$(CC) -o coretest coretest.o -L${LOCALBASE}/lib $(LIB) $(LIBS)
 
 $(LIB):		$& $(OBJS)
 		-rm -f $(LIB)
@@ -120,7 +120,7 @@ Imaging_wrap.c:
 		wrap -python -dnone Imaging.i
 
 exercise:	Imaging_wrap.c	
-		gcc -I../../../Include Imaging_wrap.c -c
+		${CC} -I../../../Include Imaging_wrap.c -c
 		ld -shared -expect_unresolved "*" Imaging_wrap.o\
 			libImaging.a -o Imaging.so
 		python exerciseImaging.py
