blob: f1f502ee857f7b602fe77bb060f5ee3cef43543a (
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.2 2008/04/28 04:16:39 bjs Exp $
#
DISTNAME= gambc-${GAMBC_DIST_VERSION}
PKGNAME= gambc-${GAMBC_VERSION}
CATEGORIES= lang
MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.2/source/
EXTRACT_SUFX= .tgz
MAINTAINER= bjs@NetBSD.org
HOMEPAGE= http://www.iro.umontreal.ca/~gambit/
COMMENT= GambitC Scheme System
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake
CONFIGURE_ARGS+= --enable-single-host
CONFIGURE_ARGS+= --enable-cplusplus
CONFIGURE_ARGS+= --enable-shared
###
### 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
.include "../../mk/bsd.prefs.mk"
GAMBC_DIST_VERSION= ${GAMBC_VERSION:C|^.*|v&|:S|.|_|g}
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}
INSTALL_MAKE_FLAGS+= ${GAMBC_MAKE_FLAGS:@.f.@\
${.f.:C|${PREFIX}|${DESTDIR}&|}\
@:M*}
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"
|