aboutsummaryrefslogtreecommitdiffstats
path: root/databases/rubygem-postgres
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-05-18 03:51:18 +0800
committerknu <knu@FreeBSD.org>2001-05-18 03:51:18 +0800
commit00c76ea7d62b4f366bc3bc90a3522bb0bbf8d6b7 (patch)
treed3edaddabd6c60c4a6c128b1a4276197601cb97e /databases/rubygem-postgres
parent1e63f2b921e48e2d03d3f8e6dad0653cb523862b (diff)
downloadfreebsd-ports-gnome-00c76ea7d62b4f366bc3bc90a3522bb0bbf8d6b7.tar.gz
freebsd-ports-gnome-00c76ea7d62b4f366bc3bc90a3522bb0bbf8d6b7.tar.zst
freebsd-ports-gnome-00c76ea7d62b4f366bc3bc90a3522bb0bbf8d6b7.zip
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/rubygem-postgres')
-rw-r--r--databases/rubygem-postgres/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/databases/rubygem-postgres/Makefile b/databases/rubygem-postgres/Makefile
index 4183ad131abf..2955f887f90d 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