blob: fd27a06334f6bd1babc0ab2790f199aa27376638 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $NetBSD: Makefile,v 1.12 2006/04/12 09:21:06 rillig Exp $
.include "../../inputmethod/anthy/Makefile.common"
EXTRACT_ONLY= ${DISTNAME}.tar.gz
PKGREVISION= 1
MAINTAINER= taya@NetBSD.org
COMMENT= Kana Kanji conversion system
USE_LIBTOOL= yes
USE_LANGUAGES= c
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
CONFIGURE_ENV+= EMACS=no
PKGCONFIG_OVERRIDE+= anthy.pc.in
PKG_OPTIONS_VAR= PKG_OPTIONS.anthy
PKG_SUPPORTED_OPTIONS= 2ch_dict okinawa_dict
.include "../../mk/bsd.options.mk"
###
### Optional dictionary support
###
.if !empty(PKG_OPTIONS:M2ch_dict)
DISTFILES+= 2ch.t
SITES.2ch.t+= http://omaemona.sourceforge.net/packages/Zisyo/
.endif
.if !empty(PKG_OPTIONS:Mokinawa_dict)
OKIDIC_VERSION= okinawa-20051104
DISTFILES+= ${OKIDIC_VERSION}.tar.gz
EXTRACT_ONLY+= ${OKIDIC_VERSION}.tar.gz
SITES.${OKIDIC_VERSION}.tar.gz+= http://www.ofug.net/~yamajun/files/
.endif
post-patch:
.if !empty(PKG_OPTIONS:M2ch_dict)
${CP} ${DISTDIR}/2ch.t ${WRKSRC}/mkanthydic
@${PRINTF} "/read @top_srcdir@\\\\/mkanthydic\\\\/placename.t\\na\\nread @top_srcdir@/mkanthydic/2ch.t\\n.\\nw\\n" | \
ed -s ${WRKSRC}/mkanthydic/dict.args.in
.endif
.if !empty(PKG_OPTIONS:Mokinawa_dict)
${CP} ${WRKDIR}/${OKIDIC_VERSION}/okinawa.t ${WRKSRC}/mkanthydic
@${PRINTF} "/read @top_srcdir@\\\\/mkanthydic\\\\/placename.t\\na\\nread @top_srcdir@/mkanthydic/okinawa.t\\n.\\nw\\n" | \
ed -s ${WRKSRC}/mkanthydic/dict.args.in
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/doc/DICUTIL ${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/doc/ELISP ${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/doc/GUIDE.english ${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/README.en ${PREFIX}/share/doc/anthy
.include "../../mk/bsd.pkg.mk"
|