diff options
Diffstat (limited to 'lang/stalin/Makefile')
-rw-r--r-- | lang/stalin/Makefile | 53 |
1 files changed, 20 insertions, 33 deletions
diff --git a/lang/stalin/Makefile b/lang/stalin/Makefile index c0f80bcda15..27bc2a6077d 100644 --- a/lang/stalin/Makefile +++ b/lang/stalin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2001/04/14 21:43:47 jtb Exp $ +# $NetBSD: Makefile,v 1.7 2001/04/21 01:00:37 jtb Exp $ DISTNAME= stalin PKGNAME= stalin-0.8 @@ -10,31 +10,25 @@ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.neci.nj.nec.com/homepages/qobi/software.html COMMENT= Aggressively optimizing Scheme compiler -DEPENDS+= boehm-gc-[0-9]*:../../devel/boehm-gc -DEPENDS+= Mesa-[0-9]*:../../graphics/Mesa +DEPENDS+= boehm-gc-*:../../devel/boehm-gc -EVAL_PREFIX+= GC_PREFIX=boehm-gc MESA_PREFIX=Mesa +USE_MESA= yes WRKSRC= ${WRKDIR}/${PKGNAME} - -.if (${MACHINE_ARCH} == "alpha") -ALL_TARGET= all-alpha -.else -ALL_TARGET= all-32 -.endif +EVAL_PREFIX+= GC_PREFIX=boehm-gc post-patch: @${RM} -f ${WRKSRC}/benchmarks/*.orig - @for i in stalin.sc stalin-32.c stalin-alpha.c \ - stalinc stalin.1 benchmarks/benchmark \ - benchmarks/compile-and-run-stalin-benchmark \ - benchmarks/compile-stalin-benchmark \ - benchmarks/make-define-application-example \ - benchmarks/make-hello benchmarks/make-xhello; do \ - ${SED} -e 's:@PREFIX@:'${PREFIX}':g' \ - -e 's:@GC_PREFIX@:'${GC_PREFIX}':g' \ - -e 's:@MESA_PREFIX@:'${MESA_PREFIX}':g' \ - -e 's:@X11BASE@:'${X11BASE}':g' < ${WRKSRC}/$$i > \ - ${WRKSRC}/$$i.tmp && ${MV} ${WRKSRC}/$$i.tmp ${WRKSRC}/$$i ; done + @for i in stalin.sc stalin-32.c stalin-alpha.c stalinc stalin.1 \ + benchmarks/benchmark benchmarks/compile-and-run-stalin-benchmark \ + benchmarks/compile-stalin-benchmark \ + benchmarks/make-define-application-example \ + benchmarks/make-hello benchmarks/make-xhello; do \ + ${SED} -e 's:@PREFIX@:'${PREFIX}':g' \ + -e 's:@GC_PREFIX@:'${GC_PREFIX}':g' \ + -e 's:@MESA_PREFIX@:'${MESA_PREFIX}':g' \ + -e 's:@X11BASE@:'${X11BASE}':g' ${WRKSRC}/$$i > \ + ${WRKSRC}/$$i.tmp && ${MV} ${WRKSRC}/$$i.tmp ${WRKSRC}/$$i; \ + done do-install: ${INSTALL_PROGRAM} ${WRKSRC}/stalin ${PREFIX}/bin @@ -43,20 +37,13 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/libstalin.a ${PREFIX}/lib/stalin ${INSTALL_DATA} ${WRKSRC}/gl-c.o ${PREFIX}/lib/stalin ${INSTALL_DATA} ${WRKSRC}/xlib-c.o ${PREFIX}/lib/stalin - @for s in ${WRKSRC}/include/*.sc; do \ - c="${INSTALL_DATA} $$s ${PREFIX}/lib/stalin/"; \ - ${ECHO} $$c; $$c; \ - done + ${INSTALL_DATA} ${WRKSRC}/include/*.sc ${PREFIX}/lib/stalin/ ${INSTALL_MAN} ${WRKSRC}/stalin.1 ${PREFIX}/man/man1 ${INSTALL_DATA_DIR} ${PREFIX}/share/stalin - @for f in ANNOUNCEMENT COPYING README stalin.el ; do \ - c="${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/stalin/"; \ - ${ECHO} $$c; $$c; \ - done + cd ${WRKSRC} && ${INSTALL_DATA} ANNOUNCEMENT COPYING README \ + stalin.el ${PREFIX}/share/stalin/ ${INSTALL_DATA_DIR} ${PREFIX}/share/stalin/benchmarks - @for b in ${WRKSRC}/benchmarks/*; do \ - c="${INSTALL_DATA} $$b ${PREFIX}/share/stalin/benchmarks/"; \ - ${ECHO} $$c; $$c; \ - done + ${INSTALL_DATA} ${WRKSRC}/benchmarks/* \ + ${PREFIX}/share/stalin/benchmarks/ \ .include "../../mk/bsd.pkg.mk" |