blob: 1dde55c26cc632ef611ea5874b77ef3294044b56 (
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
|
# $NetBSD: Makefile,v 1.1.1.1 2000/01/10 22:09:15 pooka Exp $
DISTNAME= mzscheme.src.unix
PKGNAME= mzscheme-101
CATEGORIES= lang
MASTER_SITES= http://www.cs.rice.edu/CS/PLT/packages/download/101/mzscheme/
MAINTAINER= pooka@netbsd.org
HOMEPAGE= http://www.cs.rice.edu/CS/PLT/packages/mzscheme/
USE_GMAKE= yes
ONLY_FOR_PLATFORM= NetBSD-*-i386
WRKSRC= ${WRKDIR}/plt/src/mzscheme
post-patch:
@for patchee in ${WRKDIR}/plt/man/man1/mzscheme.1 \
${WRKSRC}/cmdline.inc ${WRKDIR}/plt/collects/mzlib/restartr.ss \
${WRKDIR}/plt/collects/slibinit/init.ss \
${WRKSRC}/src/makeexn ; 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)
post-build:
@(cd ${WRKSRC} ; ${MAKE} install)
@(cd ${WRKDIR}/plt ; ${ECHO} y | ./install)
do-install:
@${INSTALL_SCRIPT} ${WRKDIR}/plt/bin/mzscheme ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKDIR}/plt/bin/mzc ${PREFIX}/bin
@${INSTALL_PROGRAM_DIR} ${PREFIX}/lib/plt/bin
@${INSTALL_PROGRAM} ${WRKDIR}/plt/.bin/netbsd/mzscheme \
${PREFIX}/lib/plt/bin
@${INSTALL_MAN} ${WRKDIR}/plt/man/man1/mzscheme.1 \
${PREFIX}/man/man1
@${CP} -R ${WRKDIR}/plt/collects ${PREFIX}/lib/plt
.include "../../mk/bsd.pkg.mk"
|