diff options
Diffstat (limited to 'databases')
-rw-r--r-- | databases/ruby-postgres/Makefile | 5 | ||||
-rw-r--r-- | databases/rubygem-postgres/Makefile | 5 |
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 |