aboutsummaryrefslogtreecommitdiff
path: root/japanese/mozc-server
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2010-09-27 08:02:42 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2010-09-27 08:02:42 +0000
commit80bba447448fd75b510297bfc5081ae860d59f5f (patch)
treedbf673156acf338683c1573c1e04fb573a453a50 /japanese/mozc-server
parent2d7e4f9bbb026d3616e2d129326898a08f6b28d9 (diff)
downloadports-80bba447448fd75b510297bfc5081ae860d59f5f.tar.gz
ports-80bba447448fd75b510297bfc5081ae860d59f5f.zip
Notes
Diffstat (limited to 'japanese/mozc-server')
-rw-r--r--japanese/mozc-server/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/japanese/mozc-server/Makefile b/japanese/mozc-server/Makefile
index d88f467d6b92..efa4bec28f05 100644
--- a/japanese/mozc-server/Makefile
+++ b/japanese/mozc-server/Makefile
@@ -37,6 +37,12 @@ BROKEN= Does not compile on FreeBSD 7.X
BROKEN= Does not compile on sparc64: segfault
.endif
+.if defined(WITH_DEBUG_CODE)
+BUILD_MODE=Debug
+.else
+BUILD_MODE=Release
+.endif
+
.if defined(WITH_DIC_UT)
WITH_DIC_UT_MEISHI=yes
WITH_DIC_UT_JINMEI=yes
@@ -101,13 +107,13 @@ post-patch:
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 \
+ ${PYTHON_CMD} build_mozc.py build_tools -c ${BUILD_MODE}; \
+ ${PYTHON_CMD} build_mozc.py build -c ${BUILD_MODE} \
server/server.gyp:mozc_server
do-install:
@${INSTALL} -o 0 -g 0 -m 555 \
- ${WRKSRC}/out_linux/Release/mozc_server \
+ ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_server \
${LOCALBASE}/bin/mozc_server
.include <bsd.port.post.mk>