aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--japanese/ibus-mozc/Makefile12
-rw-r--r--japanese/mozc-server/Makefile12
-rw-r--r--japanese/mozc-tool/Makefile12
-rw-r--r--japanese/scim-mozc/Makefile12
4 files changed, 36 insertions, 12 deletions
diff --git a/japanese/ibus-mozc/Makefile b/japanese/ibus-mozc/Makefile
index 5d6637897187..857e694fa181 100644
--- a/japanese/ibus-mozc/Makefile
+++ b/japanese/ibus-mozc/Makefile
@@ -40,6 +40,12 @@ USE_PYTHON= yes
BROKEN= Does not compile on FreeBSD 7.X
.endif
+.if defined(WITH_DEBUG_CODE)
+BUILD_MODE=Debug
+.else
+BUILD_MODE=Release
+.endif
+
REPLACE_FILES= ${WRKSRC}/build_mozc.py \
${WRKSRC}/gyp/common.gypi \
${WRKSRC}/unix/ibus/gen_mozc_xml.py \
@@ -58,13 +64,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} \
unix/ibus/ibus.gyp:ibus_mozc
do-install:
@${INSTALL} -o 0 -g 0 -m 555 \
- ${WRKSRC}/out_linux/Release/ibus_mozc \
+ ${WRKSRC}/out_linux/${BUILD_MODE}/ibus_mozc \
${LOCALBASE}/libexec/ibus-engine-mozc
@${INSTALL} -o 0 -g 0 -m 444 \
${WRKSRC}/unix/ibus/mozc.xml \
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>
diff --git a/japanese/mozc-tool/Makefile b/japanese/mozc-tool/Makefile
index 85b7130331c6..f483dc45b76f 100644
--- a/japanese/mozc-tool/Makefile
+++ b/japanese/mozc-tool/Makefile
@@ -35,6 +35,12 @@ QT_COMPONENTS= gui dbus qmake_build moc_build uic_build rcc_build
BROKEN= Does not compile on FreeBSD 7.X
.endif
+.if defined(WITH_DEBUG_CODE)
+BUILD_MODE=Debug
+.else
+BUILD_MODE=Release
+.endif
+
REPLACE_FILES= ${WRKSRC}/build_mozc.py \
${WRKSRC}/gyp/common.gypi \
${WRKSRC}/base/util.cc \
@@ -52,13 +58,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} \
gui/gui.gyp:mozc_tool
do-install:
@${INSTALL} -o 0 -g 0 -m 555 \
- ${WRKSRC}/out_linux/Release/mozc_tool \
+ ${WRKSRC}/out_linux/${BUILD_MODE}/mozc_tool \
${LOCALBASE}/bin/mozc_tool
@${MKDIR} ${LOCALBASE}/share/mozc-tool/icons
@${INSTALL} -o 0 -g 0 -m 444 \
diff --git a/japanese/scim-mozc/Makefile b/japanese/scim-mozc/Makefile
index 08d478b84a4b..19e9f5bbc574 100644
--- a/japanese/scim-mozc/Makefile
+++ b/japanese/scim-mozc/Makefile
@@ -40,6 +40,12 @@ USE_PYTHON= yes
BROKEN= Does not compile on FreeBSD 7.X
.endif
+.if defined(WITH_DEBUG_CODE)
+BUILD_MODE=Debug
+.else
+BUILD_MODE=Release
+.endif
+
REPLACE_FILES= ${WRKSRC}/build_mozc.py \
${WRKSRC}/gyp/common.gypi \
${WRKSRC}/base/util.cc \
@@ -57,17 +63,17 @@ 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_tools -c ${BUILD_MODE}; \
${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 \
+ ${WRKSRC}/out_linux/${BUILD_MODE}/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 \
+ ${WRKSRC}/out_linux/${BUILD_MODE}/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 \