1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/databases/gtksql/files/patch-aa
Steve Price 89b7d2a446 - Use GTK_CONFIG/GLIB_CONFIG instead of hardcoded gtk12-config/glib12-config
- Support CC/CFLAGS/PREIFX/LOCALBASE/X11BASE/MAKE/etc. properly

PR:		19623
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-07-07 19:59:26 +00:00

52 lines
1.6 KiB
Plaintext

--- Makefile.orig Sat Jun 5 22:05:36 1999
+++ Makefile Sat Jul 1 16:10:57 2000
@@ -1,17 +1,17 @@
# Your favorite compilation options here :-)
-MCFLAGS = -Wall -O -g
+#MCFLAGS = -Wall -O -g
LDFLAGS = -lcrypt
# 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
-PGSQLOBJS = postgres.o
+#PGSQLIBS = -L/usr/local/pgsql/lib -lpq
+#PGSQLCFLAGS = -I/usr/local/pgsql/include -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/local/lib/mysql -lmysqlclient
+#MYSQLCFLAGS = -I/usr/local/include/mysql -DUSE_MYSQL
+#MYSQLOBJS = mysql.o
# Nothing to change below this point...
DBSQLIBS = $(PGSQLIBS) $(MYSQLIBS)
@@ -22,13 +22,13 @@
config.o mytoolbar.o
OBJS = $(MOBJS) $(DBSQLOBJS)
-CFLAGS = $(MCFLAGS) $(DBSQLFLAGS)
+CFLAGS += $(MCFLAGS) $(DBSQLFLAGS)
-GTKLIBS = `gtk-config --libs`
-GTKCFLAGS = `gtk-config --cflags`
+GTKLIBS = `$(GTK_CONFIG) --libs`
+GTKCFLAGS = `$(GTK_CONFIG) --cflags`
all: $(OBJS)
- gcc -o gtksql $(OBJS) $(DBSQLIBS) $(GTKLIBS) $(CFLAGS) $(LDFLAGS)
+ $(CC) -o gtksql $(OBJS) $(DBSQLIBS) $(GTKLIBS) $(CFLAGS) $(LDFLAGS)
clean:
rm -f *.o gtksql
@@ -37,4 +37,4 @@
cp gtksql $(DESTDIR)usr/bin/
.c.o:
- gcc $(CFLAGS) $(GTKCFLAGS) $(DBSQLCFLAGS) -c $*.c -o ./$*.o
+ $(CC) $(CFLAGS) $(GTKCFLAGS) $(DBSQLCFLAGS) -c $*.c -o ./$*.o