summaryrefslogtreecommitdiff
path: root/devel/libiberty
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 17:45:33 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 17:45:33 +0000
commit4c8382aec039aefeebaf1aaac5cd7985337ed917 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/libiberty
parent3a62565eb9471348d02d74145e302b5675905a43 (diff)
downloadpkgsrc-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/libiberty')
-rw-r--r--devel/libiberty/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/devel/libiberty/Makefile b/devel/libiberty/Makefile
index b837abc0518..7d27a6ccc99 100644
--- a/devel/libiberty/Makefile
+++ b/devel/libiberty/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2006/02/05 23:08:45 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2008/03/03 17:45:35 jlam Exp $
#
DISTNAME= libiberty-1.0
@@ -10,6 +10,7 @@ MAINTAINER= john@johnrshannon.com
COMMENT= This package provides the GNU liberty library of "missing" functions
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
@@ -20,8 +21,11 @@ post-extract:
${CP} -f ${WRKSRC}/include/ansidecl.h ${WRKSRC}/include/libiberty_decl.h
do-install:
- ${INSTALL_LIB} ${WRKSRC}/libiberty/libiberty.a ${PREFIX}/lib/
- ${INSTALL_DATA} ${WRKSRC}/include/libiberty_decl.h ${PREFIX}/include/
- ${INSTALL_DATA} ${WRKSRC}/include/libiberty.h ${PREFIX}/include/
+ ${INSTALL_LIB} ${WRKSRC}/libiberty/libiberty.a \
+ ${DESTDIR}${PREFIX}/lib/
+ ${INSTALL_DATA} ${WRKSRC}/include/libiberty_decl.h \
+ ${DESTDIR}${PREFIX}/include/
+ ${INSTALL_DATA} ${WRKSRC}/include/libiberty.h \
+ ${DESTDIR}${PREFIX}/include/
.include "../../mk/bsd.pkg.mk"