aboutsummaryrefslogtreecommitdiff
path: root/www/mediawiki
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-03-10 13:16:29 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-03-10 13:16:29 +0000
commit3205c887d3327e963b6039fc5648c62e17fc6f18 (patch)
treee56b5a9d5dca9dd6c156580291e0bf2373df261b /www/mediawiki
parentb6b00e1f681a71dda07adc043c6b00cd20e0708e (diff)
downloadports-3205c887d3327e963b6039fc5648c62e17fc6f18.tar.gz
ports-3205c887d3327e963b6039fc5648c62e17fc6f18.zip
Notes
Diffstat (limited to 'www/mediawiki')
-rw-r--r--www/mediawiki/Makefile40
-rw-r--r--www/mediawiki/distinfo6
2 files changed, 37 insertions, 9 deletions
diff --git a/www/mediawiki/Makefile b/www/mediawiki/Makefile
index 45c86752c299..766deb8ebc31 100644
--- a/www/mediawiki/Makefile
+++ b/www/mediawiki/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= mediawiki
-PORTVERSION= 1.11.1
+PORTVERSION= 1.11.2
CATEGORIES= www
MASTER_SITES= http://download.wikimedia.org/mediawiki/1.11/
@@ -15,22 +15,25 @@ COMMENT= The wiki engine used by Wikipedia
CONFLICTS= mediawiki-1.[0-9].* mediawiki-1.1[1-9].*
-NO_BUILD= yes
-USE_MYSQL= yes
-IGNORE_WITH_MYSQL= 323
USE_PHP= iconv mbstring pcre session xml zlib readline
IGNORE_WITH_PHP= 4
WANT_PHP_WEB= yes
MEDIAWIKIDIR?= www/mediawiki
-OPTIONS= PGSQL "Use PostgreSQL instead of MySQL (not funtional)" off \
- LDAP "Use LDAP authentication" off
+OPTIONS= PGSQL "Use PostgreSQL (instead of MySQL)" off \
+ LDAP "Use LDAP authentication" off \
+ TEXVC "Use built-in TeX rendering" off \
+ APC "Use pecl-APC" on \
+ EACCEL "Use eAccelerator (instead of pecl-APC)" off \
+ IMAGICK "Use ImageMagick" off
.include <bsd.port.pre.mk>
.if defined(WITH_PGSQL)
USE_PHP+= pgsql
.else
+IGNORE_WITH_MYSQL= 323
+USE_MYSQL= yes
USE_PHP+= mysql
.endif
@@ -38,6 +41,31 @@ USE_PHP+= mysql
USE_PHP+= ldap
.endif
+.if defined(WITH_TEXVC)
+RUN_DEPENDS+= latex:${PORTSDIR}/print/latex
+BUILD_DEPENDS+= ocaml:${PORTSDIR}/lang/ocaml
+
+USE_GMAKE=yes
+WITH_IMAGICK=yes
+.endif
+
+.if defined(WITH_IMAGICK)
+RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/graphics/pecl-imagick
+.endif
+
+.if defined(WITH_APC) || defined(WITH_EACCEL)
+.if defined(WITH_EACCEL)
+RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/eaccelerator.so:${PORTSDIR}/www/eaccelerator
+.else
+RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:${PORTSDIR}/www/pecl-APC
+.endif
+.endif
+
+do-build:
+.if defined(WITH_TEXVC)
+ @(cd ${WRKSRC}/math && ${GMAKE})
+.endif
+
do-install:
@${MKDIR} ${PREFIX}/${MEDIAWIKIDIR}
${CP} -r ${WRKSRC}/ ${PREFIX}/${MEDIAWIKIDIR}
diff --git a/www/mediawiki/distinfo b/www/mediawiki/distinfo
index c983bb639290..2bc896956bc3 100644
--- a/www/mediawiki/distinfo
+++ b/www/mediawiki/distinfo
@@ -1,3 +1,3 @@
-MD5 (mediawiki-1.11.1.tar.gz) = a7c9c31c3e6ab1d1137930b7dc86b2a7
-SHA256 (mediawiki-1.11.1.tar.gz) = 05173b49b73a289ff532baf4088215756804075394268b733ba2ae4265be9476
-SIZE (mediawiki-1.11.1.tar.gz) = 4885712
+MD5 (mediawiki-1.11.2.tar.gz) = 12e81f27a37b15b9d1ed110d6f48b35f
+SHA256 (mediawiki-1.11.2.tar.gz) = 3516fd7f0069e30b1ed6b6fea3794047ac08baf3cf71085c6943605efafd806f
+SIZE (mediawiki-1.11.2.tar.gz) = 4880707