| @@ -1,78 +1,83 @@ | | | @@ -1,78 +1,83 @@ |
1 | # $NetBSD: Makefile,v 1.10 2012/10/02 20:11:39 asau Exp $ | | 1 | # $NetBSD: Makefile,v 1.11 2013/12/15 19:39:34 joerg Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= gambc-${GAMBC_DIST_VERSION} | | 4 | DISTNAME= gambc-${GAMBC_DIST_VERSION} |
5 | PKGNAME= gambc-${GAMBC_VERSION} | | 5 | PKGNAME= gambc-${GAMBC_VERSION} |
6 | CATEGORIES= lang | | 6 | CATEGORIES= lang |
7 | MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/ | | 7 | MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/ |
8 | EXTRACT_SUFX= .tgz | | 8 | EXTRACT_SUFX= .tgz |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://www.iro.umontreal.ca/~gambit/ | | 11 | HOMEPAGE= http://www.iro.umontreal.ca/~gambit/ |
12 | COMMENT= GambitC Scheme System | | 12 | COMMENT= GambitC Scheme System |
13 | | | 13 | |
14 | NOT_FOR_BULK_PLATFORM+= SunOS-*-* | | 14 | NOT_FOR_BULK_PLATFORM+= SunOS-*-* |
15 | | | 15 | |
16 | # bin/scheme-r5rs | | 16 | # bin/scheme-r5rs |
17 | CONFLICTS+= scheme48>=1.2 | | 17 | CONFLICTS+= scheme48>=1.2 |
18 | | | 18 | |
19 | GNU_CONFIGURE= yes | | 19 | GNU_CONFIGURE= yes |
20 | USE_LANGUAGES= c c++ | | 20 | USE_LANGUAGES= c c++ |
21 | USE_TOOLS+= gmake | | 21 | USE_TOOLS+= gmake |
22 | | | 22 | |
23 | CONFIGURE_ARGS+= --enable-single-host | | 23 | CONFIGURE_ARGS+= --enable-single-host |
24 | CONFIGURE_ARGS+= --enable-cplusplus | | 24 | CONFIGURE_ARGS+= --enable-cplusplus |
25 | CONFIGURE_ARGS+= --enable-shared | | 25 | CONFIGURE_ARGS+= --enable-shared |
26 | CONFIGURE_ARGS+= --disable-absolute-shared-libs # DESTDIR bug? | | 26 | CONFIGURE_ARGS+= --disable-absolute-shared-libs # DESTDIR bug? |
27 | ### | | 27 | ### |
28 | ### XXX On NetBSD/amd64 4.99.61, gcc had a resident memory size of over 384MB | | 28 | ### XXX On NetBSD/amd64 4.99.61, gcc had a resident memory size of over 384MB |
29 | ### while building this and ultimately exhausted all 1GB of swap I had. | | 29 | ### while building this and ultimately exhausted all 1GB of swap I had. |
30 | ### See the documentation for more information. (This was due to using | | 30 | ### See the documentation for more information. (This was due to using |
31 | ### -fmodulo-sched, gcc 4.1.3). | | 31 | ### -fmodulo-sched, gcc 4.1.3). |
32 | ### | | 32 | ### |
33 | CONFIGURE_ARGS+= --disable-gcc-opts | | 33 | CONFIGURE_ARGS+= --disable-gcc-opts |
34 | | | 34 | |
35 | INFO_FILES= yes | | 35 | INFO_FILES= yes |
36 | MAKE_FILE= makefile | | 36 | MAKE_FILE= makefile |
37 | | | 37 | |
38 | BUILD_TARGET+= bootstrap | | 38 | BUILD_TARGET+= bootstrap |
39 | TEST_TARGET= check | | 39 | TEST_TARGET= check |
40 | | | 40 | |
41 | CHECK_PORTABILITY_SKIP= prebuilt/*/* | | 41 | CHECK_PORTABILITY_SKIP= prebuilt/*/* |
42 | DLOPEN_REQUIRE_PTHREADS=no | | 42 | DLOPEN_REQUIRE_PTHREADS=no |
43 | | | 43 | |
44 | TEST_TARGET= check | | 44 | TEST_TARGET= check |
45 | | | 45 | |
46 | .include "../../mk/bsd.prefs.mk" | | 46 | .include "../../mk/bsd.prefs.mk" |
47 | | | 47 | |
48 | GAMBC_MAKE_FLAGS= prefix=${PREFIX} | | 48 | GAMBC_MAKE_FLAGS= prefix=${PREFIX} |
49 | GAMBC_MAKE_FLAGS+= includedir=${PREFIX}/include | | 49 | GAMBC_MAKE_FLAGS+= includedir=${PREFIX}/include |
50 | GAMBC_MAKE_FLAGS+= bindir=${PREFIX}/bin | | 50 | GAMBC_MAKE_FLAGS+= bindir=${PREFIX}/bin |
51 | GAMBC_MAKE_FLAGS+= infodir=${PREFIX}/${PKGINFODIR} | | 51 | GAMBC_MAKE_FLAGS+= infodir=${PREFIX}/${PKGINFODIR} |
52 | GAMBC_MAKE_FLAGS+= libdir=${PREFIX}/lib/ | | 52 | GAMBC_MAKE_FLAGS+= libdir=${PREFIX}/lib/ |
53 | GAMBC_MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR} | | 53 | GAMBC_MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR} |
54 | GAMBC_MAKE_FLAGS+= docdir=${PREFIX}/share/doc/${PKGBASE} | | 54 | GAMBC_MAKE_FLAGS+= docdir=${PREFIX}/share/doc/${PKGBASE} |
55 | GAMBC_MAKE_FLAGS+= infodir=${PREFIX}/${PKGINFODIR} | | 55 | GAMBC_MAKE_FLAGS+= infodir=${PREFIX}/${PKGINFODIR} |
56 | GAMBC_MAKE_FLAGS+= emacsdir=${PREFIX}/share/emacs/site-lisp | | 56 | GAMBC_MAKE_FLAGS+= emacsdir=${PREFIX}/share/emacs/site-lisp |
57 | | | 57 | |
58 | MAKE_FLAGS+= ${GAMBC_MAKE_FLAGS} | | 58 | MAKE_FLAGS+= ${GAMBC_MAKE_FLAGS} |
59 | | | 59 | |
60 | SUBST_CLASSES+= build | | 60 | SUBST_CLASSES+= build |
61 | SUBST_FILES.build= configure | | 61 | SUBST_FILES.build= configure |
62 | SUBST_FILES.build+= makefile.in */makefile.in */*/makefile.in | | 62 | SUBST_FILES.build+= makefile.in */makefile.in */*/makefile.in |
63 | SUBST_MESSAGE.build= Preparing build-time and installation configuration. | | 63 | SUBST_MESSAGE.build= Preparing build-time and installation configuration. |
64 | SUBST_SED.build= -e 's|v${GAMBC_DIST_VERSION}||' | | 64 | SUBST_SED.build= -e 's|v${GAMBC_DIST_VERSION}||' |
65 | SUBST_SED.build+= -e 's|@target_vendor@|The NetBSD Foundation, Inc.|g' | | 65 | SUBST_SED.build+= -e 's|@target_vendor@|The NetBSD Foundation, Inc.|g' |
66 | SUBST_STAGE.build= pre-configure | | 66 | SUBST_STAGE.build= pre-configure |
67 | SUBST_VARS.build+= PACKAGE_SUBDIR PACKAGE_VERSION | | 67 | SUBST_VARS.build+= PACKAGE_SUBDIR PACKAGE_VERSION |
68 | SUBST_VARS.build+= PACKAGE_STRING | | 68 | SUBST_VARS.build+= PACKAGE_STRING |
69 | | | 69 | |
70 | PACKAGE_SUBDIR= # empty | | 70 | PACKAGE_SUBDIR= # empty |
71 | PACKAGE_VERSION= ${PKGVERSION} | | 71 | PACKAGE_VERSION= ${PKGVERSION} |
72 | PACKAGE_STRING= ${${PKGBASE} ${PKGVERSION}:L} | | 72 | PACKAGE_STRING= ${${PKGBASE} ${PKGVERSION}:L} |
73 | | | 73 | |
74 | .include "version.mk" | | 74 | .include "version.mk" |
75 | | | 75 | |
| | | 76 | .include "../../mk/compiler.mk" |
| | | 77 | .if !empty(PKGSRC_COMPILER:Mclang) |
| | | 78 | MAKE_ENV+= CLANG_NO_OPT=-O0 |
| | | 79 | .endif |
| | | 80 | |
76 | .include "../../mk/dlopen.buildlink3.mk" | | 81 | .include "../../mk/dlopen.buildlink3.mk" |
77 | .include "../../mk/termcap.buildlink3.mk" | | 82 | .include "../../mk/termcap.buildlink3.mk" |
78 | .include "../../mk/bsd.pkg.mk" | | 83 | .include "../../mk/bsd.pkg.mk" |