pkgsrc/devel/guile-slib/Makefile
uebayasi 4d0018370d Support user-destdir.
Generate catalog file in ${DESTDIR}, then package it.  This should
work, because the catalog file (${PREFIX}/share/guile/1.8/slibcat)
is only provided for slib to know what interpreter is using slib;
i.e., the file is written once at installation.

(Let's see if this theory is correct.  If not, we'll revisit this.)


Reviewed By:	gdt (maintainer)
2011-06-15 12:52:59 +00:00

34 lines
992 B
Makefile

# $NetBSD: Makefile,v 1.43 2011/06/15 12:52:59 uebayasi Exp $
DISTNAME= guile-slib-3.2.2
PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://swissnet.ai.mit.edu/~jaffer/SLIB.html
COMMENT= SLIB glue files for guile 1.8
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= slib>=3.2.2:../../devel/slib
NO_BUILD= yes
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= share/guile share/guile/1.8 share/guile/site
do-install:
${LN} -sf ${PREFIX}/share/slib \
${DESTDIR}${PREFIX}/share/guile/site/slib
${RM} -f ${DESTDIR}${PREFIX}/share/guile/slibcat
cd ${DESTDIR}${PREFIX}/share/guile/site/slib && \
GUILE_LOAD_PATH=${PREFIX}/share \
GUILE_IMPLEMENTATION_PATH=${DESTDIR}${PREFIX}/share/guile/1.8 \
guile -q -c "(begin (use-modules (ice-9 slib)) (require 'new-catalog))"
# Our 1.8.2 package applies a necessary patch.
BUILDLINK_API_DEPENDS.guile+= guile>=1.8.2
.include "../../lang/guile/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"