| @@ -1,78 +1,78 @@ | | | @@ -1,78 +1,78 @@ |
1 | # $NetBSD: Makefile,v 1.107 2016/08/03 15:03:03 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.108 2016/09/19 11:21:11 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= guile-1.8.8 | | 3 | DISTNAME= guile-1.8.8 |
4 | PKGREVISION= 8 | | 4 | PKGREVISION= 8 |
5 | CATEGORIES= lang | | 5 | CATEGORIES= lang |
6 | MASTER_SITES= ${MASTER_SITE_GNU:=guile/} | | 6 | MASTER_SITES= ${MASTER_SITE_GNU:=guile/} |
7 | | | 7 | |
8 | MAINTAINER= gdt@NetBSD.org | | 8 | MAINTAINER= gdt@NetBSD.org |
9 | HOMEPAGE= http://www.gnu.org/software/guile/guile.html | | 9 | HOMEPAGE= https://www.gnu.org/software/guile/ |
10 | COMMENT= GNU's Ubiquitous Intelligent Language for Extension | | 10 | COMMENT= GNU's Ubiquitous Intelligent Language for Extension |
11 | LICENSE= gnu-lgpl-v2.1 | | 11 | LICENSE= gnu-lgpl-v2.1 |
12 | | | 12 | |
13 | CONFLICTS= guile14<1.4.1nb1 guile-oops-[0-9]* | | 13 | CONFLICTS= guile14<1.4.1nb1 guile-oops-[0-9]* |
14 | | | 14 | |
15 | GNU_CONFIGURE= YES | | 15 | GNU_CONFIGURE= YES |
16 | USE_TOOLS+= gmake makeinfo | | 16 | USE_TOOLS+= gmake makeinfo |
17 | USE_LIBTOOL= YES | | 17 | USE_LIBTOOL= YES |
18 | PTHREAD_AUTO_VARS= YES | | 18 | PTHREAD_AUTO_VARS= YES |
19 | INFO_FILES= YES | | 19 | INFO_FILES= YES |
20 | PKGCONFIG_OVERRIDE= guile-1.8.pc.in | | 20 | PKGCONFIG_OVERRIDE= guile-1.8.pc.in |
21 | | | 21 | |
22 | GUILE_PREFIX= ${PREFIX}/guile/1.8 | | 22 | GUILE_PREFIX= ${PREFIX}/guile/1.8 |
23 | GNU_CONFIGURE_PREFIX= ${GUILE_PREFIX} | | 23 | GNU_CONFIGURE_PREFIX= ${GUILE_PREFIX} |
24 | BUILDLINK_PASSTHRU_DIRS+= ${GUILE_PREFIX} | | 24 | BUILDLINK_PASSTHRU_DIRS+= ${GUILE_PREFIX} |
25 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${GUILE_PREFIX}/lib | | 25 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${GUILE_PREFIX}/lib |
26 | | | 26 | |
27 | # XXX Make this conditional on the problematic systems. | | 27 | # XXX Make this conditional on the problematic systems. |
28 | # couldn't figure out how to work around an error on solaris-2.9/sparc with gcc when | | 28 | # couldn't figure out how to work around an error on solaris-2.9/sparc with gcc when |
29 | # compiling ${WRKSRC}/libguile/filesys.c. The warning is that readdir64_r was missing | | 29 | # compiling ${WRKSRC}/libguile/filesys.c. The warning is that readdir64_r was missing |
30 | # a prototype. | | 30 | # a prototype. |
31 | CONFIGURE_ARGS+= --disable-error-on-warning | | 31 | CONFIGURE_ARGS+= --disable-error-on-warning |
32 | | | 32 | |
33 | #CONFIGURE_ARGS+= --without-threads | | 33 | #CONFIGURE_ARGS+= --without-threads |
34 | | | 34 | |
35 | TEST_DIRS= . | | 35 | TEST_DIRS= . |
36 | TEST_TARGET= check | | 36 | TEST_TARGET= check |
37 | | | 37 | |
38 | OWN_DIRS= ${PREFIX}/share/guile/site | | 38 | OWN_DIRS= ${PREFIX}/share/guile/site |
39 | | | 39 | |
40 | .include "../../mk/bsd.prefs.mk" | | 40 | .include "../../mk/bsd.prefs.mk" |
41 | | | 41 | |
42 | # scmconfig.h will be rebuilt first thing. This hack is here because | | 42 | # scmconfig.h will be rebuilt first thing. This hack is here because |
43 | # gen-scmconfig.c includes string.h (from /usr/include) which in turn | | 43 | # gen-scmconfig.c includes string.h (from /usr/include) which in turn |
44 | # tries to include /usr/include/strings.h but instead the compiler picks | | 44 | # tries to include /usr/include/strings.h but instead the compiler picks |
45 | # up ./strings.h which tries to include scmconfig.h which doesn't exist | | 45 | # up ./strings.h which tries to include scmconfig.h which doesn't exist |
46 | # yet. While not a clean fix, this seems to work around the problem. | | 46 | # yet. While not a clean fix, this seems to work around the problem. |
47 | # | | 47 | # |
48 | # | | 48 | # |
49 | # for info on the slib part, see | | 49 | # for info on the slib part, see |
50 | # http://lists.gnu.org/archive/html/guile-user/2006-11/msg00035.html | | 50 | # http://lists.gnu.org/archive/html/guile-user/2006-11/msg00035.html |
51 | post-patch: | | 51 | post-patch: |
52 | ${TOUCH} ${WRKSRC}/libguile/scmconfig.h | | 52 | ${TOUCH} ${WRKSRC}/libguile/scmconfig.h |
53 | ${ECHO} "(define-module (ice-9 slib))" > ${WRKSRC}/ice-9/slib.scm | | 53 | ${ECHO} "(define-module (ice-9 slib))" > ${WRKSRC}/ice-9/slib.scm |
54 | ${ECHO} "(load-from-path \"slib/guile.init\")" >> ${WRKSRC}/ice-9/slib.scm | | 54 | ${ECHO} "(load-from-path \"slib/guile.init\")" >> ${WRKSRC}/ice-9/slib.scm |
55 | | | 55 | |
56 | CONFIGURE_ARGS.DragonFly+= ac_cv_type_complex_double=no | | 56 | CONFIGURE_ARGS.DragonFly+= ac_cv_type_complex_double=no |
57 | | | 57 | |
58 | .if ${OPSYS} == "Darwin" | | 58 | .if ${OPSYS} == "Darwin" |
59 | #This define has been reported to break builds on 10.8. | | 59 | #This define has been reported to break builds on 10.8. |
60 | #CPPFLAGS+= -Dmacosx | | 60 | #CPPFLAGS+= -Dmacosx |
61 | | | 61 | |
62 | # Darwin does not use -rpath, so back out the patch that adds it. It | | 62 | # Darwin does not use -rpath, so back out the patch that adds it. It |
63 | # is not clear that guile works properly if directories with modules | | 63 | # is not clear that guile works properly if directories with modules |
64 | # are not in LTDL_LIBRARY_PATH or LD_LIBRARY_PATH. See the following | | 64 | # are not in LTDL_LIBRARY_PATH or LD_LIBRARY_PATH. See the following |
65 | # PRs: | | 65 | # PRs: |
66 | # http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=33665 | | 66 | # http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=33665 |
67 | # http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=36975 | | 67 | # http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=36975 |
68 | post-patch: post-patch-darwin | | 68 | post-patch: post-patch-darwin |
69 | post-patch-darwin: .PHONY | | 69 | post-patch-darwin: .PHONY |
70 | ${MV} ${WRKSRC}/guile-config/guile-config.in.orig \ | | 70 | ${MV} ${WRKSRC}/guile-config/guile-config.in.orig \ |
71 | ${WRKSRC}/guile-config/guile-config.in | | 71 | ${WRKSRC}/guile-config/guile-config.in |
72 | .endif | | 72 | .endif |
73 | | | 73 | |
74 | .include "../../devel/gmp/buildlink3.mk" | | 74 | .include "../../devel/gmp/buildlink3.mk" |
75 | .include "../../devel/libltdl/buildlink3.mk" | | 75 | .include "../../devel/libltdl/buildlink3.mk" |
76 | .include "../../devel/readline/buildlink3.mk" | | 76 | .include "../../devel/readline/buildlink3.mk" |
77 | .include "../../mk/pthread.buildlink3.mk" | | 77 | .include "../../mk/pthread.buildlink3.mk" |
78 | .include "../../mk/bsd.pkg.mk" | | 78 | .include "../../mk/bsd.pkg.mk" |