blob: 79eb13b051f90520a04ae503347451f8151ae448 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# $NetBSD: Makefile,v 1.10 2012/10/02 20:11:39 asau Exp $
#
DISTNAME= gambc-${GAMBC_DIST_VERSION}
PKGNAME= gambc-${GAMBC_VERSION}
CATEGORIES= lang
MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.iro.umontreal.ca/~gambit/
COMMENT= GambitC Scheme System
NOT_FOR_BULK_PLATFORM+= SunOS-*-*
# bin/scheme-r5rs
CONFLICTS+= scheme48>=1.2
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
CONFIGURE_ARGS+= --enable-single-host
CONFIGURE_ARGS+= --enable-cplusplus
CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ARGS+= --disable-absolute-shared-libs # DESTDIR bug?
###
### XXX On NetBSD/amd64 4.99.61, gcc had a resident memory size of over 384MB
### while building this and ultimately exhausted all 1GB of swap I had.
### See the documentation for more information. (This was due to using
### -fmodulo-sched, gcc 4.1.3).
###
CONFIGURE_ARGS+= --disable-gcc-opts
INFO_FILES= yes
MAKE_FILE= makefile
BUILD_TARGET+= bootstrap
TEST_TARGET= check
CHECK_PORTABILITY_SKIP= prebuilt/*/*
DLOPEN_REQUIRE_PTHREADS=no
TEST_TARGET= check
.include "../../mk/bsd.prefs.mk"
GAMBC_MAKE_FLAGS= prefix=${PREFIX}
GAMBC_MAKE_FLAGS+= includedir=${PREFIX}/include
GAMBC_MAKE_FLAGS+= bindir=${PREFIX}/bin
GAMBC_MAKE_FLAGS+= infodir=${PREFIX}/${PKGINFODIR}
GAMBC_MAKE_FLAGS+= libdir=${PREFIX}/lib/
GAMBC_MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}
GAMBC_MAKE_FLAGS+= docdir=${PREFIX}/share/doc/${PKGBASE}
GAMBC_MAKE_FLAGS+= infodir=${PREFIX}/${PKGINFODIR}
GAMBC_MAKE_FLAGS+= emacsdir=${PREFIX}/share/emacs/site-lisp
MAKE_FLAGS+= ${GAMBC_MAKE_FLAGS}
SUBST_CLASSES+= build
SUBST_FILES.build= configure
SUBST_FILES.build+= makefile.in */makefile.in */*/makefile.in
SUBST_MESSAGE.build= Preparing build-time and installation configuration.
SUBST_SED.build= -e 's|v${GAMBC_DIST_VERSION}||'
SUBST_SED.build+= -e 's|@target_vendor@|The NetBSD Foundation, Inc.|g'
SUBST_STAGE.build= pre-configure
SUBST_VARS.build+= PACKAGE_SUBDIR PACKAGE_VERSION
SUBST_VARS.build+= PACKAGE_STRING
PACKAGE_SUBDIR= # empty
PACKAGE_VERSION= ${PKGVERSION}
PACKAGE_STRING= ${${PKGBASE} ${PKGVERSION}:L}
.include "version.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|