1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/www/mediawiki110/Makefile
Cheng-Lung Sung 48a68e3140 - Update port to version 1.7.1
- The new MediaWiki branch doesn't support PHP 4 and MySQL 3.23 anymore.
- Please read
  http://www.mediawiki.org/wiki/Manual:Upgrading_to_1.7
  carefully before updating the port.

PR:		ports/99962
Submitted by:	maintainer (Gerrit Beine)
2006-07-14 07:22:13 +00:00

51 lines
1.2 KiB
Makefile

# New ports collection makefile for: www/mediawiki
# Date created: February 1st 2005
# Whom: Gerrit Beine <tux@pinguru.net>
#
# $FreeBSD$
#
PORTNAME= mediawiki
PORTVERSION= 1.7.1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= wikipedia
MAINTAINER= gerrit.beine@gmx.de
COMMENT= The wiki engine used by Wikipedia
CONFLICTS= mediawiki-1.[0-68-9].*
NO_BUILD= yes
USE_MYSQL= yes
IGNORE_WITH_MYSQL= 323
USE_PHP= iconv mbstring pcre session xml zlib readline mysql
IGNORE_WITH_PHP= 4
WANT_PHP_WEB= yes
MEDIAWIKIDIR?= www/mediawiki
OPTIONS= LDAP "Use LDAP authentication" off
.include <bsd.port.pre.mk>
.if defined(WITH_LDAP)
USE_PHP+= ldap
.endif
# Fix USE_PHP after bsd.port.pre.mk
.include "${PORTSDIR}/Mk/bsd.php.mk"
do-install:
@${MKDIR} ${PREFIX}/${MEDIAWIKIDIR}
${CP} -r ${WRKSRC}/ ${PREFIX}/${MEDIAWIKIDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${MEDIAWIKIDIR}
post-install:
@${FIND} ${WRKSRC}/${file} -not -type d \
| ${SED} -ne 's,^${WRKSRC},${MEDIAWIKIDIR},p' >> ${TMPPLIST}
@${FIND} -d ${WRKSRC}/${file} -type d \
| ${SED} -ne 's,^${WRKSRC},@dirrm ${MEDIAWIKIDIR},p' >> ${TMPPLIST}
@${SED} -e 's|%%MEDIAWIKIDIR%%|${PREFIX}/${MEDIAWIKIDIR}|' ${PKGMESSAGE}
.include <bsd.port.post.mk>