d312f7454f
Patch provided by Aleksej Lebedev via PR pkg/50425 and pkgsrc-users@. pkgsrc changes: o While here fix various pkglint warnings (spaces vs tabs) o Update DESCR to reflect current status of scheme48 and R5RS Changes: * 2014-04-12 (version 1.9.2) ** Bug fixes - Some regressions with respect to integer shifts were fixed. - Some compiler warnings were fixed. * 2014-02-22 (version 1.9.1) ** Bug fixes - A bug fix from SRFI 13 was imported (in `string-trim-right'). - =DESTDIR= is now used consistently in the Makefile. - A bug in `integer->errno' was fixed. (William Vining) - Various problems that broke the VM when compiled with Clang were fixed.
48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.42 2015/11/14 14:14:46 leot Exp $
|
|
|
|
DISTNAME= scheme48-1.9.2
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://s48.org/1.9.2/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://s48.org/
|
|
COMMENT= The Scheme Underground implementation of R5RS
|
|
LICENSE= modified-bsd
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
# bin/scheme-r5rs
|
|
CONFLICTS+= gambc-[0-9]*
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --docdir=${PREFIX}/share/doc/${PKGNAME_NOREV} \
|
|
--htmldir=${PREFIX}/share/doc/${PKGNAME_NOREV}/html \
|
|
--mandir=${PREFIX}/${PKGMANDIR}
|
|
USE_TOOLS+= gmake
|
|
BUILD_TARGET= enough
|
|
TEST_TARGET= check # fail if USER == root directory owner
|
|
|
|
REPLACE_INTERPRETER+= scheme
|
|
REPLACE.scheme.old= .*/bin/env scheme-srfi-7
|
|
REPLACE.scheme.new= ${PREFIX}/bin/scheme-srfi-7
|
|
REPLACE_FILES.scheme= build/scheme48-config.in
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
|
|
SUBST_CLASSES+= pthr
|
|
SUBST_STAGE.pthr= post-patch
|
|
SUBST_FILES.pthr= configure
|
|
SUBST_MESSAGE.pthr= Hardcoding -pthread in CFLAGS and LDFLAGS
|
|
SUBST_SED.pthr= -e 's,pthreads_done=\"no\",pthreads_done=\"yes\"; CFLAGS=\"$$CFLAGS -pthread\"; LDFLAGS=\"$$LDFLAGS -pthread\",'
|
|
.endif
|
|
|
|
.include "../../mk/compiler.mk"
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
# -O2 needs more than 2GB memory, just disabling value propagation
|
|
# results in segmentation faults during build.
|
|
CFLAGS+= -O0
|
|
.endif
|
|
|
|
.include "../../devel/sysexits/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|