# Created by: Gerrit Beine # $FreeBSD$ PORTNAME= mediawiki PORTVERSION= 1.23.17 CATEGORIES= www MASTER_SITES= http://releases.wikimedia.org/mediawiki/${PORTVERSION:R}/ PKGNAMESUFFIX= 123 MAINTAINER= wen@FreeBSD.org COMMENT= Wiki engine used by Wikipedia LICENSE= GPLv2 CONFLICTS= mediawiki12[789]-[0-9]* USES= python:run shebangfix SHEBANG_FILES= maintenance/dev/*.sh \ maintenance/hiphop/run-server \ maintenance/language/zhtable/Makefile.py SHEBANG_LANG= hhvm hhvm_OLD_CMD= /usr/bin/hhvm hhvm_CMD= ${LOCALBASE}/bin/hhvm # not installed by anything yet USE_PHP= ctype dom hash iconv json mbstring pcre readline \ session xml xmlreader zlib WANT_PHP_WEB= yes MEDIAWIKIDIR?= www/mediawiki NO_BUILD= yes PLIST= ${WRKDIR}/plist SUB_FILES= pkg-message SUB_LIST= MEDIAWIKIDIR=${PREFIX}/${MEDIAWIKIDIR} OPTIONS_DEFINE= MYSQL PGSQL SQLITE LDAP MEMCACHED XCACHE IMAGICK SOCKETS OPTIONS_DEFAULT=MYSQL SOCKETS MEMCACHED_DESC= Use memcached XCACHE_DESC= Use xCache IMAGICK_DESC= Use ImageMagick SOCKETS_DESC= Use sockets MYSQL_VARS= IGNORE_WITH_PHP+=70 .include .if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= client USE_PHP+= mysql .endif .if ${PORT_OPTIONS:MPGSQL} USE_PHP+= pgsql .endif .if ${PORT_OPTIONS:MSQLITE} USE_PHP+= sqlite3 .endif .if ${PORT_OPTIONS:MLDAP} USE_PHP+= ldap .endif .if ${PORT_OPTIONS:MMEMCACHED} RUN_DEPENDS= memcached:databases/memcached .endif .if ${PORT_OPTIONS:MIMAGICK} RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:graphics/pecl-imagick .endif .if ${PORT_OPTIONS:MXCACHE} RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xcache.so:www/xcache .endif .if ${PORT_OPTIONS:MSOCKETS} USE_PHP+= sockets .endif pre-install: @${FIND} -s -d ${WRKSRC} -not -type d | ${SED} "s?${WRKSRC}?${MEDIAWIKIDIR}?g" >>${PLIST} @${ECHO} "@mode 0777" >> ${PLIST} @${ECHO} "@dir %%WWWDIR%%/images" >> ${PLIST} @${ECHO} "@mode" >> ${PLIST} @${ECHO} @dir ${MEDIAWIKIDIR} >> ${PLIST} do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR} ${CP} -r ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR} .include