diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 01:40:21 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 01:40:21 +0000 |
commit | f61cf6906a47ea29db5a98128c49cd6db98ee0e9 (patch) | |
tree | 466ae0c874ddf5aeb224d9780131eadc35a8553c /cad/lc | |
parent | 075003a60c727330726570ab7674a2ee12c5654f (diff) | |
download | pkgsrc-f61cf6906a47ea29db5a98128c49cd6db98ee0e9.tar.gz |
Add basic destdir support.
Diffstat (limited to 'cad/lc')
-rw-r--r-- | cad/lc/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/cad/lc/Makefile b/cad/lc/Makefile index 136a92ff857..0fa1c7e27a1 100644 --- a/cad/lc/Makefile +++ b/cad/lc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2007/08/23 18:20:30 jlam Exp $ +# $NetBSD: Makefile,v 1.12 2008/03/03 01:43:01 jlam Exp $ DISTNAME= lc # overridden below PKGNAME= lc-2.10 @@ -19,6 +19,8 @@ NO_BIN_ON_FTP= ${RESTRICTED} NO_SRC_ON_FTP= ${RESTRICTED} LICENSE= lc-license +PKG_DESTDIR_SUPPORT= destdir + WRKSRC= ${WRKDIR}/lc2.10 BUILD_DIRS= # empty @@ -53,12 +55,11 @@ PLIST_SUBST+= HAVE_LCSPICE="" INSTALLATION_DIRS= bin share do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/lc ${PREFIX}/bin/lc - ${INSTALL_PROGRAM} ${WRKSRC}/bin/lcplot ${PREFIX}/bin/lcplot - if test -f ${WRKSRC}/bin/spice ; then ${INSTALL_PROGRAM} ${WRKSRC}/bin/spice ${PREFIX}/bin/lcspice ; fi - cd ${PREFIX}/share && ${TAR} -zxf ${DISTDIR}/${DIST_SUBDIR}/lc_doc.tar.gz - ${CHMOD} -R ugo+rX ${PREFIX}/share/lc2.10 - ${CHOWN} -R ${SHAREOWN} ${PREFIX}/share/lc2.10 - ${CHGRP} -R ${SHAREGRP} ${PREFIX}/share/lc2.10 + ${INSTALL_PROGRAM} ${WRKSRC}/bin/lc ${DESTDIR}${PREFIX}/bin/lc + ${INSTALL_PROGRAM} ${WRKSRC}/bin/lcplot ${DESTDIR}${PREFIX}/bin/lcplot + if test -f ${WRKSRC}/bin/spice ; then ${INSTALL_PROGRAM} ${WRKSRC}/bin/spice ${DESTDIR}${PREFIX}/bin/lcspice ; fi + cd ${DESTDIR}${PREFIX}/share && ${TAR} -zxf ${DISTDIR}/${DIST_SUBDIR}/lc_doc.tar.gz + ${CHMOD} -R ugo+rX ${DESTDIR}${PREFIX}/share/lc2.10 + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/share/lc2.10 .include "../../mk/bsd.pkg.mk" |