pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/slib Added support for installation to DESTDIR.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2c703a6e0ac7
branches:  trunk
changeset: 537259:2c703a6e0ac7
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sat Jan 05 17:47:38 2008 +0000

description:
Added support for installation to DESTDIR.

diffstat:

 devel/slib/Makefile |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r 5cd380ee6fac -r 2c703a6e0ac7 devel/slib/Makefile
--- a/devel/slib/Makefile       Sat Jan 05 17:24:12 2008 +0000
+++ b/devel/slib/Makefile       Sat Jan 05 17:47:38 2008 +0000
@@ -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 @@
 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_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"



Home | Main Index | Thread Index | Old Index