1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/www/mahara/Makefile
Wen Heping 11cf885ffe - Fix permissions [1]
- Add LICENSE file [1]
- Add missing PHP module
- Update pkg-message

PR:		200351 [1]
Submitted by:	amdmi3@
2015-05-21 07:48:57 +00:00

43 lines
1.0 KiB
Makefile

# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$
PORTNAME= mahara
PORTVERSION= 15.04.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/
MAINTAINER= wen@FreeBSD.org
COMMENT= Open source ePortfolio system
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/../COPYING
USES= cpe tar:bzip2
USE_PHP= dom gd session json curl xml xmlrpc openssl simplexml
OPTIONS_DEFINE= MYSQL PGSQL
OPTIONS_DEFAULT= MYSQL
MYSQL_USE= PHP=mysql
PGSQL_USE= PHP=pgsql
NO_BUILD= yes
PLIST= ${WRKDIR}/plist
SUB_FILES= pkg-message
SUB_LIST= MAHARADIR=${MAHARADIR} \
MAHARADATADIR=${MAHARADATADIR}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/htdocs
MAHARADIR?= www/mahara
MAHARADATADIR?= www/maharadata
pre-install:
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${MAHARADIR}?g" >> ${PLIST}
@${ECHO_CMD} "@dir(${WWWOWN},${WWWGRP},755) ${MAHARADATADIR}" >> ${PLIST}
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${MAHARADATADIR}
.include <bsd.port.mk>