freebsd-ports/japanese/mozc-el/Makefile
Pav Lucistnik c9b6c0f9be - Mark BROKEN: does not build
Reported by:	pointyhat
2011-12-22 00:17:27 +00:00

100 lines
2.4 KiB
Makefile

# New ports collection makefile for: mozc-el
# Date created: 26 June 2010
# Whom: TAKANO, Yuji
#
# $FreeBSD$
#
PORTNAME= mozc-el
PORTVERSION= 1.3.911.102
CATEGORIES= japanese textproc
MASTER_SITES= http://mozc.googlecode.com/files/
DISTNAME= mozc-${PORTVERSION}
MAINTAINER= maho@FreeBSD.org
COMMENT= Mozc for GNU Emacs
BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed \
${LOCALBASE}/bin/grep:${PORTSDIR}/textproc/gnugrep \
gyp:${PORTSDIR}/devel/py-gyp-devel
LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \
gtest.0:${PORTSDIR}/devel/googletest \
protobuf.7:${PORTSDIR}/devel/protobuf
RUN_DEPENDS= mozc_server:${PORTSDIR}/japanese/mozc-server \
xdg-open:${PORTSDIR}/devel/xdg-utils
BROKEN= does not build
USE_BZIP2= yes
USE_EMACS= yes
USE_GMAKE= yes
USE_ICONV= yes
USE_PYTHON= yes
PATCHDIR= ../mozc-server/files
PLIST_FILES= ${EMACS_VERSION_SITE_LISPDIR}/mozc.el \
${EMACS_VERSION_SITE_LISPDIR}/mozc.elc \
bin/mozc_emacs_helper
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800107
BROKEN= Does not compile on FreeBSD 7.X
.endif
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not compile: segfault
.endif
.if defined(WITH_DEBUG_CODE)
BUILD_MODE=Debug
.else
BUILD_MODE=Release
.endif
.if !defined(NOPORTDOCS)
SUB_FILES= pkg-message
.endif
REPLACE_FILES= ${WRKSRC}/build_mozc.py \
${WRKSRC}/gyp/common.gypi \
${WRKSRC}/base/util.cc \
${WRKSRC}/base/process.cc \
${WRKSRC}/handwriting/zinnia_handwriting.cc
post-patch:
@for FILE in ${REPLACE_FILES}; \
do \
${SED} -i .bak -e "s/@@LOCALBASE@@/${LOCALBASE:S/\//\\\//g}/g" \
$${FILE}; \
done;
do-build:
@cd ${WRKSRC}/; \
export BUILD_COMMAND=${GMAKE}; \
${PYTHON_CMD} build_mozc.py gyp --gypdir=${LOCALBASE}/bin; \
${PYTHON_CMD} build_mozc.py build_tools \
-c ${BUILD_MODE}; \
${PYTHON_CMD} build_mozc.py build \
-c ${BUILD_MODE} \
unix/emacs/emacs.gyp:mozc_emacs_helper
@cd ${WRKSRC}/unix/emacs; \
${EMACS_CMD} -batch -q -no-site-file -no-init-file \
-f batch-byte-compile mozc.el
do-install:
@${INSTALL_PROGRAM} \
${WRKSRC}/out_linux/${BUILD_MODE}/mozc_emacs_helper \
${LOCALBASE}/bin/mozc_emacs_helper
@${INSTALL_DATA} \
${WRKSRC}/unix/emacs/mozc.el \
${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mozc.el
@${INSTALL_DATA} \
${WRKSRC}/unix/emacs/mozc.elc \
${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mozc.elc
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>