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 | e655762fb793a09bcd629a5ee8889dfe5b1550a0 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/libportlib | |
parent | 2d370b7fe4d16560d65355fc39f74d9ef5e1f0c9 (diff) | |
download | pkgsrc-e655762fb793a09bcd629a5ee8889dfe5b1550a0.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/libportlib')
-rw-r--r-- | devel/libportlib/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/libportlib/Makefile b/devel/libportlib/Makefile index 41475dd9332..3e450212f9d 100644 --- a/devel/libportlib/Makefile +++ b/devel/libportlib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2006/12/15 14:34:20 wiz Exp $ +# $NetBSD: Makefile,v 1.14 2008/03/03 17:45:36 jlam Exp $ # DISTNAME= portlib-1.01 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= ${MASTER_SITES} COMMENT= Portable file locking and directory reading +PKG_DESTDIR_SUPPORT= user-destir + WRKSRC= ${WRKDIR}/portlib-1.01 INSTALLATION_DIRS= include lib @@ -19,7 +21,7 @@ post-patch: -e 's|/usr/local|${PREFIX}|' do-install: - ${INSTALL_DATA} ${WRKSRC}/libport.a ${PREFIX}/lib - ${INSTALL_DATA} ${WRKSRC}/portlib.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/libport.a ${DESTDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/portlib.h ${DESTDIR}${PREFIX}/include .include "../../mk/bsd.pkg.mk" |