aboutsummaryrefslogtreecommitdiff
path: root/www/claroline/Makefile
blob: fb68dda637b1899c1e58b5cb489d29860b6e9ff4 (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
# New ports collection makefile for:	claroline
# Date created:		29 Feb 2008
# Whom:			Wen heping <wenheping@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	claroline
PORTVERSION=	1.9.6
CATEGORIES=	www
MASTER_SITES=	SF/${PORTNAME}/Claroline/Claroline%20${PORTVERSION}
DISTNAME=	${PORTNAME}${PORTVERSION:S/.//g}

MAINTAINER=	wen@FreeBSD.org
COMMENT=	Open Source eLearning and eWorking platform

USE_ZIP=	yes
NO_BUILD=	yes
USE_PHP=	mysql
WRKSRC=		${WRKDIR}/${DISTNAME}
SUB_FILES=	pkg-message

OPTIONS=	LDAP    "Add LDAP authentication functionality" Off \
		GD      "Add GD functionality" On \
		OPENSSL "Add OpenSSL functionality" Off

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_GD)
USE_PHP+=	gd
.endif

.if defined(WITH_OPENSSL)
USE_PHP+=	openssl
.endif

.if defined(WITH_LDAP)
USE_PHP+=	ldap
.endif

do-install:
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
	@${CHMOD} -R 755 ${WWWDIR}
	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
		>> ${TMPPLIST}
	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >>${TMPPLIST}

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>