48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.2 2005/02/18 02:20:55 kevlo Exp $
|
|
|
|
COMMENT= "interactive tutorial for algorithms and data structures"
|
|
|
|
DISTNAME= algotutor-0.7
|
|
CATEGORIES= education math
|
|
|
|
HOMEPAGE= http://www.ofset.org/~ckhung/p/algotutor/
|
|
|
|
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
|
|
|
|
BUILD_DEPENDS= :p5-Tk-*:x11/p5-Tk
|
|
|
|
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
|
|
|
|
pre-fake:
|
|
${INSTALL_DATA_DIR} ${P5INST}/algotutor
|
|
|
|
do-install:
|
|
${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
|
|
cp -R ${WRKSRC}/data ${PREFIX}/share/algotutor
|
|
cp -R ${WRKSRC}/graph ${PREFIX}/share/algotutor
|
|
cp ${WRKSRC}/*.pm ${P5INST}/algotutor
|
|
cp ${WRKSRC}/.algotutor ${P5INST}/algotutor
|
|
cp ${WRKSRC}/utilalgo ${P5INST}/algotutor
|
|
|
|
.include <bsd.port.mk>
|