diff options
author | groo <groo@pkgsrc.org> | 2000-05-22 20:26:59 +0000 |
---|---|---|
committer | groo <groo@pkgsrc.org> | 2000-05-22 20:26:59 +0000 |
commit | c6f4c028c770702aab24c32000e8385c784466e2 (patch) | |
tree | f31519d8a00a40fa6a2ff967468a5fbd8329e524 /lang/drscheme/Makefile | |
parent | 4834b2029fe5500bf85fdb628d80880e296601b3 (diff) | |
download | pkgsrc-c6f4c028c770702aab24c32000e8385c784466e2.tar.gz |
R4RS-compilant and nearly R5RS-compliant scheme tailored for teaching
TODO: Stop unecessary complete rebuild of mzscheme
Fix games launch script
Diffstat (limited to 'lang/drscheme/Makefile')
-rw-r--r-- | lang/drscheme/Makefile | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/lang/drscheme/Makefile b/lang/drscheme/Makefile new file mode 100644 index 00000000000..dc0d3b8d8a7 --- /dev/null +++ b/lang/drscheme/Makefile @@ -0,0 +1,65 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/05/22 20:26:59 groo Exp $ +# + +DISTNAME= plt.src.x +PKGNAME= drscheme-101 +CATEGORIES= lang +MASTER_SITES= http://www.cs.rice.edu/CS/PLT/packages/download/101/plt/ + +MAINTAINER= groo@netbsd.org +HOMEPAGE= http://www.cs.rice.edu/CS/PLT/packages/drscheme/ + +DEPENDS+= mzscheme-101:../mzscheme + +USE_GMAKE= yes + +ONLY_FOR_PLATFORM= NetBSD-*-i386 + +# Note: WRKSRC set to ease import of patches +# from lang/mzscheme. [groo] + +WRKSRC= ${WRKDIR}/plt/src/mzscheme + +post-patch: + @for patchee in ${WRKDIR}/plt/man/man1/mzscheme.1 \ + ${WRKDIR}/plt/man/man1/drscheme.1 ${WRKDIR}/plt/man/man1/mred.1 \ + ${WRKDIR}/plt/man/man1/drscheme-jr.1 \ + ${WRKSRC}/cmdline.inc ${WRKDIR}/plt/collects/mzlib/restartr.ss \ + ${WRKDIR}/plt/collects/slibinit/init.ss \ + ${WRKSRC}/src/makeexn ${WRKDIR}/plt/collects/launcher/launcherr.ss; do \ + ${MV} -f $$patchee ${WRKSRC}/foo ; \ + ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' <${WRKSRC}/foo \ + > $$patchee ; \ + done + @${RM} -f ${WRKSRC}/foo + +do-build: + @(cd ${WRKSRC} ; ./mzmake) + @(cd ${WRKSRC}/../mred ; ${GMAKE}) + +post-build: + @(cd ${WRKSRC} ; ${MAKE} install) + @(cd ${WRKDIR}/plt ; ${ECHO} y | ./install) + +do-install: + @${INSTALL_SCRIPT} ${WRKDIR}/plt/bin/drscheme ${PREFIX}/bin + @${INSTALL_SCRIPT} ${WRKDIR}/plt/bin/drscheme-jr ${PREFIX}/bin + @${INSTALL_SCRIPT} ${WRKDIR}/plt/bin/help-desk ${PREFIX}/bin + @${INSTALL_SCRIPT} ${WRKDIR}/plt/bin/mred ${PREFIX}/bin + @${INSTALL_PROGRAM_DIR} ${PREFIX}/lib/plt/bin + @${INSTALL_PROGRAM} ${WRKDIR}/plt/src/mred/mred \ + ${PREFIX}/lib/plt/bin + @${INSTALL_MAN} ${WRKDIR}/plt/man/man1/drscheme.1 \ + ${PREFIX}/man/man1 + @${INSTALL_MAN} ${WRKDIR}/plt/man/man1/drscheme-jr.1 \ + ${PREFIX}/man/man1 + @${INSTALL_MAN} ${WRKDIR}/plt/man/man1/mred.1 \ + ${PREFIX}/man/man1 + @for i in userspce stepper mred icons htdp hierlist \ + help graphics games framework drscheme-jr drscheme \ + doc cogen browser afm; do \ + ${CP} -R ${WRKDIR}/plt/collects/$$i ${PREFIX}/lib/plt/collects; \ + done + @${CP} -R ${WRKDIR}/plt/teachpack ${PREFIX}/lib/plt + +.include "../../mk/bsd.pkg.mk" |