aboutsummaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2012-12-14 07:52:55 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2012-12-14 07:52:55 +0000
commit0ddd2daf37a4137472de170d1c6180ba61059872 (patch)
tree999d57593a6970b59cf5a474cb1eb44fcbdd5bc3 /japanese
parent5ba24ed896375e40859f9ee4d1259399a7ac22cd (diff)
downloadports-0ddd2daf37a4137472de170d1c6180ba61059872.tar.gz
ports-0ddd2daf37a4137472de170d1c6180ba61059872.zip
Notes
Diffstat (limited to 'japanese')
-rw-r--r--japanese/mozc-server/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/japanese/mozc-server/Makefile b/japanese/mozc-server/Makefile
index 36cdb571bda9..be3f86ed936d 100644
--- a/japanese/mozc-server/Makefile
+++ b/japanese/mozc-server/Makefile
@@ -73,8 +73,9 @@ LOCALBASE_REPLACE_FILES= \
third_party/gyp/pylib/gyp/generator/make.py
SSL_REINPLACE_STR=
.for V in OPENSSL_CFLAGS OPENSSLLIB OPENSSLINC OPENSSL_LDFLAGS
-SSL_REINPLACE_STR+= -e "s,%%${V}%%,${${V}},"
+SSL_REINPLACE_STR+= -e "s,%%${V}%%,${${V}:S/\\/\\\\/g:S/"/\"/g:S/\$/\\$/g:S/,/\,/g},"
.endfor
+LOCALBASE_PTN= ${LOCALBASE:S/\\/\\\\/g:S/"/\"/g:S/\$/\\$/g:S/,/\,/g}
GYP_DEFINES="use_libprotobuf=1"
@@ -88,7 +89,7 @@ BUILD_GYP_CMD= cd ${WRKSRC}/third_party/gyp && ${SETENV} ${MAKE_ENV} ${PYTHON_CM
post-patch:
cd ${WRKSRC} && \
- ${REINPLACE_CMD} "s,@@LOCALBASE@@,${LOCALBASE},g" \
+ ${REINPLACE_CMD} "s,@@LOCALBASE@@,${LOCALBASE_PTN},g" \
${LOCALBASE_REPLACE_FILES}
cd ${WRKSRC} && \
${REINPLACE_CMD} ${SSL_REINPLACE_STR} base/base.gyp
@@ -97,7 +98,7 @@ post-patch:
${REINPLACE_CMD} 's,/po/mo},%po}mo,g' \
unix/fcitx/gen_fcitx_mozc_i18n.sh
cd ${WRKSRC} && \
- ${REINPLACE_CMD} "s,/usr,${LOCALBASE}," \
+ ${REINPLACE_CMD} "s,/usr,${LOCALBASE_PTN}," \
unix/fcitx/mozc.conf
.endif