1 # $NetBSD: Makefile,v 1.98 2012/10/02 20:11:42 asau Exp $
6 MASTER_SITES
= ${MASTER_SITE_GNU
:=guile
/}
8 MAINTAINER
= gdt@NetBSD.org
9 HOMEPAGE
= http
://www.gnu.org
/software
/guile
/guile.html
10 COMMENT
= GNU
's Ubiquitous Intelligent Language for Extension
11 LICENSE= gnu-lgpl-v2.1
13 CONFLICTS= guile14<1.4.1nb1 guile-oops-[0-9]*
16 USE_TOOLS+= gmake makeinfo
19 PTHREAD_AUTO_VARS= YES
21 PKGCONFIG_OVERRIDE= guile-1.8.pc.in
23 # XXX Make this conditional on the problematic systems.
24 # couldn't figure out how to work around an error on solaris-2.9
/sparc with gcc when
25 # compiling ${WRKSRC}/libguile/filesys.c. The warning is that readdir64_r was missing
27 CONFIGURE_ARGS
+= --disable-error-on-warning
29 #CONFIGURE_ARGS+= --without-threads
34 OWN_DIRS
= ${PREFIX}/share
/guile
/site
36 .
include "../../mk/bsd.prefs.mk"
38 # scmconfig.h will be rebuilt first thing. This hack is here because
39 # gen-scmconfig.c includes string.h (from /usr/include) which in turn
40 # tries to include /usr/include/strings.h but instead the compiler picks
41 # up ./strings.h which tries to include scmconfig.h which doesn't exist
42 # yet. While not a clean fix, this seems to work around the problem.
45 # for info on the slib part, see
46 # http://lists.gnu.org/archive/html/guile-user/2006-11/msg00035.html
48 ${TOUCH} ${WRKSRC}/libguile
/scmconfig.h
49 ${ECHO} "(define-module (ice-9 slib))" > ${WRKSRC}/ice-9
/slib.scm
50 ${ECHO} "(load-from-path \"slib/guile.init\")" >> ${WRKSRC}/ice-9
/slib.scm
52 .if
${OPSYS} == "DragonFly"
53 CONFIGURE_ARGS
+= ac_cv_type_complex_double
=no
56 .if
${OPSYS} == "Darwin"
59 # Darwin does not use -rpath, so back out the patch that adds it. It
60 # is not clear that guile works properly if directories with modules
61 # are not in LTDL_LIBRARY_PATH or LD_LIBRARY_PATH. See the following
63 # http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=33665
64 # http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=36975
65 post-patch
: post-patch-darwin
66 post-patch-darwin
: .PHONY
67 ${MV} ${WRKSRC}/guile-config
/guile-config.in.orig \
68 ${WRKSRC}/guile-config
/guile-config.in
71 .
include "../../devel/gmp/buildlink3.mk"
72 .
include "../../devel/libltdl/buildlink3.mk"
73 .
include "../../devel/ncurses/buildlink3.mk"
74 .
include "../../devel/readline/buildlink3.mk"
75 .
include "../../mk/pthread.buildlink3.mk"
76 .
include "../../mk/bsd.pkg.mk"