diff options
author | steve <steve@FreeBSD.org> | 1999-08-01 02:41:02 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-08-01 02:41:02 +0000 |
commit | 3011c7ddb25d63d5e79e2465e3f539025a7829cd (patch) | |
tree | fa9a1980b0f2299d3ae43a0c0b6fac3a4f768305 /databases/gtksql/files | |
parent | 71d7d8517266b31235095846cd8eff2ac181c537 (diff) | |
download | FreeBSD-ports-3011c7ddb25d63d5e79e2465e3f539025a7829cd.zip FreeBSD-ports-3011c7ddb25d63d5e79e2465e3f539025a7829cd.tar.gz |
Update to version 0.3.
PR: 12820
Submitted by: Dominik Brettnacher <domi@saargate.de>
Diffstat (limited to 'databases/gtksql/files')
-rw-r--r-- | databases/gtksql/files/patch-aa | 71 |
1 files changed, 26 insertions, 45 deletions
diff --git a/databases/gtksql/files/patch-aa b/databases/gtksql/files/patch-aa index 766a6b2..dcf697d 100644 --- a/databases/gtksql/files/patch-aa +++ b/databases/gtksql/files/patch-aa @@ -1,53 +1,34 @@ ---- Makefile.orig Sat Mar 20 13:36:17 1999 -+++ Makefile Sat Mar 20 13:36:17 1999 -@@ -1,8 +1,23 @@ -+# -+# C compiler -+# -+CC?= gcc -+ -+# -+# Local packages -+# -+LOCALBASE?= /usr/local -+ -+# -+# Installation prefix -+# -+PREFIX?= $(LOCALBASE) -+ - # Here, what you need for Pgsql +--- Makefile.orig Mon Jul 26 19:30:44 1999 ++++ Makefile Mon Jul 26 19:41:39 1999 +@@ -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 -+PGSQLIBS = -L$(LOCALBASE)/pgsql/lib -lpq -lcrypt -+PGSQLCFLAGS = -I$(LOCALBASE)/pgsql/include - # Your favorite compilation options here :-) --MCFLAGS = -Wall -O -g -+CFLAGS?= -Wall -O -g +-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 - # The database modules you want to be built - DBOBJS = postgres.o -@@ -12,19 +27,19 @@ - MOBJS = main.o queries.o dialogs.o tables.o common.o export.o status.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 - OBJS = $(MOBJS) $(DBOBJS) --CFLAGS = $(MCFLAGS) $(DBFLAGS) -+CFLAGS+= $(DBFLAGS) + # 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 = `gtk10-config --libs` -+GTKCFLAGS = `gtk10-config --cflags` ++GTKLIBS = `gtk12-config --libs` ++GTKCFLAGS = `gtk12-config --cflags` all: $(OBJS) -- gcc -o gtksql $(OBJS) $(PGSQLIBS) $(GTKLIBS) $(CFLAGS) -+ $(CC) -o gtksql $(OBJS) $(PGSQLIBS) $(GTKLIBS) $(CFLAGS) - - clean: - rm *.o gtksql - - install: all -- cp gtksql $(DESTDIR)usr/bin/ -+ cp gtksql $(PREFIX)/bin - - .c.o: + gcc -o gtksql $(OBJS) $(DBSQLIBS) $(GTKLIBS) $(CFLAGS) $(LDFLAGS) |