View | Details | Raw Unified | Return to bug 174406
Collapse All | Expand All

(-)/usr/ports/japanese/mozc-server/Makefile (-3 / +4 lines)
Lines 73-80 Link Here
73
		third_party/gyp/pylib/gyp/generator/make.py
73
		third_party/gyp/pylib/gyp/generator/make.py
74
SSL_REINPLACE_STR=
74
SSL_REINPLACE_STR=
75
.for V in OPENSSL_CFLAGS OPENSSLLIB OPENSSLINC OPENSSL_LDFLAGS
75
.for V in OPENSSL_CFLAGS OPENSSLLIB OPENSSLINC OPENSSL_LDFLAGS
76
SSL_REINPLACE_STR+=	-e "s,%%${V}%%,${${V}},"
76
SSL_REINPLACE_STR+=	-e "s,%%${V}%%,${${V}:S/\\/\\\\/g:S/"/\"/g:S/\$/\\$/g:S/,/\,/g},"
77
.endfor
77
.endfor
78
LOCALBASE_PTN=	${LOCALBASE:S/\\/\\\\/g:S/"/\"/g:S/\$/\\$/g:S/,/\,/g}
78
79
79
GYP_DEFINES="use_libprotobuf=1"
80
GYP_DEFINES="use_libprotobuf=1"
80
81
Lines 88-94 Link Here
88
89
89
post-patch:
90
post-patch:
90
	cd ${WRKSRC} && \
91
	cd ${WRKSRC} && \
91
		${REINPLACE_CMD} "s,@@LOCALBASE@@,${LOCALBASE},g" \
92
		${REINPLACE_CMD} "s,@@LOCALBASE@@,${LOCALBASE_PTN},g" \
92
		${LOCALBASE_REPLACE_FILES}
93
		${LOCALBASE_REPLACE_FILES}
93
	cd ${WRKSRC} && \
94
	cd ${WRKSRC} && \
94
		${REINPLACE_CMD} ${SSL_REINPLACE_STR} base/base.gyp
95
		${REINPLACE_CMD} ${SSL_REINPLACE_STR} base/base.gyp
Lines 97-103 Link Here
97
		${REINPLACE_CMD} 's,/po/mo},%po}mo,g' \
98
		${REINPLACE_CMD} 's,/po/mo},%po}mo,g' \
98
		unix/fcitx/gen_fcitx_mozc_i18n.sh
99
		unix/fcitx/gen_fcitx_mozc_i18n.sh
99
	cd ${WRKSRC} && \
100
	cd ${WRKSRC} && \
100
		${REINPLACE_CMD} "s,/usr,${LOCALBASE}," \
101
		${REINPLACE_CMD} "s,/usr,${LOCALBASE_PTN}," \
101
		unix/fcitx/mozc.conf
102
		unix/fcitx/mozc.conf
102
.endif
103
.endif
103
104

Return to bug 174406