2003-01-28 23:03:00 +01:00
|
|
|
# $NetBSD: Makefile,v 1.11 2003/01/28 22:04:25 jlam Exp $
|
2002-10-25 14:58:27 +02:00
|
|
|
#
|
2001-07-01 16:13:48 +02:00
|
|
|
|
|
|
|
DISTNAME= mod_ruby-${VERSION}
|
|
|
|
PKGNAME= ap-${RUBY_PKGNAMEPREFIX}${VERSION}
|
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.modruby.net/archive/
|
|
|
|
|
2001-07-01 16:56:31 +02:00
|
|
|
MAINTAINER= taca@netbsd.org
|
2001-07-01 16:13:48 +02:00
|
|
|
HOMEPAGE= http://www.modruby.net/
|
|
|
|
COMMENT= Apache module that embeds Ruby interpreter within
|
|
|
|
|
2002-10-25 14:58:27 +02:00
|
|
|
USE_BUILDLINK2= YES
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_PKGINSTALL= YES
|
2001-07-01 16:13:48 +02:00
|
|
|
DIST_SUBDIR= ruby
|
2002-10-25 14:58:27 +02:00
|
|
|
USE_RUBY= YES
|
2001-07-01 16:13:48 +02:00
|
|
|
RUBY_REQD= 1.6
|
2002-02-12 15:06:53 +01:00
|
|
|
VERSION= 0.9.7
|
2001-07-01 16:13:48 +02:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= ./configure.rb
|
|
|
|
CONFIGURE_ARGS= --with-apxs="${APXS}" \
|
2002-10-25 14:58:27 +02:00
|
|
|
--with-eruby-includes="${BUILDLINK_PREFIX.ruby-eruby}/include" \
|
|
|
|
--with-eruby-libraries="${BUILDLINK_PREFIX.ruby-eruby}/lib"
|
2002-02-01 15:04:50 +01:00
|
|
|
INSTALL_TARGET= site-install
|
2001-07-01 16:13:48 +02:00
|
|
|
|
2002-01-19 11:20:12 +01:00
|
|
|
CONF_FILES= ${RUBY_EXAMPLESDIR}/mod_ruby/mod_ruby.conf \
|
|
|
|
${LOCALBASE}/etc/httpd/mod_ruby.conf
|
|
|
|
FILES_SUBST+= RUBY_DOCDIR=${RUBY_DOCDIR}
|
|
|
|
FILES_SUBST+= RUBY_EXAMPLESDIR=${RUBY_EXAMPLESDIR}
|
|
|
|
|
|
|
|
DOCS= ChangeLog README.en README.ja
|
2001-07-01 16:13:48 +02:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
${SED} -e 's|/usr/local/apache/libexec|${LOCALBASE}/lib/httpd|g' \
|
|
|
|
${WRKSRC}/examples/httpd.conf > ${WRKDIR}/mod_ruby.conf
|
|
|
|
|
2002-02-01 15:04:50 +01:00
|
|
|
post-install:
|
2001-07-01 16:13:48 +02:00
|
|
|
${APXS} -i -A -n ruby ${WRKSRC}/mod_ruby.so
|
2002-01-19 11:20:12 +01:00
|
|
|
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/mod_ruby
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/mod_ruby.conf ${RUBY_EXAMPLESDIR}/mod_ruby
|
|
|
|
${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/mod_ruby
|
|
|
|
.for f in ${DOCS}
|
2001-07-01 16:13:48 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/mod_ruby
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../lang/ruby-base/Makefile.common"
|
2002-10-25 14:58:27 +02:00
|
|
|
.include "../../lang/ruby-base/buildlink2.mk"
|
|
|
|
.include "../../textproc/ruby-eruby/buildlink2.mk"
|
|
|
|
.include "../../www/apache/buildlink2.mk"
|
2003-01-28 23:03:00 +01:00
|
|
|
|
2001-07-01 16:13:48 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|