mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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 <domi@saargate.de>
This commit is contained in:
parent
c9d2c0c054
commit
77a99f40eb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78266
2 changed files with 7 additions and 6 deletions
|
@ -20,6 +20,7 @@ WITH_MYSQL= yes
|
|||
|
||||
USE_X_PREFIX= yes
|
||||
USE_GTK= yes
|
||||
USE_REINPLACE= yes
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
@ -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:
|
||||
|
|
|
@ -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...
|
||||
|
|
Loading…
Add table
Reference in a new issue