freebsd-ports/www/wikicalc/Makefile
Hiroki Sato 985c2ad77c - Remove redundant SUB_LIST.
- Use "find | xargs install" instead of "for i in `find`; do install $i; done".

Suggested by:   sat
2007-06-25 06:43:39 +00:00

39 lines
950 B
Makefile

# New ports collection makefile for: wikicalc
# Date created: June 24, 2007
# Whom: hrs@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= wikicalc
PORTVERSION= 1.0
CATEGORIES= www math
MASTER_SITES= http://www.peapodcast.com/sgi/downloads/
DISTNAME= ${PORTNAME}-${PORTVERSION:S,.,-,}
MAINTAINER= hrs@FreeBSD.org
COMMENT= An Open Source Wiki-Spreadsheet
RUN_DEPENDS= ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww
USE_PERL5= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= setup.sh
post-extract:
@${RM} -f ${WRKSRC}/gpl.txt
post-patch:
${REINPLACE_CMD} 's,/usr/bin/perl,${PERL5} -I${DATADIR},' ${WRKSRC}/*.pl
do-install:
${MKDIR} ${DATADIR}
cd ${WRKSRC} && \
${FIND} . -type f -a ! -name \*.pl -a ! -name \*.bak | \
${XARGS} -J % ${INSTALL_DATA} % ${DATADIR}/$${i}; \
${FIND} . -type f -a -name \*.pl | \
${XARGS} -J % ${INSTALL_SCRIPT} % ${DATADIR}/$${i}; \
${INSTALL_SCRIPT} ${WRKDIR}/setup.sh ${DATADIR}
.include <bsd.port.mk>