diff options
author | jlam <jlam> | 2008-03-04 19:21:10 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-04 19:21:10 +0000 |
commit | 476429c9f7b93362ea027fafcaa1bb835868c0d1 (patch) | |
tree | 49bcc2e4ee778e69c05972f13c0e319fdf272a66 /misc/kanjidic2 | |
parent | df44780831cf4dadccea821bb560fbdd11bda60b (diff) | |
download | pkgsrc-476429c9f7b93362ea027fafcaa1bb835868c0d1.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'misc/kanjidic2')
-rw-r--r-- | misc/kanjidic2/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/misc/kanjidic2/Makefile b/misc/kanjidic2/Makefile index 4601538d8b7..b5cf7e9a535 100644 --- a/misc/kanjidic2/Makefile +++ b/misc/kanjidic2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2007/07/08 09:43:49 wiz Exp $ +# $NetBSD: Makefile,v 1.9 2008/03/04 19:21:11 jlam Exp $ # # Update instructions: # . bump PKGNAME to today's date @@ -18,6 +18,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.csse.monash.edu.au/~jwb/kanjidic.html COMMENT= Japanese Kanji information +PKG_DESTDIR_SUPPORT= user-destdir + DIST_SUBDIR= ${PKGNAME_NOREV} EXTRACT_ONLY= kanjidic2.xml.gz kanjidic2_dtd.gz kanjidic2_xsd.gz WRKSRC= ${WRKDIR} @@ -25,16 +27,17 @@ WRKSRC= ${WRKDIR} NO_BUILD= yes do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/kanjidic2 - ${INSTALL_DATA} ${WRKSRC}/kanjidic2.xml ${PREFIX}/share/kanjidic2/ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/kanjidic2 + ${INSTALL_DATA} ${WRKSRC}/kanjidic2.xml \ + ${DESTDIR}${PREFIX}/share/kanjidic2/ ${INSTALL_DATA} ${WRKSRC}/kanjidic2_dtd \ - ${PREFIX}/share/kanjidic2/kanjidic2.dtd + ${DESTDIR}${PREFIX}/share/kanjidic2/kanjidic2.dtd ${INSTALL_DATA} ${WRKSRC}/kanjidic2_xsd \ - ${PREFIX}/share/kanjidic2/kanjidic2.xsd - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kanjidic2 + ${DESTDIR}${PREFIX}/share/kanjidic2/kanjidic2.xsd + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/kanjidic2 ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/kanjidic_doc.html \ - ${PREFIX}/share/doc/kanjidic2 + ${DESTDIR}${PREFIX}/share/doc/kanjidic2 ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/kanjidic2_ov.html \ - ${PREFIX}/share/doc/kanjidic2 + ${DESTDIR}${PREFIX}/share/doc/kanjidic2 .include "../../mk/bsd.pkg.mk" |