blob: d612cd330f4e64848304ef46e8d3c3e27e8d1814 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Created by: Gerrit Beine <tux@pinguru.net>
# $FreeBSD$
PORTNAME= mediawiki
PORTVERSION= 1.20.8
CATEGORIES= www
MASTER_SITES= http://dumps.wikimedia.org/mediawiki/${PORTVERSION:R}/
PKGNAMESUFFIX= 120
MAINTAINER= wen@FreeBSD.org
COMMENT= The wiki engine used by Wikipedia
LICENSE= GPLv2
CONFLICTS= mediawiki-1.1[0-9].* mediawiki-1.21.*
USE_PHP= ctype hash iconv mbstring pcre session xml zlib readline dom
WANT_PHP_WEB= yes
MEDIAWIKIDIR?= www/mediawiki
SUB_FILES= pkg-message
SUB_LIST+= MEDIAWIKIDIR="${PREFIX}/${MEDIAWIKIDIR}"
NO_BUILD= yes
OPTIONS_DEFINE= MYSQL PGSQL SQLITE LDAP MEMCACHED APC EACCEL XCACHE IMAGICK
OPTIONS_DEFAULT=MYSQL APC
MEMCACHED_DESC= use memcached
APC_DESC= use pecl-APC(Mediawiki recommended)
EACCEL_DESC= use eAccelerator (instead of pecl-APC)
XCACHE_DESC= use xCache (instead of pecl-APC)
IMAGICK_DESC= use ImageMagick
.include <bsd.port.options.mk>
.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:${PORTSDIR}/databases/memcached
.endif
.if ${PORT_OPTIONS:MIMAGICK}
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/graphics/pecl-imagick
.endif
.if ${PORT_OPTIONS:MAPC}
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:${PORTSDIR}/www/pecl-APC
.elif ${PORT_OPTIONS:MEACCEL}
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/eaccelerator.so:${PORTSDIR}/www/eaccelerator
.elif ${PORT_OPTIONS:MXCACHE}
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xcache.so:${PORTSDIR}/www/xcache
.endif
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR}
${CP} -r ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${MEDIAWIKIDIR}
@${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}
.include <bsd.port.mk>
|