From 77a99f40eb1ce4ca90190cf9d4c5f10e33858bbf Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sat, 5 Apr 2003 07:16:18 +0000 Subject: gtksql fixes: PERL/REINPLACE, postgres, LOCALBASE 1. the port now uses REINPLACE_CMD instead of perl 2. the MySQL and Postgres dependencies are now LOCALBASE-clean 3. PGSQLCFLAGS is updated to track changes in the Postgres tree PR: ports/50502 Submitted by: Dominik Brettnacher --- databases/gtksql/Makefile | 5 +++-- databases/gtksql/files/patch-aa | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'databases') diff --git a/databases/gtksql/Makefile b/databases/gtksql/Makefile index c2da0ba7ce4b..7ccb9db41c22 100644 --- a/databases/gtksql/Makefile +++ b/databases/gtksql/Makefile @@ -20,6 +20,7 @@ WITH_MYSQL= yes USE_X_PREFIX= yes USE_GTK= yes +USE_REINPLACE= yes POSTGRESQL_PORT?= databases/postgresql7 .include @@ -47,10 +48,10 @@ pre-patch: do-configure: .if defined(HAVE_MYSQL) - @${PERL} -i -pe "s/^#MYSQL/MYSQL/g" ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "s/^#MYSQL/MYSQL/g" ${WRKSRC}/Makefile .endif .if defined(HAVE_PGSQL) - @${PERL} -i -pe "s/^#PGSQL/PGSQL/g" ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "s/^#PGSQL/PGSQL/g" ${WRKSRC}/Makefile .endif do-install: diff --git a/databases/gtksql/files/patch-aa b/databases/gtksql/files/patch-aa index a75bec6e00e4..e73f3c071a19 100644 --- a/databases/gtksql/files/patch-aa +++ b/databases/gtksql/files/patch-aa @@ -11,16 +11,16 @@ -PGSQLIBS = -L/usr/local/pgsql/lib -lpq -PGSQLCFLAGS = -I/usr/local/pgsql/include -DUSE_POSTGRESQL -PGSQLOBJS = postgres.o -+#PGSQLIBS = -L/usr/local/lib -lpq -+#PGSQLCFLAGS = -I/usr/local/include/pgsql -DUSE_POSTGRESQL ++#PGSQLIBS = -L$(LOCALBASE)/lib -lpq ++#PGSQLCFLAGS = -I$(LOCALBASE)/include/postgresql/internal -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 ++#MYSQLIBS = -L$(LOCALBASE)/lib/mysql -lmysqlclient ++#MYSQLCFLAGS = -I$(LOCALBASE)/include/mysql -DUSE_MYSQL +#MYSQLOBJS = mysql.o # Nothing to change below this point... -- cgit v1.2.3