blob: 08d478b84a4bab2d8dd73c9e23bc5dbe147f4bdb (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# New ports collection makefile for: scim-mozc
# Date created: 26 June 2010
# Whom: Daichi GOTO <daichi@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= scim-mozc
PORTVERSION= 0.13.481.102
CATEGORIES= japanese
MASTER_SITES= http://people.freebsd.org/~daichi/distfiles/
DISTNAME= mozc-${PORTVERSION}
DISTFILES= ${DISTNAME}.tar.bz2
MAINTAINER= daichi@freebsd.org
COMMENT= Mozc engine for SCIM
BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed \
${LOCALBASE}/bin/grep:${PORTSDIR}/textproc/gnugrep \
gyp:${PORTSDIR}/devel/py-gyp-devel \
scim:${PORTSDIR}/textproc/scim
LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \
gtest.0:${PORTSDIR}/devel/googletest \
protobuf.6:${PORTSDIR}/devel/protobuf
RUN_DEPENDS= mozc_server:${PORTSDIR}/japanese/mozc-server \
mozc_tool:${PORTSDIR}/japanese/mozc-tool \
mozc_server_start:${PORTSDIR}/japanese/mozc-additions \
${PYTHON_SITELIBDIR}/gtk-2.0/pynotify/_pynotify.so:${PORTSDIR}/devel/py-notify \
scim:${PORTSDIR}/textproc/scim \
xdg-open:${PORTSDIR}/devel/xdg-utils
USE_ICONV= yes
USE_GNOME= pygtk2
USE_GMAKE= yes
USE_PYTHON= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800107
BROKEN= Does not compile on FreeBSD 7.X
.endif
REPLACE_FILES= ${WRKSRC}/build_mozc.py \
${WRKSRC}/gyp/common.gypi \
${WRKSRC}/base/util.cc \
${WRKSRC}/base/process.cc \
${WRKSRC}/unix/scim/scim.gyp \
${WRKSRC}/unix/scim/scim_mozc.cc
post-patch:
@for FILE in ${REPLACE_FILES}; \
do \
${SED} -i .bak -e "s/@@LOCALBASE@@/${LOCALBASE:S/\//\\\//g}/g" \
$${FILE}; \
done;
do-build:
@cd ${WRKSRC}/; \
${PYTHON_CMD} build_mozc.py gyp --gypdir=${LOCALBASE}/bin; \
${PYTHON_CMD} build_mozc.py build_tools -c Release; \
${PYTHON_CMD} build_mozc.py build -c Release \
unix/scim/scim.gyp:scim_mozc \
unix/scim/scim.gyp:scim_mozc_setup
do-install:
@${INSTALL} -o 0 -g 0 -m 555 \
${WRKSRC}/out_linux/Release/lib.target/libscim_mozc.so \
${LOCALBASE}/lib/scim-1.0/1.4.0/IMEngine/mozc.so
@${INSTALL} -o 0 -g 0 -m 555 \
${WRKSRC}/out_linux/Release/lib.target/libscim_mozc_setup.so \
${LOCALBASE}/lib/scim-1.0/1.4.0/SetupUI/mozc_setup.so
@${MKDIR} ${LOCALBASE}/share/scim-mozc/icons
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/data/images/unix/ui-alpha_full.png \
${LOCALBASE}/share/scim-mozc/icons/scim-mozc-alpha_full.png
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/data/images/unix/ui-alpha_half.png \
${LOCALBASE}/share/scim-mozc/icons/scim-mozc-alpha_half.png
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/data/images/unix/ui-dictionary.png \
${LOCALBASE}/share/scim-mozc/icons/scim-mozc-dictionary.png
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/data/images/unix/ui-direct.png \
${LOCALBASE}/share/scim-mozc/icons/scim-mozc-direct.png
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/data/images/unix/ui-hiragana.png \
${LOCALBASE}/share/scim-mozc/icons/scim-mozc-hiragana.png
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/data/images/unix/ui-katakana_full.png \
${LOCALBASE}/share/scim-mozc/icons/scim-mozc-katakana_full.png
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/data/images/unix/ui-katakana_half.png \
${LOCALBASE}/share/scim-mozc/icons/scim-mozc-katakana_half.png
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/data/images/unix/ui-properties.png \
${LOCALBASE}/share/scim-mozc/icons/scim-mozc-properties.png
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/data/images/unix/ui-tool.png \
${LOCALBASE}/share/scim-mozc/icons/scim-mozc-tool.png
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \
${LOCALBASE}/share/scim-mozc/icons/scim-mozc.png
post-install:
@${CAT} ${PKGMESSAGE}
@${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
.include <bsd.port.post.mk>
|