2000-08-11 18:39:39 +02:00
|
|
|
# New ports collection makefile for: mod_ruby
|
|
|
|
# Date created: 12 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mod_ruby
|
2006-12-25 21:19:17 +01:00
|
|
|
PORTVERSION= 1.2.6
|
2000-08-16 14:21:24 +02:00
|
|
|
CATEGORIES= www ruby
|
2000-12-11 20:54:50 +01:00
|
|
|
MASTER_SITES= http://www.modruby.net/archive/
|
2000-08-11 18:39:39 +02:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2005-11-13 10:18:12 +01:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-18 06:42:05 +01:00
|
|
|
COMMENT= An Apache module that embeds Ruby interpreter within
|
2000-08-11 18:39:39 +02:00
|
|
|
|
2003-01-01 17:30:22 +01:00
|
|
|
LIB_DEPENDS= eruby.10:${PORTSDIR}/textproc/eruby
|
2000-09-07 09:44:38 +02:00
|
|
|
|
2006-03-20 21:16:46 +01:00
|
|
|
USE_APACHE= 1.3+
|
2000-09-07 09:44:38 +02:00
|
|
|
USE_RUBY= yes
|
2006-05-15 13:46:31 +02:00
|
|
|
USE_PERL5_BUILD= yes
|
2000-08-11 18:39:39 +02:00
|
|
|
|
2001-06-04 17:57:50 +02:00
|
|
|
CONFIGURE_ARGS= --with-apxs="${APXS}" \
|
2000-09-22 07:05:43 +02:00
|
|
|
--enable-eruby=yes \
|
2001-06-04 17:57:50 +02:00
|
|
|
--with-eruby-includes="${LOCALBASE}/include" \
|
|
|
|
--with-eruby-libraries="${LOCALBASE}/lib"
|
2002-11-04 01:11:00 +01:00
|
|
|
MAKE_ARGS= RUBY="${RUBY}"
|
2001-06-04 17:57:50 +02:00
|
|
|
INSTALL_TARGET= site-install
|
2000-09-10 12:55:05 +02:00
|
|
|
|
2002-12-06 18:17:38 +01:00
|
|
|
RUBY_RD_FILES= # empty
|
|
|
|
|
2004-12-25 23:07:19 +01:00
|
|
|
DOCS_EN= COPYING ChangeLog LEGAL LICENSE.apreq NOTICE \
|
|
|
|
README.en doc/default.css doc/*.en.*
|
2002-04-22 23:02:24 +02:00
|
|
|
DOCS_JA= README.ja doc/default.css doc/*.ja.*
|
2000-08-11 18:39:39 +02:00
|
|
|
|
2006-01-15 17:09:52 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-03-20 21:16:46 +01:00
|
|
|
.if ${APACHE_VERSION} > 20
|
2006-03-18 16:54:34 +01:00
|
|
|
CONFIGURE_ARGS+= --with-apr-includes="`${LOCALBASE}/bin/apr-1-config --includedir`"
|
|
|
|
.endif
|
|
|
|
|
2000-08-11 18:39:39 +02:00
|
|
|
do-configure:
|
2001-05-24 13:21:20 +02:00
|
|
|
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_FLAGS} configure.rb ${CONFIGURE_ARGS}
|
2006-03-31 16:34:55 +02:00
|
|
|
.if !defined(WITHOUT_PTHREADS) && defined(WITH_PTHREADS)
|
2006-01-15 17:09:52 +01:00
|
|
|
# dirty hack to force mod_ruby.so linked with lpthread.so, otherwise unresolved
|
|
|
|
# symbols happen
|
|
|
|
@${REINPLACE_CMD} -e 's|-pthread|-pthread -lpthread|' ${WRKSRC}/Makefile
|
2008-06-01 21:22:24 +02:00
|
|
|
|
2006-03-31 16:34:55 +02:00
|
|
|
PKGNAMESUFFIX= -pthreads
|
2006-01-24 15:40:42 +01:00
|
|
|
.endif
|
2000-08-11 18:39:39 +02:00
|
|
|
|
2002-12-06 18:17:38 +01:00
|
|
|
post-install: doc-install
|
2002-07-12 07:00:41 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf `${APXS} -q SYSCONFDIR`/httpd.conf.${PORTNAME}
|
2003-02-19 10:31:10 +01:00
|
|
|
# Would be nice if we could use PLIST_SUB here..
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e 's,%%LIBEXECDIR%%,'`${APXS} -q LIBEXECDIR | ${SED} 's:${LOCALBASE}/::'`',g;' \
|
|
|
|
-e 's,%%SYSCONFDIR%%,'`${APXS} -q SYSCONFDIR | ${SED} 's:${LOCALBASE}/::'`',g;' \
|
|
|
|
${TMPPLIST}
|
2002-12-06 18:17:38 +01:00
|
|
|
|
|
|
|
doc-install:
|
2000-08-11 18:39:39 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-12-06 18:17:38 +01:00
|
|
|
.if !defined(RUBY_NO_RD_HTML)
|
|
|
|
cd ${WRKSRC}/doc; ${MAKE}
|
|
|
|
.endif
|
2002-10-06 23:38:34 +02:00
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
2000-08-11 18:39:39 +02:00
|
|
|
.for f in ${DOCS_EN}
|
2002-10-06 23:38:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2000-08-11 18:39:39 +02:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2002-10-06 23:38:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
|
2000-08-11 18:39:39 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2001-03-05 13:35:23 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2006-01-15 17:09:52 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|