1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-07 02:06:57 +00:00
freebsd-ports/www/mod_ruby/Makefile

73 lines
2.0 KiB
Makefile
Raw Normal View History

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= mod_ruby
2008-11-09 08:18:50 +00:00
PORTVERSION= 1.3.0
PORTREVISION= 3
CATEGORIES= www ruby
2012-07-28 19:41:21 +00:00
MASTER_SITES= http://www.modruby.net/archive/ \
ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
2005-11-13 09:18:12 +00:00
MAINTAINER= dinoex@FreeBSD.org
2003-02-18 05:42:05 +00:00
COMMENT= An Apache module that embeds Ruby interpreter within
MAKE_JOBS_SAFE= yes
USE_APACHE= 22
2000-09-07 07:44:38 +00:00
USE_RUBY= yes
USE_PERL5_BUILD= yes
CONFIGURE_ARGS= --with-apxs="${APXS}"
CFLAGS+= -DONIG_ESCAPE_REGEX_T_COLLISION
2002-11-04 00:11:00 +00:00
MAKE_ARGS= RUBY="${RUBY}"
2001-06-04 15:57:50 +00:00
INSTALL_TARGET= site-install
RUBY_RD_FILES= # empty
2004-12-25 22:07:19 +00:00
DOCS_EN= COPYING ChangeLog LEGAL LICENSE.apreq NOTICE \
README.en doc/default.css doc/*.en.*
2002-04-22 21:02:24 +00:00
DOCS_JA= README.ja doc/default.css doc/*.ja.*
.include <bsd.port.pre.mk>
2006-03-20 20:16:46 +00:00
.if ${APACHE_VERSION} > 20
CONFIGURE_ARGS+= --with-apr-includes="`${LOCALBASE}/bin/apr-1-config --includedir`"
.endif
do-configure:
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_FLAGS} configure.rb ${CONFIGURE_ARGS}
.if !defined(WITHOUT_PTHREADS) && defined(WITH_PTHREADS)
# 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 19:22:24 +00:00
PKGNAMESUFFIX= -pthreads
2006-01-24 14:40:42 +00:00
.endif
post-install: doc-install
${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf `${APXS} -q SYSCONFDIR`/httpd.conf.${PORTNAME}
# 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}
doc-install:
.if !defined(NOPORTDOCS)
.if !defined(RUBY_NO_RD_HTML)
cd ${WRKSRC}/doc; ${MAKE}
.endif
2002-10-06 21:38:34 +00:00
${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
2002-10-06 21:38:34 +00:00
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
2002-10-06 21:38:34 +00:00
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>