blob: d8ca50fb71331e5e13dc234e5dd5caab8bc20135 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile,v 1.3 2001/02/17 09:07:03 agc 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/
COMMENT= R4RS-compilant and nearly R5RS-compliant scheme tailored for teaching
DEPENDS+= mzscheme-101:../mzscheme
USE_GMAKE= yes
USE_PERL5= 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"
|