summaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-05-17 19:51:18 +0000
committerknu <knu@FreeBSD.org>2001-05-17 19:51:18 +0000
commit00c76ea7d62b4f366bc3bc90a3522bb0bbf8d6b7 (patch)
treed3edaddabd6c60c4a6c128b1a4276197601cb97e /databases
parent1e63f2b921e48e2d03d3f8e6dad0653cb523862b (diff)
downloadFreeBSD-ports-00c76ea7d62b4f366bc3bc90a3522bb0bbf8d6b7.zip
FreeBSD-ports-00c76ea7d62b4f366bc3bc90a3522bb0bbf8d6b7.tar.gz
Add a WITH_OLD_LAYOUT hook for those who still use PostgreSQL with the
old layout. PR: ports/27292 Submitted by: Hoss Firooznia <hoss@lodestone.org>
Diffstat (limited to 'databases')
-rw-r--r--databases/ruby-postgres/Makefile5
-rw-r--r--databases/rubygem-postgres/Makefile5
2 files changed, 10 insertions, 0 deletions
diff --git a/databases/ruby-postgres/Makefile b/databases/ruby-postgres/Makefile
index 4183ad1..2955f88 100644
--- a/databases/ruby-postgres/Makefile
+++ b/databases/ruby-postgres/Makefile
@@ -20,7 +20,12 @@ LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
+.if defined(WITH_OLD_LAYOUT)
+CONFIGURE_ARGS= --with-pgsql-include-dir="${LOCALBASE}/pgsql/include" \
+ --with-pgsql-lib-dir="${LOCALBASE}/pgsql/lib"
+.else
CONFIGURE_ARGS= --with-pgsql-include-dir="${LOCALBASE}/include/pgsql"
+.endif
INSTALL_TARGET= site-install
DOCS_EN= ChangeLog README doc/postgres.html
diff --git a/databases/rubygem-postgres/Makefile b/databases/rubygem-postgres/Makefile
index 4183ad1..2955f88 100644
--- a/databases/rubygem-postgres/Makefile
+++ b/databases/rubygem-postgres/Makefile
@@ -20,7 +20,12 @@ LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
+.if defined(WITH_OLD_LAYOUT)
+CONFIGURE_ARGS= --with-pgsql-include-dir="${LOCALBASE}/pgsql/include" \
+ --with-pgsql-lib-dir="${LOCALBASE}/pgsql/lib"
+.else
CONFIGURE_ARGS= --with-pgsql-include-dir="${LOCALBASE}/include/pgsql"
+.endif
INSTALL_TARGET= site-install
DOCS_EN= ChangeLog README doc/postgres.html
OpenPOWER on IntegriCloud