2011-05-12 14:15:41 +02:00
|
|
|
# $NetBSD: Makefile,v 1.97 2011/05/12 12:15:41 dmcmahill Exp $
|
1998-07-02 17:30:15 +02:00
|
|
|
|
2010-12-25 10:03:41 +01:00
|
|
|
DISTNAME= guile-1.8.8
|
2011-05-12 14:15:41 +02:00
|
|
|
PKGREVISION= 1
|
2000-06-09 10:09:42 +02:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=guile/}
|
1998-07-02 17:30:15 +02:00
|
|
|
|
2005-10-16 23:01:19 +02:00
|
|
|
MAINTAINER= gdt@NetBSD.org
|
2000-06-09 10:09:42 +02:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/guile/guile.html
|
2001-02-17 10:06:56 +01:00
|
|
|
COMMENT= GNU's Ubiquitous Intelligent Language for Extension
|
2009-08-16 16:00:50 +02:00
|
|
|
LICENSE= gnu-lgpl-v2.1
|
1998-07-02 17:30:15 +02:00
|
|
|
|
2004-05-03 17:58:20 +02:00
|
|
|
CONFLICTS= guile14<1.4.1nb1 guile-oops-[0-9]*
|
2003-01-16 17:43:04 +01:00
|
|
|
|
2008-01-04 19:17:16 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2008-01-04 15:48:26 +01:00
|
|
|
|
2002-08-26 21:58:30 +02:00
|
|
|
GNU_CONFIGURE= YES
|
2006-03-05 17:27:22 +01:00
|
|
|
USE_TOOLS+= gmake makeinfo
|
2002-08-26 21:58:30 +02:00
|
|
|
USE_LIBTOOL= YES
|
|
|
|
USE_GNU_READLINE= YES
|
2004-11-30 18:57:03 +01:00
|
|
|
PTHREAD_AUTO_VARS= YES
|
2008-01-03 14:30:25 +01:00
|
|
|
INFO_FILES= YES
|
2008-05-30 19:10:04 +02:00
|
|
|
PKGCONFIG_OVERRIDE= guile-1.8.pc.in
|
2008-01-03 14:30:25 +01:00
|
|
|
|
|
|
|
# XXX Make this conditional on the problematic systems.
|
2007-06-12 05:02:33 +02:00
|
|
|
# couldn't figure out how to work around an error on solaris-2.9/sparc with gcc when
|
|
|
|
# compiling ${WRKSRC}/libguile/filesys.c. The warning is that readdir64_r was missing
|
2007-10-09 21:19:08 +02:00
|
|
|
# a prototype.
|
2007-06-12 05:02:33 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-error-on-warning
|
2008-01-03 14:30:25 +01:00
|
|
|
|
2008-05-30 19:10:04 +02:00
|
|
|
#CONFIGURE_ARGS+= --without-threads
|
|
|
|
|
2008-01-03 14:30:25 +01:00
|
|
|
TEST_DIRS= .
|
2003-11-26 23:13:58 +01:00
|
|
|
TEST_TARGET= check
|
2008-01-03 14:30:25 +01:00
|
|
|
|
2006-03-30 05:44:41 +02:00
|
|
|
OWN_DIRS= ${PREFIX}/share/guile/site
|
2003-11-26 23:13:58 +01:00
|
|
|
|
2004-05-16 19:52:11 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2007-06-12 05:02:33 +02:00
|
|
|
# scmconfig.h will be rebuilt first thing. This hack is here because
|
|
|
|
# gen-scmconfig.c includes string.h (from /usr/include) which in turn
|
|
|
|
# tries to include /usr/include/strings.h but instead the compiler picks
|
|
|
|
# up ./strings.h which tries to include scmconfig.h which doesn't exist
|
|
|
|
# yet. While not a clean fix, this seems to work around the problem.
|
|
|
|
#
|
2007-10-09 21:19:08 +02:00
|
|
|
#
|
2007-06-12 05:02:33 +02:00
|
|
|
# for info on the slib part, see
|
|
|
|
# http://lists.gnu.org/archive/html/guile-user/2006-11/msg00035.html
|
|
|
|
post-patch:
|
|
|
|
${TOUCH} ${WRKSRC}/libguile/scmconfig.h
|
2008-01-03 14:30:25 +01:00
|
|
|
${ECHO} "(define-module (ice-9 slib))" > ${WRKSRC}/ice-9/slib.scm
|
|
|
|
${ECHO} "(load-from-path \"slib/guile.init\")" >> ${WRKSRC}/ice-9/slib.scm
|
2007-06-12 05:02:33 +02:00
|
|
|
|
2007-06-12 21:49:28 +02:00
|
|
|
.if ${OPSYS} == "DragonFly"
|
|
|
|
CONFIGURE_ARGS+= ac_cv_type_complex_double=no
|
|
|
|
.endif
|
2007-06-12 05:02:33 +02:00
|
|
|
|
2004-05-16 19:52:11 +02:00
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
CPPFLAGS+= -Dmacosx
|
|
|
|
|
2008-01-03 14:30:25 +01:00
|
|
|
# Darwin does not use -rpath, so back out the patch that adds it. It
|
|
|
|
# is not clear that guile works properly if directories with modules
|
|
|
|
# are not in LTDL_LIBRARY_PATH or LD_LIBRARY_PATH. See the following
|
|
|
|
# PRs:
|
|
|
|
# http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=33665
|
|
|
|
# http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=36975
|
2008-03-29 06:12:16 +01:00
|
|
|
post-patch: post-patch-darwin
|
|
|
|
post-patch-darwin: .PHONY
|
2008-01-03 14:30:25 +01:00
|
|
|
${MV} ${WRKSRC}/guile-config/guile-config.in.orig \
|
2004-05-16 19:52:11 +02:00
|
|
|
${WRKSRC}/guile-config/guile-config.in
|
|
|
|
.endif
|
|
|
|
|
2007-06-12 05:02:33 +02:00
|
|
|
.include "../../devel/gmp/buildlink3.mk"
|
2004-10-15 16:50:05 +02:00
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
2004-02-11 08:11:28 +01:00
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
2004-10-03 02:49:11 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
1998-07-17 21:39:42 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|