pkgsrc/inputmethod/anthy/Makefile
obache 9b0ec56268 * no need gmake to build
* more stacksize to build dictironary.
2010-10-08 01:05:48 +00:00

51 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2010/10/08 01:05:48 obache Exp $
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../inputmethod/anthy/Makefile.common"
EXTRACT_ONLY= ${DISTNAME}.tar.gz
MAINTAINER= taya@NetBSD.org
COMMENT= Kana Kanji conversion system
USE_LIBTOOL= yes
USE_LANGUAGES= c
USE_TOOLS+= printf
GNU_CONFIGURE= yes
CONFIGURE_ENV+= EMACS=no
EGDIR= ${PREFIX}/share/examples/anthy
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
INSTALLATION_DIRS= share/doc/anthy
CONF_FILES+= ${EGDIR}/anthy-conf ${PKG_SYSCONFDIR}/anthy-conf
PKGCONFIG_OVERRIDE+= anthy.pc.in
UNLIMIT_RESOURCES+= stacksize
.include "options.mk"
post-patch:
.if !empty(PKG_OPTIONS:Manthy-2ch-dict)
${CP} ${DISTDIR}/2ch.t ${WRKSRC}/mkworddic
# Don't change "\n".
@${PRINTF} "/read @top_srcdir@\\\\/mkworddic\\\\/base.t\na\nread @top_srcdir@/mkworddic/2ch.t\n.\nw\n" | \
ed -s ${WRKSRC}/mkworddic/dict.args.in
.endif
.if !empty(PKG_OPTIONS:Manthy-okinawa-dict)
${CP} ${DISTDIR}/${OKIDIC_VERSION}.t ${WRKSRC}/mkworddic/okinawa.t
# Don't change "\n".
@${PRINTF} "/read @top_srcdir@\\\\/mkworddic\\\\/base.t\na\nread @top_srcdir@/mkworddic/okinawa.t\n.\nw\n" | \
ed -s ${WRKSRC}/mkworddic/dict.args.in
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/DICUTIL ${DESTDIR}${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/doc/ELISP ${DESTDIR}${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/doc/GUIDE.english ${DESTDIR}${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/README.en ${DESTDIR}${PREFIX}/share/doc/anthy
.include "../../mk/bsd.pkg.mk"