1 # $NetBSD: Makefile,v 1.35 2012/01/04 00:58:36 gdt Exp $
6 MASTER_SITES
= ftp
://ftp.ecn.purdue.edu
/qobi
/
9 MAINTAINER
= pkgsrc-users@NetBSD.org
10 HOMEPAGE
= http
://cobweb.ecn.purdue.edu
/~qobi
/software.html
11 #HOMEPAGE+= https://github.com/barak/stalin
12 COMMENT
= Aggressively optimizing Scheme compiler
14 # Only ported to these 4 archs
15 ONLY_FOR_PLATFORM
= *-*-i386
*-*-sparc
*-*-alpha
*-*-mips
16 NOT_FOR_BULK_PLATFORM
= SunOS-
*-*
18 UNLIMIT_RESOURCES
= stacksize datasize
20 .
include "../../mk/bsd.prefs.mk"
22 .if
(${MACHINE_ARCH} == "sparc")
23 CFLAGS
:= ${CFLAGS
:C
/-O
[0-9]*/-O0
/}
25 CPPFLAGS
+= -I
${BUILDLINK_PREFIX.boehm-gc
}/include/gc
27 INSTALLATION_DIRS
= bin
${PKGMANDIR}/man1
30 ${SED} -e
's:@PREFIX@:${PREFIX}:g' \
31 -e
's:@LOCALBASE@:${LOCALBASE}:g' \
32 -e
's:@X11BASE@:${X11BASE}:g' \
33 ${FILESDIR}/stalin.sh
> ${WRKSRC}/stalin.sh
36 ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/lib
/stalin
37 ${INSTALL_PROGRAM} ${WRKSRC}/stalin
${DESTDIR}${PREFIX}/lib
/stalin
38 ${INSTALL_SCRIPT} ${WRKSRC}/stalin.sh
${DESTDIR}${PREFIX}/bin
/stalin
39 ${INSTALL_DATA} ${WRKSRC}/include/*.sc
${DESTDIR}${PREFIX}/lib
/stalin
40 ${INSTALL_DATA} ${WRKSRC}/libstalin.a
${DESTDIR}${PREFIX}/lib
/stalin
41 ${INSTALL_MAN} ${WRKSRC}/stalin
.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
42 ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share
/doc
/stalin
43 cd
${WRKSRC} && ${INSTALL_DATA} ANNOUNCEMENT COPYING README \
44 stalin.el
${DESTDIR}${PREFIX}/share
/doc
/stalin
/
46 .
include "../../devel/boehm-gc/buildlink3.mk"
47 .
include "../../graphics/Mesa/buildlink3.mk"
48 .
include "../../mk/bsd.pkg.mk"