blob: 02b1b27c8a6f0dd7b5d7aa26645bb0a8e3daaa48 (
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
46
47
48
49
50
51
|
# $NetBSD: Makefile,v 1.40 2014/12/12 10:52:33 joerg Exp $
DISTNAME= scheme48-1.9
PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://s48.org/1.9/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://s48.org/
COMMENT= The Scheme Underground implementation of R5RS
LICENSE= modified-bsd
NOT_FOR_PLATFORM= *-*-alpha # *severe* problems. Bus error, alignment
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"
|