summaryrefslogtreecommitdiff
path: root/www/wikicalc/Makefile
blob: 79ad0a7bb2fd236c7cb99fd452bb1ad39b5296fd (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
PORTNAME=	wikicalc
DISTVERSION=	1-0
CATEGORIES=	www math
MASTER_SITES=	http://www.peapodcast.com/sgi/downloads/

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Open Source Wiki-Spreadsheet

RUN_DEPENDS=	p5-libwww>=0:www/p5-libwww

USES=		perl5 shebangfix
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}
SUB_FILES=	setup.sh
SHEBANG_FILES=	*.pl
perl_CMD=	${LOCALBASE}/bin/perl -I${DATADIR}

post-extract:
	@${RM} ${WRKSRC}/gpl.txt

do-install:
	${MKDIR} ${STAGEDIR}${DATADIR}
	cd ${WRKSRC} && \
	${FIND} . -type f -a ! -name \*.pl -a ! -name \*.bak | \
		${XARGS} -J % ${INSTALL_DATA} % ${STAGEDIR}${DATADIR}/$${i}; \
	${FIND} . -type f -a -name \*.pl | \
		${XARGS} -J % ${INSTALL_SCRIPT} % ${STAGEDIR}${DATADIR}/$${i}; \
	${INSTALL_SCRIPT} ${WRKDIR}/setup.sh ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>