summaryrefslogtreecommitdiff
path: root/www/tikiwiki/Makefile
blob: 6ac4e044aeae85479d6eb89b90ea5cd268f31d23 (plain)
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
# Created by: Babak Farrokhi <babak@farrokhi.net>
# $FreeBSD$

PORTNAME=	tikiwiki
PORTVERSION=	15.2
CATEGORIES=	www
MASTER_SITES=	SF/${PORTNAME}/Tiki_15.x_Situla/${PORTVERSION}/
DISTNAME=	tiki-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Powerful PHP based Wiki/CMS/Groupware

LICENSE=	LGPL21
LICENSE_FILE=	${WRKSRC}/license.txt

BROKEN_powerpc64=	Does not build

USES=		php:web
USE_PHP=	calendar dom fileinfo gd gettext intl mbstring mcrypt pcre \
		posix session xml zip zlib

NO_BUILD=	yes
NO_MTREE=	yes
NO_ARCH=	yes
TIKIWIKI_DIR?=	www/${PORTNAME}-${PORTVERSION}
SUB_FILES=	pkg-message
SUB_LIST+=	TIKIWIKI_DIR=${TIKIWIKI_DIR}

WRI_DIR=	db dump img/trackers img/wiki img/wiki_up modules/cache \
		temp temp/cache templates_c templates whelp

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/${TIKIWIKI_DIR}
	(cd ${WRKSRC} && \
		${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${TIKIWIKI_DIR})

# pkg-plist would be over 15,000 lines, consuming 1.1Mb
# The benefits of a fixed pkg-plist aren't worth it, autogen!

post-install:
	@(cd ${STAGEDIR}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
		${SORT} | ${SED} -e 's/^/@(${WWWOWN},${WWWGRP},) /' >> ${TMPPLIST})
	@(cd ${STAGEDIR}${PREFIX}; ${FIND} * -type d -empty | \
		${SORT} -r | ${SED} -e 's/^/@dir /' >> ${TMPPLIST})

	@${ECHO_CMD} "@mode 777" >> ${TMPPLIST}
.for i in ${WRI_DIR} do
	@${MKDIR} ${STAGEDIR}${PREFIX}/${TIKIWIKI_DIR}/${i}
	@${ECHO_CMD} "@dir ${TIKIWIKI_DIR}/${i}" >> ${TMPPLIST}
.endfor
	@${ECHO_CMD} "@mode" >> ${TMPPLIST}

.include <bsd.port.mk>