blob: 286fbe94867c9f72ce0f3b04e4e2aeaba4d6478c (
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
|
# New ports collection makefile for: spip
# Date created: 2006-03-17
# Whom: jfb@minet.net
#
# $FreeBSD$
#
PORTNAME= spip
PORTVERSION= 1.8.3
CATEGORIES= www
MASTER_SITES= http://www.spip.net/spip-dev/DISTRIB/ \
http://trac.rezo.net/files/spip/
DISTNAME= SPIP-v${PORTVERSION:U:C|\.|-|g}
MAINTAINER= jfb@minet.net
COMMENT= A publishing system for the Internet (CMS)
USE_ZIP= yes
USE_PHP= mysql pcre
NO_BUILD= yes
WWWDOCROOT?= www
SPIPDIR?= ${WWWDOCROOT}/${PORTNAME:L}
SUB_FILES= pkg-message
SUB_LIST= SPIPDIR=${SPIPDIR}
PLIST_SUB= SPIPDIR=${SPIPDIR}
OPTIONS= GD "With GD Support" on \
IMAGICK "With ImageMagick Support" off \
LDAP "With LDAP Support for authentification" off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_GD)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/gd.so:${PORTSDIR}/${gd_DEPENDS}
.endif
.if defined(WITH_IMAGICK)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/${imagick_DEPENDS}
.endif
.if defined(WITH_LDAP)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/ldap.so:${PORTSDIR}/${ldap_DEPENDS}
.endif
do-install:
@${MKDIR} ${PREFIX}/${SPIPDIR}
@${CP} -Rv ${WRKSRC}/* ${PREFIX}/${SPIPDIR}
@${CHGRP} -R ${WWWGRP} ${PREFIX}/${SPIPDIR}
.for dir in CACHE IMG ecrire ecrire/data
@${CHMOD} 775 ${PREFIX}/${SPIPDIR}/${dir}
.endfor
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|