summaryrefslogtreecommitdiffstats
path: root/databases/gtksql/files
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>1999-03-20 05:28:38 +0000
committertaoka <taoka@FreeBSD.org>1999-03-20 05:28:38 +0000
commite8dc5f9eb913d75feb02d37e04be378e1233c563 (patch)
tree1a8e2ae7d7c868c366660e262faff1d2f5306e39 /databases/gtksql/files
parentb0d41bef88850f7c90c74f95e45050fec1b3599f (diff)
downloadFreeBSD-ports-e8dc5f9eb913d75feb02d37e04be378e1233c563.zip
FreeBSD-ports-e8dc5f9eb913d75feb02d37e04be378e1233c563.tar.gz
Graphical query tool for PostgreSQL.
PR: ports/8767 Submitted by: Andrey Zakhvatov andy@icc.surw.chel.su
Diffstat (limited to 'databases/gtksql/files')
-rw-r--r--databases/gtksql/files/patch-aa53
1 files changed, 53 insertions, 0 deletions
diff --git a/databases/gtksql/files/patch-aa b/databases/gtksql/files/patch-aa
new file mode 100644
index 0000000..766a6b2
--- /dev/null
+++ b/databases/gtksql/files/patch-aa
@@ -0,0 +1,53 @@
+--- 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
+-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
+
+ # 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
+
+ OBJS = $(MOBJS) $(DBOBJS)
+-CFLAGS = $(MCFLAGS) $(DBFLAGS)
++CFLAGS+= $(DBFLAGS)
+
+-GTKLIBS = `gtk-config --libs`
+-GTKCFLAGS = `gtk-config --cflags`
++GTKLIBS = `gtk10-config --libs`
++GTKCFLAGS = `gtk10-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:
OpenPOWER on IntegriCloud