aboutsummaryrefslogtreecommitdiffstats
path: root/databases/ruby-odbc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/ruby-odbc/Makefile')
-rw-r--r--databases/ruby-odbc/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/databases/ruby-odbc/Makefile b/databases/ruby-odbc/Makefile
index 046b02107c05..0e69d32d76c3 100644
--- a/databases/ruby-odbc/Makefile
+++ b/databases/ruby-odbc/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= odbc
-PORTVERSION= 0.5
+PORTVERSION= 0.6
CATEGORIES= databases ruby
MASTER_SITES= http://www.ch-werner.de/rubyodbc/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
@@ -20,16 +20,14 @@ LIB_DEPENDS= odbc.1:${PORTSDIR}/databases/unixODBC
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-CONFIGURE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
-CONFIGURE_ARGS= --with-cflags="${PTHREAD_CFLAGS}"
+RUBY_WITH_PTHREAD= yes
+
+CONFIGURE_ARGS= --with-pthread-cflags="${PTHREAD_CFLAGS}" \
+ --with-pthread-libs="${PTHREAD_LIBS}"
INSTALL_TARGET= site-install
DOCS_EN= ChangeLog README doc/odbc.html
-post-patch:
- ${RUBY} -i -pe '/require \x27mkmf\x27/ and $$_ += "$$libs.sub!(/-lc\\b/, ENV[\x27PTHREAD_LIBS\x27])\n"' \
- ${WRKSRC}/${RUBY_EXTCONF}
-
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}