$NetBSD: patch-aa,v 1.5 2000/04/09 03:53:51 jlam Exp $

--- Makefile.orig	Sat Jun  5 09:05:36 1999
+++ Makefile	Fri Apr  7 20:44:08 2000
@@ -4,14 +4,14 @@
 
 # Comment out the variables for the databases that you do not want
 # Here, what you need for PostgreSQL
-PGSQLIBS    = -L/usr/local/pgsql/lib -lpq
-PGSQLCFLAGS = -I/usr/local/pgsql/include -DUSE_POSTGRESQL
+PGSQLIBS    = -L${LOCALBASE}/lib -lpq
+PGSQLCFLAGS = -I${LOCALBASE}/include/pgsql -DUSE_POSTGRESQL
 PGSQLOBJS   = postgres.o
 
 # Here, what you need for MySQL
-MYSQLIBS    = -L/usr/lib/mysql -lmysqlclient
-MYSQLCFLAGS = -I/usr/include/mysql -DUSE_MYSQL
-MYSQLOBJS   = mysql.o
+#MYSQLIBS    = -L/usr/lib/mysql -lmysqlclient
+#MYSQLCFLAGS = -I/usr/include/mysql -DUSE_MYSQL
+#MYSQLOBJS   = mysql.o
 
 # Nothing to change below this point...
 DBSQLIBS = $(PGSQLIBS) $(MYSQLIBS)
@@ -24,8 +24,8 @@
 OBJS    = $(MOBJS) $(DBSQLOBJS)
 CFLAGS  = $(MCFLAGS) $(DBSQLFLAGS)
 
-GTKLIBS     = `gtk-config --libs`
-GTKCFLAGS   = `gtk-config --cflags`
+GTKLIBS     = `${X11BASE}/bin/gtk-config --libs`
+GTKCFLAGS   = `${X11BASE}/bin/gtk-config --cflags`
 
 all: $(OBJS)
 	gcc -o gtksql $(OBJS) $(DBSQLIBS) $(GTKLIBS) $(CFLAGS) $(LDFLAGS)
@@ -34,7 +34,7 @@
 	rm -f *.o gtksql
 
 install: all
-	cp gtksql $(DESTDIR)usr/bin/
+	${BSD_INSTALL_PROGRAM} gtksql ${PREFIX}/bin
 
 .c.o: 
 	gcc $(CFLAGS) $(GTKCFLAGS) $(DBSQLCFLAGS) -c $*.c -o ./$*.o