blob: 58bb9a00280bc83de995d195c9eba7f7fd649863 (
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
|
# $NetBSD: Makefile,v 1.6 2005/06/01 14:03:15 dillo Exp $
.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+= 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
PKG_OPTIONS_LEGACY_VARS+= USE_2CH_DICT:2ch_dict
PKG_OPTIONS_LEGACY_VARS+= USE_OKINAWA_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)
DISTFILES+= okinawa-20050410.t
SITES_okinawa-20050410.t+= http://www.ofug.net/~yamajun/files/
.endif
post-patch:
.if !empty(PKG_OPTIONS:M2ch_dict)
${CP} ${DISTDIR}/2ch.t ${WRKSRC}/mkanthydic
@printf '/^EXTRA_DICS\ns/$$/ 2ch.t/\nwq\n' | \
ed -s ${WRKSRC}/mkanthydic/Makefile.in
.endif
.if !empty(PKG_OPTIONS:Mokinawa_dict)
${CP} ${DISTDIR}/okinawa-20050410.t ${WRKSRC}/mkanthydic
@printf '/^EXTRA_DICS\ns/$$/ okinawa-20050410.t/\nwq\n' | \
ed -s ${WRKSRC}/mkanthydic/Makefile.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
.include "../../mk/bsd.pkg.mk"
|