summaryrefslogtreecommitdiff
path: root/sysutils/grok/files/patch-Makefile
blob: 784a0be3d9652c46d5afa0bec7f4ad247c10233f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- Makefile.orig	2009-12-25 20:50:34.181480177 -0500
+++ Makefile	2009-12-25 20:51:40.171173802 -0500
@@ -12,7 +12,7 @@
 # On FreeBSD, you may want to set GPERF=/usr/local/bin/gperf since
 # the base system gperf is too old.
 ifeq ($(PLATFORM), FreeBSD)
-GPERF?=/usr/local/bin/gperf
+GPERF?=${LOCALBASE}/bin/gperf
 else
 GPERF?=/usr/bin/gperf
 endif
@@ -28,8 +28,8 @@
 LDFLAGS+=-lpcre -levent -rdynamic -ltokyocabinet
 
 # Sane includes
-CFLAGS+=-I/usr/local/include
-LDFLAGS+=-L/usr/local/lib
+CFLAGS+=-I. -I${LOCALBASE}/include
+LDFLAGS+=-L${LOCALBASE}/lib
 
 # Uncomment to totally disable logging features
 #CFLAGS+=-DNOLOGGING