From 806b71e83b1e6ba6738f3012403f23f50b9058b1 Mon Sep 17 00:00:00 2001 From: Beech Rintoul Date: Thu, 3 Apr 2008 20:19:01 +0000 Subject: [PATCH] - Enable mimeTeX functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR: ports/122178 Submitted by: Hiroto Kagotani Approved by: Javier Martín Rueda (maintainer) --- www/moodle/Makefile | 10 +++++++++- www/moodle2/Makefile | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/www/moodle/Makefile b/www/moodle/Makefile index cc8646ea3441..31f9e69b04b8 100644 --- a/www/moodle/Makefile +++ b/www/moodle/Makefile @@ -22,7 +22,8 @@ OPTIONS= MYSQL "Add support for a MySQL database server" Off \ MSSQL "Add support for a MS SQL Server" Off \ ZLIB "Add zip/unzip functionality" On \ NETWORK "Add Moodle Network functionality" Off \ - LDAP "Add LDAP authentication functionality" Off + LDAP "Add LDAP authentication functionality" Off \ + MIMETEX "Add mimeTeX filter functionality" On .include @@ -64,6 +65,10 @@ USE_PHP+= openssl USE_PHP+= ldap .endif +.if !defined(WITHOUT_MIMETEX) +RUN_DEPENDS+= ${PREFIX}/www/cgi-bin/mimetex.cgi:${PORTSDIR}/www/mimetex +.endif + NO_BUILD= yes PLIST= ${WRKDIR}/plist SUB_FILES= pkg-message @@ -92,6 +97,9 @@ do-install: >> ${TMPPLIST} ${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR} @${ECHO_CMD} '@exec ${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR}' >> ${TMPPLIST} +.if !defined(WITHOUT_MIMETEX) + ${LN} -sf ${PREFIX}/www/cgi-bin/mimetex.cgi ${PREFIX}/${MOODLEDIR}/filter/tex/mimetex.freebsd +.endif post-install: @${CAT} ${PKGMESSAGE} diff --git a/www/moodle2/Makefile b/www/moodle2/Makefile index cc8646ea3441..31f9e69b04b8 100644 --- a/www/moodle2/Makefile +++ b/www/moodle2/Makefile @@ -22,7 +22,8 @@ OPTIONS= MYSQL "Add support for a MySQL database server" Off \ MSSQL "Add support for a MS SQL Server" Off \ ZLIB "Add zip/unzip functionality" On \ NETWORK "Add Moodle Network functionality" Off \ - LDAP "Add LDAP authentication functionality" Off + LDAP "Add LDAP authentication functionality" Off \ + MIMETEX "Add mimeTeX filter functionality" On .include @@ -64,6 +65,10 @@ USE_PHP+= openssl USE_PHP+= ldap .endif +.if !defined(WITHOUT_MIMETEX) +RUN_DEPENDS+= ${PREFIX}/www/cgi-bin/mimetex.cgi:${PORTSDIR}/www/mimetex +.endif + NO_BUILD= yes PLIST= ${WRKDIR}/plist SUB_FILES= pkg-message @@ -92,6 +97,9 @@ do-install: >> ${TMPPLIST} ${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR} @${ECHO_CMD} '@exec ${CHMOD} 755 ${PREFIX}/${MOODLEDATADIR}' >> ${TMPPLIST} +.if !defined(WITHOUT_MIMETEX) + ${LN} -sf ${PREFIX}/www/cgi-bin/mimetex.cgi ${PREFIX}/${MOODLEDIR}/filter/tex/mimetex.freebsd +.endif post-install: @${CAT} ${PKGMESSAGE}