diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 19:21:10 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 19:21:10 +0000 |
commit | 2ff2716acf781c9b1b039a6b95e38ecb3d95ed08 (patch) | |
tree | 49bcc2e4ee778e69c05972f13c0e319fdf272a66 /misc/xjdic | |
parent | b7a420b59c401cc1e9a58c6d5a9f19b4f93074f8 (diff) | |
download | pkgsrc-2ff2716acf781c9b1b039a6b95e38ecb3d95ed08.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'misc/xjdic')
-rw-r--r-- | misc/xjdic/Makefile | 67 |
1 files changed, 35 insertions, 32 deletions
diff --git a/misc/xjdic/Makefile b/misc/xjdic/Makefile index 30264cc0c2c..6cd817df141 100644 --- a/misc/xjdic/Makefile +++ b/misc/xjdic/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2007/12/02 11:24:35 wiz Exp $ +# $NetBSD: Makefile,v 1.14 2008/03/04 19:21:12 jlam Exp $ # DISTNAME= xjdic24 @@ -19,6 +19,8 @@ COMMENT= Japanese dictionary DEPENDS+= edict-[0-9]*:../../misc/edict DEPENDS+= kanjidic-[0-9]*:../../misc/kanjidic +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} MESSAGE_SUBST+= PREFIX=${PREFIX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} @@ -26,36 +28,37 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - cd ${WRKSRC} ; \ - for i in exjdxgen xjdic_cl xjdic_sa xjdserver xjdxgen ; \ - do \ - ${INSTALL_PROGRAM} $$i ${PREFIX}/bin ; \ - done - ${MV} ${PREFIX}/bin/xjdic_sa ${PREFIX}/bin/xjdic - ${INSTALL_DATA_DIR} ${PREFIX}/share/xjdic - ${INSTALL_DATA} \ - ${WRKSRC}/kanjstroke \ - ${WRKSRC}/radicals.tm \ - ${WRKSRC}/radkfile \ - ${WRKSRC}/romkana.cnv \ - ${WRKSRC}/vconj \ - ${PREFIX}/share/xjdic - ${INSTALL_MAN_DIR} ${PREFIX}/share/doc/xjdic - ${INSTALL_MAN} \ - ${WRKSRC}/xjdic22.WHATSNEW \ - ${WRKSRC}/xjdic23.WHATSNEW \ - ${WRKSRC}/xjdic24.WHATSNEW \ - ${WRKSRC}/xjdic24.inf \ - ${WRKSRC}/xjdic24.install \ - ${PREFIX}/share/doc/xjdic - ${INSTALL_MAN} ${WRKSRC}/xjdic.1 ${PREFIX}/${PKGMANDIR}/man1 - ${LN} -s ../edict/edict ${PREFIX}/share/xjdic/edict - ${LN} -s ../kanjidic/kanjidic ${PREFIX}/share/xjdic/kanjidic - ${PREFIX}/bin/xjdxgen ${PREFIX}/share/xjdic/edict - ${PREFIX}/bin/xjdxgen ${PREFIX}/share/xjdic/kanjidic - ${SED} \ - -e 's,/home/jwb/nihongo/dics,${PREFIX}/share/xjdic,' \ - -e '/^kdicfile/s/kanjidic_b/kanjidic/' \ - < ${WRKSRC}/.xjdicrc.skel >${PREFIX}/share/doc/xjdic/.xjdicrc + cd ${WRKSRC} ; \ + for i in exjdxgen xjdic_cl xjdic_sa xjdserver xjdxgen ; \ + do \ + ${INSTALL_PROGRAM} $$i ${DESTDIR}${PREFIX}/bin ; \ + done + ${MV} ${DESTDIR}${PREFIX}/bin/xjdic_sa ${DESTDIR}${PREFIX}/bin/xjdic + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/xjdic + ${INSTALL_DATA} \ + ${WRKSRC}/kanjstroke \ + ${WRKSRC}/radicals.tm \ + ${WRKSRC}/radkfile \ + ${WRKSRC}/romkana.cnv \ + ${WRKSRC}/vconj \ + ${DESTDIR}${PREFIX}/share/xjdic + ${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/share/doc/xjdic + ${INSTALL_MAN} \ + ${WRKSRC}/xjdic22.WHATSNEW \ + ${WRKSRC}/xjdic23.WHATSNEW \ + ${WRKSRC}/xjdic24.WHATSNEW \ + ${WRKSRC}/xjdic24.inf \ + ${WRKSRC}/xjdic24.install \ + ${DESTDIR}${PREFIX}/share/doc/xjdic + ${INSTALL_MAN} ${WRKSRC}/xjdic.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${LN} -s ../edict/edict ${DESTDIR}${PREFIX}/share/xjdic/edict + ${LN} -s ../kanjidic/kanjidic ${DESTDIR}${PREFIX}/share/xjdic/kanjidic + ${PREFIX}/bin/xjdxgen ${DESTDIR}${PREFIX}/share/xjdic/edict + ${PREFIX}/bin/xjdxgen ${DESTDIR}${PREFIX}/share/xjdic/kanjidic + ${SED} \ + -e 's,/home/jwb/nihongo/dics,${PREFIX}/share/xjdic,' \ + -e '/^kdicfile/s/kanjidic_b/kanjidic/' \ + < ${WRKSRC}/.xjdicrc.skel \ + > ${DESTDIR}${PREFIX}/share/doc/xjdic/.xjdicrc .include "../../mk/bsd.pkg.mk" |