Tweak math/geg version 1.0.2_7
[dports.git] / math / algotutor / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       algotutor
4 PORTVERSION=    0.8.6
5 PORTREVISION=   4
6 CATEGORIES=     math
7 MASTER_SITES=   http://www.cyut.edu.tw/~ckhung/dl/
8 EXTRACT_SUFX=   .tgz
9
10 MAINTAINER=     kevlo@FreeBSD.org
11 COMMENT=        Interactive tutorial for algorithms and data structures
12
13 BUILD_DEPENDS=  p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk
14 RUN_DEPENDS:=   ${BUILD_DEPENDS}
15
16 USE_PERL5=      build
17 NO_BUILD=       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
27 SHEBANG_FILES=  algotutor
28
29 post-patch:
30         @${REINPLACE_CMD} -e 's,!!SITE_PERL!!,${SITE_PERL},' \
31                 -e 's|!!PREFIX!!|${PREFIX}|g' \
32                         ${WRKSRC}/algotutor
33
34 do-install:
35         ${MKDIR} ${STAGEDIR}${SITE_PERL}/algotutor
36         ${MKDIR} ${STAGEDIR}${PREFIX}/share/algotutor
37         ${CP} -R ${WRKSRC}/data ${STAGEDIR}${PREFIX}/share/algotutor
38         ${CP} -R ${WRKSRC}/cgeom ${STAGEDIR}${SITE_PERL}/algotutor
39         ${CP} -R ${WRKSRC}/dp ${STAGEDIR}${SITE_PERL}/algotutor
40         ${CP} -R ${WRKSRC}/graph ${STAGEDIR}${SITE_PERL}/algotutor
41 .for file in ${MANPAGES}
42         ${INSTALL_MAN} ${WRKSRC}/doc/${file} ${STAGEDIR}${PREFIX}/man/man1
43 .endfor
44 .for file in ${BINFILES}
45         ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin
46 .endfor
47 .for file in ${LIBFILES}
48         ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${SITE_PERL}/algotutor
49 .endfor
50
51 .include <bsd.port.mk>