diff options
author | Beech Rintoul <beech@FreeBSD.org> | 2008-04-03 20:19:01 +0000 |
---|---|---|
committer | Beech Rintoul <beech@FreeBSD.org> | 2008-04-03 20:19:01 +0000 |
commit | 806b71e83b1e6ba6738f3012403f23f50b9058b1 (patch) | |
tree | 7f7332b6ae026b3d4dca39aead718b26a50b7314 | |
parent | - Use PREFIX for qemu-ifup, install default scripts, bump PORTREVISION [1] (diff) |
- Enable mimeTeX functionality
PR: ports/122178
Submitted by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
Approved by: Javier MartÃn Rueda <jmrueda@diatel.upm.es> (maintainer)
-rw-r--r-- | www/moodle/Makefile | 10 | ||||
-rw-r--r-- | 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 <bsd.port.pre.mk> @@ -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 <bsd.port.pre.mk> @@ -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} |