diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 17:45:33 +0000 |
commit | 4c8382aec039aefeebaf1aaac5cd7985337ed917 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/libetm | |
parent | 3a62565eb9471348d02d74145e302b5675905a43 (diff) | |
download | pkgsrc-4c8382aec039aefeebaf1aaac5cd7985337ed917.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/libetm')
-rw-r--r-- | devel/libetm/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/devel/libetm/Makefile b/devel/libetm/Makefile index 4446754775c..dbfa9ac30ca 100644 --- a/devel/libetm/Makefile +++ b/devel/libetm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2006/12/15 14:34:20 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2008/03/03 17:45:35 jlam Exp $ # DISTNAME= ETM-1.09 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= ${MASTER_SITES} COMMENT= Exception and termination manager +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/etm INSTALLATION_DIRS= include lib @@ -21,10 +23,10 @@ post-patch: -e 's|/usr/local|${PREFIX}|' do-install: - ${INSTALL_DATA} ${WRKSRC}/libetm.a ${PREFIX}/lib - ${INSTALL_DATA} ${WRKSRC}/etm.h ${PREFIX}/include - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libetm + ${INSTALL_DATA} ${WRKSRC}/libetm.a ${DESTDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/etm.h ${DESTDIR}${PREFIX}/include + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/libetm ${NROFF} -ms ${WRKSRC}/etm.ms \ - >${PREFIX}/share/doc/libetm/etm.txt + >${DESTDIR}${PREFIX}/share/doc/libetm/etm.txt .include "../../mk/bsd.pkg.mk" |