update Wed Mar 24 18:37:00 PDT 2010
[pkgsrc.git] / devel / guile-slib / Makefile
1 # $NetBSD: Makefile,v 1.42 2010/03/24 19:43:23 asau Exp $
2
3 DISTNAME=       guile-slib-3.2.2
4 PKGREVISION=    2
5 CATEGORIES=     devel
6 MASTER_SITES=   # empty
7 DISTFILES=      # empty
8
9 MAINTAINER=     gdt@NetBSD.org
10 HOMEPAGE=       http://swissnet.ai.mit.edu/~jaffer/SLIB.html
11 COMMENT=        SLIB glue files for guile 1.8
12
13 # This does not quite work.  The problem is that new-catalog writes
14 # the catalog in /usr/pkg/share/guile/site, rarther than the proper
15 # place in the destdir.
16 #PKG_DESTDIR_SUPPORT=   user-destdir
17
18 DEPENDS+=       slib>=3.2.2:../../devel/slib
19
20 NO_BUILD=       yes
21 WRKSRC=         ${WRKDIR}
22
23 INSTALLATION_DIRS=      share/guile share/guile/site
24
25 do-install:
26         ${LN} -sf ${PREFIX}/share/slib \
27                 ${DESTDIR}${PREFIX}/share/guile/site/slib
28         ${RM} -f ${DESTDIR}${PREFIX}/share/guile/slibcat
29         cd ${DESTDIR}${PREFIX}/share/guile/site/slib && \
30                 GUILE_LOAD_PATH=${PREFIX}/share \
31                 guile -q -c "(begin (use-modules (ice-9 slib)) (require 'new-catalog))"
32
33 # Our 1.8.2 package applies a necessary patch.
34 BUILDLINK_API_DEPENDS.guile+=   guile>=1.8.2
35 .include "../../lang/guile/buildlink3.mk"
36 .include "../../mk/bsd.pkg.mk"