2005-01-19 05:28:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= algotutor
|
2007-04-10 13:04:52 +02:00
|
|
|
PORTVERSION= 0.8.6
|
2015-07-15 16:18:50 +02:00
|
|
|
PORTREVISION= 7
|
2005-01-19 05:28:37 +01:00
|
|
|
CATEGORIES= math
|
2013-06-13 08:11:34 +02:00
|
|
|
MASTER_SITES= http://www.cyut.edu.tw/~ckhung/dl/
|
2005-01-19 05:28:37 +01:00
|
|
|
|
2018-01-12 12:21:07 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-06-13 08:11:34 +02:00
|
|
|
COMMENT= Interactive tutorial for algorithms and data structures
|
2005-01-19 05:28:37 +01:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= p5-Tk>=0:x11-toolkits/p5-Tk
|
2012-01-21 18:40:15 +01:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2005-01-19 05:28:37 +01:00
|
|
|
|
2013-09-12 19:07:08 +02:00
|
|
|
USE_PERL5= build
|
2005-01-19 05:28:37 +01:00
|
|
|
NO_BUILD= yes
|
2015-07-15 16:18:50 +02:00
|
|
|
NO_ARCH= yes
|
2005-01-19 05:28:37 +01:00
|
|
|
|
2014-05-30 17:13:33 +02:00
|
|
|
MANPAGES= algotutor.1 gen_at_graph.1
|
2005-01-19 05:28:37 +01:00
|
|
|
BINFILES= algotutor gen_at_graph
|
2005-04-13 06:14:00 +02:00
|
|
|
LIBFILES= BST.pm Board.pm Collection.pm Configurable.pm DCEdge.pm \
|
2007-04-10 13:04:52 +02:00
|
|
|
Edge.pm Graph.pm Heap.pm Line.pm PQueue.pm RBTree.pm \
|
|
|
|
RecCanvas.pm RecDialog.pm TreeNode.pm Vector.pm Vector2.pm \
|
|
|
|
Vector3.pm Vertex.pm basic.pl utilalgo
|
2005-01-19 05:28:37 +01:00
|
|
|
|
2014-07-29 21:11:51 +02:00
|
|
|
USES= shebangfix perl5 tar:tgz
|
2015-07-15 16:18:50 +02:00
|
|
|
SHEBANG_FILES= algotutor dp/flwa dp/lcs dp/matrixchain \
|
|
|
|
gen_at_graph graph/flwa
|
2013-07-26 09:33:41 +02:00
|
|
|
|
2005-01-19 05:28:37 +01:00
|
|
|
post-patch:
|
2014-12-23 03:22:19 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,!!SITE_PERL!!,${PREFIX}/${SITE_PERL_REL},' \
|
2013-07-26 09:33:41 +02:00
|
|
|
-e 's|!!PREFIX!!|${PREFIX}|g' \
|
|
|
|
${WRKSRC}/algotutor
|
2005-01-22 18:46:03 +01:00
|
|
|
|
2005-01-19 05:28:37 +01:00
|
|
|
do-install:
|
2014-11-26 14:08:24 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/algotutor
|
2014-05-30 17:13:33 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/algotutor
|
|
|
|
${CP} -R ${WRKSRC}/data ${STAGEDIR}${PREFIX}/share/algotutor
|
2014-11-26 14:08:24 +01:00
|
|
|
${CP} -R ${WRKSRC}/cgeom ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/algotutor
|
|
|
|
${CP} -R ${WRKSRC}/dp ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/algotutor
|
|
|
|
${CP} -R ${WRKSRC}/graph ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/algotutor
|
2014-05-30 17:13:33 +02:00
|
|
|
.for file in ${MANPAGES}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${file} ${STAGEDIR}${PREFIX}/man/man1
|
2005-01-19 05:28:37 +01:00
|
|
|
.endfor
|
|
|
|
.for file in ${BINFILES}
|
2014-05-30 17:13:33 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin
|
2005-01-19 05:28:37 +01:00
|
|
|
.endfor
|
|
|
|
.for file in ${LIBFILES}
|
2014-11-26 14:08:24 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/algotutor
|
2005-01-19 05:28:37 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|