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