From fee7b899e71f6d51df91d525dc16e814540a06d2 Mon Sep 17 00:00:00 2001 From: pav Date: Sun, 29 Jan 2006 12:01:19 +0000 Subject: - Add OPTIONonal support for fcgi and memcache-client PR: ports/92358 Submitted by: Jonathan Weiss (maintainer) --- www/rubygem-rails/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'www') diff --git a/www/rubygem-rails/Makefile b/www/rubygem-rails/Makefile index deaa26c9f0f3..a5bd96d5d9d7 100644 --- a/www/rubygem-rails/Makefile +++ b/www/rubygem-rails/Makefile @@ -20,6 +20,22 @@ BUILD_DEPENDS= ${LOCALBASE}/${SPEC_DIR}/rake-0.6.2.gemspec:${PORTSDIR}/devel/rub ${LOCALBASE}/${SPEC_DIR}/activerecord-1.13.2.gemspec:${PORTSDIR}/databases/rubygem-activerecord RUN_DEPENDS= ${BUILD_DEPENDS} +OPTIONS= FCGI "FastCGI support" Off\ + MEMCACHE_CLIENT "MemCache-Client support" Off +OPTIONSFILE= ${PORT_DBDIR}/rubygem-${PORTNAME}/options + +# to get RUBY_SITEARCHLIBDIR +USE_RUBY= yes + .include + +.if defined(WITH_FCGI) +RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/fcgi.so:${PORTSDIR}/www/ruby-fcgi +.endif + +.if defined(WITH_MEMCACHE_CLIENT) +RUN_DEPENDS+= ${LOCALBASE}/${SPEC_DIR}/memcache-client-1.0.3.gemspec:${PORTSDIR}/databases/rubygem-memcache-client +.endif + .include "${PORTSDIR}/devel/ruby-gems/Makefile.common" .include -- cgit