2007-09-15 23:07:06 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2007/09/16 03:07:06 merdely Exp $
|
2005-01-13 22:02:16 -05:00
|
|
|
|
2007-09-15 23:07:06 -04:00
|
|
|
COMMENT= interactive tutorial for algorithms and data structures
|
2005-01-13 22:02:16 -05:00
|
|
|
|
2005-06-08 21:19:36 -04:00
|
|
|
DISTNAME= algotutor-0.8.5
|
2006-02-09 23:50:06 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2005-02-17 21:20:55 -05:00
|
|
|
CATEGORIES= education math
|
2005-01-13 22:02:16 -05:00
|
|
|
|
2005-02-17 21:20:55 -05:00
|
|
|
HOMEPAGE= http://www.ofset.org/~ckhung/p/algotutor/
|
2005-01-13 22:02:16 -05:00
|
|
|
|
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= http://www.cyut.edu.tw/~ckhung/dl/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2006-02-09 23:50:06 -05:00
|
|
|
RUN_DEPENDS= :p5-Tk-*:x11/p5-Tk
|
2005-01-13 22:02:16 -05:00
|
|
|
|
|
|
|
NO_BUILD= Yes
|
|
|
|
|
|
|
|
P5SITE= libdata/perl5/site_perl
|
|
|
|
P5INST= ${PREFIX}/${P5SITE}
|
|
|
|
SUBST_VARS= P5SITE
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@perl -i -pe 's@%%P5INST%%@${P5INST}@g' ${WRKSRC}/algotutor
|
|
|
|
|
2005-10-18 15:11:02 -04:00
|
|
|
pre-install:
|
2005-01-13 22:02:16 -05:00
|
|
|
${INSTALL_DATA_DIR} ${P5INST}/algotutor
|
|
|
|
|
|
|
|
do-install:
|
2005-04-12 21:27:42 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/algotutor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/algotutor \
|
|
|
|
${PREFIX}/share/examples/algotutor
|
2005-01-13 22:02:16 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/algotutor
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/algotutor ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gen_at_graph ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/algotutor.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/gen_at_graph.1 ${PREFIX}/man/man1
|
2005-04-12 21:27:42 -04:00
|
|
|
cp -R ${WRKSRC}/cgeom ${P5INST}/algotutor
|
2005-01-13 22:02:16 -05:00
|
|
|
cp -R ${WRKSRC}/data ${PREFIX}/share/algotutor
|
2005-04-12 21:27:42 -04:00
|
|
|
cp -R ${WRKSRC}/dp ${P5INST}/algotutor
|
|
|
|
cp -R ${WRKSRC}/graph ${P5INST}/algotutor
|
2005-01-13 22:02:16 -05:00
|
|
|
cp ${WRKSRC}/*.pm ${P5INST}/algotutor
|
2005-04-12 21:27:42 -04:00
|
|
|
cp ${WRKSRC}/basic.pl ${P5INST}/algotutor
|
2005-01-13 22:02:16 -05:00
|
|
|
cp ${WRKSRC}/utilalgo ${P5INST}/algotutor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|