aboutsummaryrefslogtreecommitdiffstats
path: root/www/moodle2
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2008-04-04 04:19:01 +0800
committerbeech <beech@FreeBSD.org>2008-04-04 04:19:01 +0800
commite1fef1970bd4c5267bc7b0f2590ac039a30da436 (patch)
tree34f97f4ca24e51720f8bd13c6cad52ce1f534dee /www/moodle2
parent8b0a9915192c1866e738b17a69bc07a09e460d79 (diff)
downloadfreebsd-ports-gnome-e1fef1970bd4c5267bc7b0f2590ac039a30da436.tar.gz
freebsd-ports-gnome-e1fef1970bd4c5267bc7b0f2590ac039a30da436.tar.zst
freebsd-ports-gnome-e1fef1970bd4c5267bc7b0f2590ac039a30da436.zip
- 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)
Diffstat (limited to 'www/moodle2')
-rw-r--r--www/moodle2/Makefile10
1 files changed, 9 insertions, 1 deletions
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}