diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2011-12-10 11:14:24 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2011-12-10 11:14:24 +0000 |
commit | d338c492b0c50161c8fa551b851582a206f94018 (patch) | |
tree | 16d7d95d5b5e2353b1625d1a380bfa8000407718 /japanese/scim-mozc | |
parent | 9e572d3992bda41c51b7df96872f1db0ed53541e (diff) |
Notes
Diffstat (limited to 'japanese/scim-mozc')
-rw-r--r-- | japanese/scim-mozc/Makefile | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/japanese/scim-mozc/Makefile b/japanese/scim-mozc/Makefile index f5fae4156ccb..46ca1565fae2 100644 --- a/japanese/scim-mozc/Makefile +++ b/japanese/scim-mozc/Makefile @@ -22,7 +22,8 @@ BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed \ scim:${PORTSDIR}/textproc/scim LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \ gtest.0:${PORTSDIR}/devel/googletest \ - protobuf.7:${PORTSDIR}/devel/protobuf + protobuf.7:${PORTSDIR}/devel/protobuf \ + zinnia.0:${PORTSDIR}/japanese/zinnia RUN_DEPENDS= mozc_server:${PORTSDIR}/japanese/mozc-server \ mozc_tool:${PORTSDIR}/japanese/mozc-tool \ mozc_server_start:${PORTSDIR}/japanese/mozc-additions \ @@ -38,16 +39,28 @@ USE_PYTHON= yes .include <bsd.port.pre.mk> .if ${OSVERSION} < 800107 -BROKEN= Does not compile on FreeBSD 7.X +BROKEN= Does not compile on FreeBSD 7.X +.endif + +.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" +BROKEN= Does not compile: segfault +.endif + +# workaround for a gcc4.2.1's namespace bug +.if (${OSVERSION} < 1000000 && ${OSVERSION} > 9000000) || ${OSVERSION} < 802503 +BUILD_DEPENDS+= gcc42:${PORTSDIR}/lang/gcc42 +CC= gcc42 +CXX= g++42 .endif .if defined(WITH_DEBUG_CODE) -BUILD_MODE=Debug +BUILD_MODE= Debug .else -BUILD_MODE=Release +BUILD_MODE= Release .endif -REPLACE_FILES= ${WRKSRC}/build_mozc.py \ +LOCALBASE_REPLACE_FILES= \ + ${WRKSRC}/build_mozc.py \ ${WRKSRC}/gyp/common.gypi \ ${WRKSRC}/base/util.cc \ ${WRKSRC}/base/process.cc \ @@ -56,7 +69,7 @@ REPLACE_FILES= ${WRKSRC}/build_mozc.py \ ${WRKSRC}/handwriting/zinnia_handwriting.cc post-patch: - @for FILE in ${REPLACE_FILES}; \ + @for FILE in ${LOCALBASE_REPLACE_FILES}; \ do \ ${SED} -i .bak -e "s/@@LOCALBASE@@/${LOCALBASE:S/\//\\\//g}/g" \ $${FILE}; \ @@ -65,6 +78,9 @@ post-patch: do-build: @cd ${WRKSRC}/; \ export BUILD_COMMAND=${GMAKE}; \ + export CC=${CC}; export CFLAGS="${CFLAGS}"; \ + export CXX=${CXX}; export CXXFLAGS="${CXXFLAGS}"; \ + export LDFLAGS="-L${LOCALBASE}/lib"; \ ${PYTHON_CMD} build_mozc.py gyp --gypdir=${LOCALBASE}/bin; \ ${PYTHON_CMD} build_mozc.py build_tools \ -c ${BUILD_MODE}; \ |