aboutsummaryrefslogtreecommitdiff
path: root/databases/rubygem-activerecord
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-01-11 22:05:13 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-01-11 22:05:13 +0000
commitf0bbc5549847636f4855a852391d983d21ba36b9 (patch)
tree59e939c7f40e98b12bb2925e7f40b77cf109f817 /databases/rubygem-activerecord
parentb7899c7f1914fe429a1cb3ad0d80697907d811df (diff)
Notes
Diffstat (limited to 'databases/rubygem-activerecord')
-rw-r--r--databases/rubygem-activerecord/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/databases/rubygem-activerecord/Makefile b/databases/rubygem-activerecord/Makefile
index 050925cceece..e7028ee857a3 100644
--- a/databases/rubygem-activerecord/Makefile
+++ b/databases/rubygem-activerecord/Makefile
@@ -1,7 +1,4 @@
-# Ports collection makefile for: gem-activerecord
-# Date created: 27 May 2005
-# Whom: Jonathan Weiss (<jw@innerewut.de>)
-#
+# Created by: Jonathan Weiss (<jw@innerewut.de>)
# $FreeBSD$
PORTNAME= activerecord
@@ -21,23 +18,23 @@ USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
-OPTIONS= \
- NATIVE_MYSQL "Use native MySQL bindings" Off \
- NATIVE_POSTGRESQL "Use native PostgreSQL bindings" Off \
- NATIVE_SQLITE3 "Use native SQLite3 bindings" Off
+OPTIONS_DEFINE= MYSQL PGSQL SQLITE3
+MYSQL_DESC= Use native MySQL bindings
+PGSQL_DESC= Use native PostgreSQL bindings
+SQLITE3_DESC= Use native SQLite3 bindings
OPTIONSFILE= ${PORT_DBDIR}/rubygem-${PORTNAME}/options
.include <bsd.port.options.mk>
-.if defined(WITH_NATIVE_MYSQL)
+.if ${PORT_OPTIONS:MMYSQL}
RUN_DEPENDS+= ${RUBY_PKGNAMEPREFIX}mysql>0:${PORTSDIR}/databases/ruby-mysql
.endif
-.if defined(WITH_NATIVE_POSTGRESQL)
+.if ${PORT_OPTIONS:MPGSQL}
RUN_DEPENDS+= rubygem-pg>=0:${PORTSDIR}/databases/rubygem-pg
.endif
-.if defined(WITH_NATIVE_SQLITE3)
+.if ${PORT_OPTIONS:MSQLITE3}
RUN_DEPENDS+= rubygem-sqlite3>=1.2.1:${PORTSDIR}/databases/rubygem-sqlite3
.endif