File:
[cvs.NetBSD.org] /
pkgsrc /
inputmethod /
canna-dict /
Makefile
Revision
1.16:
download - view:
text,
annotated -
select for diffs
Wed Nov 25 12:50:57 2015 UTC (9 years ago) by
jperkin
Branches:
MAIN
CVS tags:
pkgsrc-2019Q3-base,
pkgsrc-2019Q3,
pkgsrc-2019Q2-base,
pkgsrc-2019Q2,
pkgsrc-2019Q1-base,
pkgsrc-2019Q1,
pkgsrc-2018Q4-base,
pkgsrc-2018Q4,
pkgsrc-2018Q3-base,
pkgsrc-2018Q3,
pkgsrc-2018Q2-base,
pkgsrc-2018Q2,
pkgsrc-2018Q1-base,
pkgsrc-2018Q1,
pkgsrc-2017Q4-base,
pkgsrc-2017Q4,
pkgsrc-2017Q3-base,
pkgsrc-2017Q3,
pkgsrc-2017Q2-base,
pkgsrc-2017Q2,
pkgsrc-2017Q1-base,
pkgsrc-2017Q1,
pkgsrc-2016Q4-base,
pkgsrc-2016Q4,
pkgsrc-2016Q3-base,
pkgsrc-2016Q3,
pkgsrc-2016Q2-base,
pkgsrc-2016Q2,
pkgsrc-2016Q1-base,
pkgsrc-2016Q1,
pkgsrc-2015Q4-base,
pkgsrc-2015Q4,
HEAD
Remove mk/find-prefix.mk usage from the inputmethod category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.
Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure. Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.
Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
# $NetBSD: Makefile,v 1.16 2015/11/25 12:50:57 jperkin Exp $
CANNA_MODULE= dict
MAKE_JOBS_SAFE= no
.include "../../inputmethod/canna/Makefile.common"
BUILD_DEPENDS+= Canna-server>=${CANNA_VERSION}:../../inputmethod/canna-server
.for cmd in MERGE FORCPP FORSORT SPLITWORD MERGEWORD CRXGRAM CRXDIC CRFREQ KPDIC
CANNA_CMD_SED_SCRIPT+= \
-e 's|\(${cmd} = \).*/\(.*\)|\1${LOCALBASE}/bin/\2|'
.endfor
DICT_WRKSRC= ${WRKSRC}/dic/ideo
CANNA_DICTDIR= ${PREFIX}/libdata/canna
PKG_GROUPS= ${CANNA_GROUP}
PKG_USERS= ${CANNA_USER}:${CANNA_GROUP}
post-patch:
${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
${SED} -e 's|\(SUBDIRS = \).*|\1 canna lib/RKindep dic/ideo|' \
${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
@${MV} ${WRKSRC}/Canna.conf ${WRKSRC}/Canna.conf.orig
@${SED} -e 's|\(DicDir.*=\).*|\1${IMDICTDIR}/canna|' \
${WRKSRC}/Canna.conf.orig > ${WRKSRC}/Canna.conf
@for file in `${FIND} ${DICT_WRKSRC} -name Imakefile -print`; do \
${MV} $$file $$file.orig; \
${SED} ${CANNA_CMD_SED_SCRIPT} $$file.orig > $$file; \
done
INSTALLATION_DIRS+= ${CANNA_DICTDIR}
do-install:
${INSTALL_DATA} ${DICT_WRKSRC}/grammar/fuzokugo.cbd \
${DESTDIR}${CANNA_DICTDIR}
${INSTALL_DATA} ${DICT_WRKSRC}/words/bushu.cld \
${DESTDIR}${CANNA_DICTDIR}
${INSTALL_DATA} ${DICT_WRKSRC}/words/dics.dir \
${DESTDIR}${CANNA_DICTDIR}
${INSTALL_DATA} ${DICT_WRKSRC}/words/iroha.cbd \
${DESTDIR}${CANNA_DICTDIR}
${INSTALL_DATA} ${DICT_WRKSRC}/words/iroha.cld \
${DESTDIR}${CANNA_DICTDIR}
${INSTALL_DATA} ${DICT_WRKSRC}/words/chimei.t \
${DESTDIR}${CANNA_DICTDIR}/chimei.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/hojomwd.t \
${DESTDIR}${CANNA_DICTDIR}/hojomwd.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/hojoswd.t \
${DESTDIR}${CANNA_DICTDIR}/hojoswd.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/kanasmpl.t \
${DESTDIR}${CANNA_DICTDIR}/kanasmpl.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/katakana.t \
${DESTDIR}${CANNA_DICTDIR}/katakana.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/keishiki.t \
${DESTDIR}${CANNA_DICTDIR}/keishiki.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/necgaiji.t \
${DESTDIR}${CANNA_DICTDIR}/necgaiji.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/number.t \
${DESTDIR}${CANNA_DICTDIR}/number.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/software.t \
${DESTDIR}${CANNA_DICTDIR}/software.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/suffix.t \
${DESTDIR}${CANNA_DICTDIR}/suffix.ctd
REQD_DIRS_PERMS+= ${CANNA_DICTDIR} ${CANNA_USER} ${CANNA_GROUP} 0775
.for d in fuzokugo.cbd bushu.cld dics.dir iroha.cbd iroha.cld \
chimei.ctd hojomwd.ctd hojoswd.ctd kanasmpl.ctd katakana.ctd \
keishiki.ctd necgaiji.ctd number.ctd software.ctd suffix.ctd
SPECIAL_PERMS+= ${CANNA_DICTDIR}/${d} ${CANNA_USER} ${CANNA_GROUP} 0664
.endfor
.include "../../inputmethod/canna-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>