blob: e17df099d3307a04b62e30aab1cff21e9d2886c3 (
plain) (
blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Created by: Jacques Vidrine <nectar@FreeBSD.org>
# $FreeBSD$
PORTNAME= im-ja
PORTVERSION= 1.5
PORTREVISION= 10
CATEGORIES= japanese x11-toolkits
MASTER_SITES= http://im-ja.sourceforge.net/
MAINTAINER= ports@FreeBSD.org
COMMENT= A Japanese input module for GTK2
OPTIONS_DEFINE= ANTHY CANNA WNN GNOMEPANEL
OPTIONS_DEFAULT= ANTHY CANNA WNN
ANTHY_DESC= Use Anthy
CANNA_DESC= Use Canna
WNN_DESC= Use FreeWnn
GNOMEPANEL_DESC= Build GNOME Panel Applet
USES= pathfix perl5 gmake pkgconfig
USE_GNOME= gconf2 gnomeprefix intlhack libglade2
USE_PERL5= build
GNU_CONFIGURE= yes
MAN1= im-ja-conf.1 im-ja-xim-server.1
GCONF_SCHEMAS= im-ja.schemas
CPPFLAGS+= -I${LOCALBASE}/include -DNO_MALLOC_H
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MANTHY}
LIB_DEPENDS+= anthy.1:${PORTSDIR}/japanese/anthy
.else
CONFIGURE_ARGS+= --disable-anthy
.endif
.if ${PORT_OPTIONS:MCANNA}
LIB_DEPENDS+= RKC.1:${PORTSDIR}/japanese/canna-lib
.else
CONFIGURE_ARGS+= --disable-canna
.endif
.if ${PORT_OPTIONS:MWNN}
LIB_DEPENDS+= wnn.0:${PORTSDIR}/japanese/FreeWnn-lib
.else
CONFIGURE_ARGS+= --disable-wnn
.endif
.if ${PORT_OPTIONS:MGNOMEPANEL}
USE_GNOME+= gnomepanel
PLIST_SUB+= GNOMEPANEL=""
.else
CONFIGURE_ARGS+= --disable-gnome
PLIST_SUB+= GNOMEPANEL="@comment "
.endif
post-patch:
${FIND} ${WRKSRC} -name configure.in | ${XARGS} ${TOUCH}
${FIND} ${WRKSRC} -name aclocal.m4 | ${XARGS} ${TOUCH}
${FIND} ${WRKSRC} -name configure | ${XARGS} ${TOUCH}
${FIND} ${WRKSRC} -name config.h.in | ${XARGS} ${TOUCH}
${FIND} ${WRKSRC} -name Makefile.am | ${XARGS} ${TOUCH}
${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${TOUCH}
@${REINPLACE_CMD} -e 's|$$(datadir)/gconf|$$(sysconfdir)/gconf|g' \
${WRKSRC}/data/Makefile.in
post-install:
${LOCALBASE}/bin/gtk-query-immodules-2.0 > \
${LOCALBASE}/etc/gtk-2.0/gtk.immodules
.include <bsd.port.mk>
|