Tue Jul 7 21:58:39 2009 UTC ()
user-destdir support


(joerg)
diff -r1.1.1.1 -r1.2 pkgsrc/textproc/hunspell-en_US/Makefile

cvs diff -r1.1.1.1 -r1.2 pkgsrc/textproc/hunspell-en_US/Makefile (expand / switch to context diff)
--- pkgsrc/textproc/hunspell-en_US/Makefile 2007/09/11 18:38:15 1.1.1.1
+++ pkgsrc/textproc/hunspell-en_US/Makefile 2009/07/07 21:58:38 1.2
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/09/11 18:38:15 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2009/07/07 21:58:38 joerg Exp $
 #
 
 VERSION=	20060207
@@ -12,6 +12,8 @@
 HOMEPAGE=	http://wiki.services.openoffice.org/wiki/Dictionaries
 COMMENT=	US American English dictionaries for hunspell
 
+PKG_DESTDIR_SUPPORT=	user-destdir
+
 DIST_SUBDIR=	hunspell-dictionaries/en_US-${VERSION}
 # don't want -L
 EXTRACT_OPTS_ZIP=	-aqo
@@ -24,8 +26,8 @@
 do-build:
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/en_US.* ${PREFIX}/share/hunspell
+	${INSTALL_DATA} ${WRKSRC}/en_US.* ${DESTDIR}${PREFIX}/share/hunspell
 	${INSTALL_DATA} ${WRKSRC}/README_en_US.txt \
-		${PREFIX}/share/doc/hunspell-en_US
+		${DESTDIR}${PREFIX}/share/doc/hunspell-en_US
 
 .include "../../mk/bsd.pkg.mk"