435485fd47
Reported by: pointyhat Pointy hat to: vanilla
74 lines
1.8 KiB
Makefile
74 lines
1.8 KiB
Makefile
# New ports collection makefile for: mozc-server
|
|
# Date created: 26 June 2010
|
|
# Whom: Daichi GOTO <daichi@freebsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mozc-server
|
|
PORTVERSION= 0.13.523.102
|
|
PORTREVISION= 1
|
|
CATEGORIES= japanese
|
|
MASTER_SITES= http://people.freebsd.org/~daichi/distfiles/
|
|
DISTNAME= mozc-${PORTVERSION}
|
|
DISTFILES= ${DISTNAME}.tar.bz2
|
|
|
|
MAINTAINER= daichi@FreeBSD.org
|
|
COMMENT= Mozc server for IBus, SCIM and others
|
|
|
|
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= xdg-open:${PORTSDIR}/devel/xdg-utils
|
|
|
|
USE_GMAKE= yes
|
|
USE_ICONV= yes
|
|
USE_PYTHON= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 800107
|
|
BROKEN= Does not compile on FreeBSD 7.X
|
|
.endif
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= Does not compile on sparc64: segfault
|
|
.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 \
|
|
${WRKSRC}/base/process.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} --qtdir=${QT_LIBDIR}; \
|
|
${PYTHON_CMD} build_mozc.py build \
|
|
-c ${BUILD_MODE} --qtdir=${QT_LIBDIR}\
|
|
server/server.gyp:mozc_server
|
|
|
|
do-install:
|
|
@${INSTALL} -o 0 -g 0 -m 555 \
|
|
${WRKSRC}/out_linux/${BUILD_MODE}/mozc_server \
|
|
${LOCALBASE}/bin/mozc_server
|
|
|
|
.include <bsd.port.post.mk>
|