From 1eda43f28414247090e3adc6fce98331f63fa452 Mon Sep 17 00:00:00 2001
From: joerg <joerg@pkgsrc.org>
Date: Fri, 3 Nov 2006 06:56:23 +0000
Subject: DESTDIR support.

---
 textproc/expat/Makefile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'textproc/expat')

diff --git a/textproc/expat/Makefile b/textproc/expat/Makefile
index b64e620230f..97efc4ea6e7 100644
--- a/textproc/expat/Makefile
+++ b/textproc/expat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2006/02/05 23:11:01 joerg Exp $
+# $NetBSD: Makefile,v 1.22 2006/11/03 06:56:23 joerg Exp $
 #
 
 DISTNAME=	expat-2.0.0
@@ -11,6 +11,7 @@ HOMEPAGE=	http://expat.sourceforge.net/
 COMMENT=	XML parser library written in C
 
 PKG_INSTALLATION_TYPES=	overwrite pkgviews
+PKG_DESTDIR_SUPPORT=	user-destdir
 
 GNU_CONFIGURE=		YES
 USE_LIBTOOL=		YES
@@ -19,8 +20,8 @@ USE_TOOLS+=		gmake
 DOCDIR=	${PREFIX}/share/doc/html/expat
 
 post-install:
-	${INSTALL_DATA_DIR} ${DOCDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/reference.html ${DOCDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/style.css ${DOCDIR}
+	${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/reference.html ${DESTDIR}${DOCDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/style.css ${DESTDIR}${DOCDIR}
 
 .include "../../mk/bsd.pkg.mk"
-- 
cgit v1.2.3