diff options
author | heinz <heinz@pkgsrc.org> | 2008-01-05 17:47:38 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2008-01-05 17:47:38 +0000 |
commit | e312a5cd186a890e770281f49b124e9e45d755a0 (patch) | |
tree | f8f4d386e835c6bacefb82258832b1c98200df29 /devel/slib | |
parent | 85c9776bb562f4c5073ed560d0d6c1aaa6d576d5 (diff) | |
download | pkgsrc-e312a5cd186a890e770281f49b124e9e45d755a0.tar.gz |
Added support for installation to DESTDIR.
Diffstat (limited to 'devel/slib')
-rw-r--r-- | devel/slib/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/devel/slib/Makefile b/devel/slib/Makefile index 08168be894d..c587313abae 100644 --- a/devel/slib/Makefile +++ b/devel/slib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2007/11/29 18:01:29 wiz Exp $ +# $NetBSD: Makefile,v 1.30 2008/01/05 17:47:38 heinz Exp $ DISTNAME= slib3a5 # @@ -16,6 +16,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://swissnet.ai.mit.edu/~jaffer/SLIB.html COMMENT= Portable Scheme library of compatibility and utility functions +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/slib NO_CONFIGURE= yes NO_BUILD= yes @@ -32,13 +34,13 @@ SUBST_FILES.scmpath= guile.init SUBST_SED.scmpath= -e "s|@PREFIX@|${PREFIX}|" do-install: - ${INSTALL_DATA_DIR} ${SLIBDIR} - cd ${WRKSRC}; ${INSTALL_DATA} *.scm *.init ${SLIBDIR} - ${INSTALL_DATA_DIR} ${DOCDIR} - cd ${WRKSRC}; ${INSTALL_DATA} README FAQ ${DOCDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${SLIBDIR} + cd ${WRKSRC}; ${INSTALL_DATA} *.scm *.init ${DESTDIR}${SLIBDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} + cd ${WRKSRC}; ${INSTALL_DATA} README FAQ ${DESTDIR}${DOCDIR} cd ${WRKSRC}; for f in slib.info slib.info-[0-9]*; do \ ${TEST} ! -f "$$f" || \ - ${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR}; \ + ${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\ done .include "../../mk/bsd.pkg.mk" |