Tweak audio/festvox-el11 version 1.4.0_2
[dports.git] / math / algotutor / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       algotutor
4 PORTVERSION=    0.8.6
5 PORTREVISION=   7
6 CATEGORIES=     math
7 MASTER_SITES=   http://www.cyut.edu.tw/~ckhung/dl/
8
9 MAINTAINER=     kevlo@FreeBSD.org
10 COMMENT=        Interactive tutorial for algorithms and data structures
11
12 BUILD_DEPENDS=  p5-Tk>=0:x11-toolkits/p5-Tk
13 RUN_DEPENDS:=   ${BUILD_DEPENDS}
14
15 USE_PERL5=      build
16 NO_BUILD=       yes
17 NO_ARCH=        yes
18
19 MANPAGES=       algotutor.1 gen_at_graph.1
20 BINFILES=       algotutor gen_at_graph
21 LIBFILES=       BST.pm Board.pm Collection.pm Configurable.pm DCEdge.pm \
22                 Edge.pm Graph.pm Heap.pm Line.pm PQueue.pm RBTree.pm \
23                 RecCanvas.pm RecDialog.pm TreeNode.pm Vector.pm Vector2.pm \
24                 Vector3.pm Vertex.pm basic.pl utilalgo
25
26 USES=           shebangfix perl5 tar:tgz
27 SHEBANG_FILES=  algotutor dp/flwa dp/lcs dp/matrixchain \
28                 gen_at_graph graph/flwa
29
30 post-patch:
31         @${REINPLACE_CMD} -e 's,!!SITE_PERL!!,${PREFIX}/${SITE_PERL_REL},' \
32                 -e 's|!!PREFIX!!|${PREFIX}|g' \
33                         ${WRKSRC}/algotutor
34
35 do-install:
36         ${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/algotutor
37         ${MKDIR} ${STAGEDIR}${PREFIX}/share/algotutor
38         ${CP} -R ${WRKSRC}/data ${STAGEDIR}${PREFIX}/share/algotutor
39         ${CP} -R ${WRKSRC}/cgeom ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/algotutor
40         ${CP} -R ${WRKSRC}/dp ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/algotutor
41         ${CP} -R ${WRKSRC}/graph ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/algotutor
42 .for file in ${MANPAGES}
43         ${INSTALL_MAN} ${WRKSRC}/doc/${file} ${STAGEDIR}${PREFIX}/man/man1
44 .endfor
45 .for file in ${BINFILES}
46         ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin
47 .endfor
48 .for file in ${LIBFILES}
49         ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/algotutor
50 .endfor
51
52 .include <bsd.port.mk>