pkgsrc/lang/stalin/Makefile
gutteridge 1e4ca2627d Bump all dependent packages of wayland (belatedly)
The package changed with the addition of its libepoll-shim dependency.
Otherwise, we can get:
ERROR: libepoll-shim>=0.0.20210418 is not installed; can't buildlink files.
2022-08-11 05:08:00 +00:00

49 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.43 2022/08/11 05:08:55 gutteridge Exp $
DISTNAME= stalin-0.9
PKGREVISION= 10
CATEGORIES= lang
MASTER_SITES= ftp://ftp.ecn.purdue.edu/qobi/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://cobweb.ecn.purdue.edu/~qobi/software.html
#HOMEPAGE+= https://github.com/barak/stalin
COMMENT= Aggressively optimizing Scheme compiler
# Only ported to these 4 archs
ONLY_FOR_PLATFORM= *-*-i386 *-*-sparc *-*-alpha *-*-mips
UNLIMIT_RESOURCES= stacksize datasize
.include "../../mk/bsd.prefs.mk"
.if (${MACHINE_ARCH} == "sparc")
CFLAGS:= ${CFLAGS:C/-O[0-9]*/-O0/}
.endif
CPPFLAGS+= -I${BUILDLINK_PREFIX.boehm-gc}/include/gc
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
post-patch:
${SED} -e 's:@PREFIX@:${PREFIX}:g' \
-e 's:@LOCALBASE@:${LOCALBASE}:g' \
-e 's:@X11BASE@:${X11BASE}:g' \
${FILESDIR}/stalin.sh > ${WRKSRC}/stalin.sh
do-install:
${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/lib/stalin
${INSTALL_PROGRAM} ${WRKSRC}/stalin ${DESTDIR}${PREFIX}/lib/stalin
${INSTALL_SCRIPT} ${WRKSRC}/stalin.sh ${DESTDIR}${PREFIX}/bin/stalin
${INSTALL_DATA} ${WRKSRC}/include/*.sc ${DESTDIR}${PREFIX}/lib/stalin
${INSTALL_DATA} ${WRKSRC}/libstalin.a ${DESTDIR}${PREFIX}/lib/stalin
${INSTALL_MAN} ${WRKSRC}/stalin.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/stalin
cd ${WRKSRC} && ${INSTALL_DATA} ANNOUNCEMENT COPYING README \
stalin.el ${DESTDIR}${PREFIX}/share/doc/stalin/
.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/freeglut/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"