Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.19 2015/07/31 13:07:05 ryoon Exp $
# $NetBSD: Makefile.common,v 1.25 2016/07/09 13:03:52 wiz Exp $
# used by inputmethod/ibus-mozc/Makefile
# used by inputmethod/mozc-elisp/Makefile
# used by inputmethod/mozc-server/Makefile
@@ -7,27 +7,23 @@
# used by inputmethod/uim-mozc/Makefile
#
DISTNAME= mozc-2.17.2106.102
DISTNAME= mozc-2.17.2313.102
CATEGORIES= inputmethod
MASTER_SITES= ${MASTER_SITE_GITHUB:=google/}
GITHUB_PROJECT= mozc
GITHUB_TAG= 3648b9bf06d5d9b36bed2425640bfd18ae05b588
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.xz
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://github.com/google/mozc/
COMMENT= Japanese inputmethod Mozc engine for IBus
LICENSE= modified-bsd
USAGE_DICT= usage_dict-rev10.txt
UIM_MOZC= uim-mozc-318.0562676
DISTFILES+= ${DISTNAME}-${GITHUB_TAG}${EXTRACT_SUFX} \
${USAGE_DICT} \
UIM_MOZC= uim-mozc-321.3ea28b1
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \
${UIM_MOZC}.tar.xz
SITES.${USAGE_DICT}= ${MASTER_SITE_LOCAL}
SITES.${UIM_MOZC}.tar.xz= ${MASTER_SITE_SOURCEFORGE:=pnsft-aur/}
EXTRACT_USING= bsdtar
WRKSRC= ${WRKDIR}/mozc-${GITHUB_TAG}/src
WRKSRC= ${WRKDIR}/${DISTNAME}/src
DISTINFO_FILE= ${.CURDIR}/../../inputmethod/mozc-server/distinfo
PATCHDIR= ${.CURDIR}/../../inputmethod/mozc-server/patches
@@ -35,19 +31,10 @@ PATCHDIR= ${.CURDIR}/../../inputmethod/mozc-server/patches
BUILD_DEPENDS+= ${PYPKGPREFIX}-gyp-[0-9]*:../../devel/gyp
BUILD_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build
PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-gyp
USE_LANGUAGES= c c++
# nullptr requires -std=c++11, and -std=c++11 requires gcc 4.6 or later
GCC_REQD+= 4.6
CXXFLAGS+= -std=c++03
USE_TOOLS+= gmake pkg-config
FIND_PREFIX:= GYPDIR=${PYPKGPREFIX}-gyp
#FIND_PREFIX:= NINJADIR=ninja
.include "../../mk/find-prefix.mk"
OPENSSL_CFLAGS= -I${BUILDLINK_PREFIX.openssl}/include
OPENSSL_INC= -I${BUILDLINK_PREFIX.openssl}/include
OPENSSL_LDFLAGS= -L${BUILDLINK_PREFIX.openssl}/lib -lssl -lcrypto
@@ -70,25 +57,19 @@ SUBST_VARS.gyp+= PREFIX QTDIR
ALL_ENV+= LINK=${CXX}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
OSDEST= bsd
.elif ${OPSYS} == "Linux"
OSDEST= linux
.endif
OPSYSVARS+= OSDEST
OSDEST.Linux= linux
OSDEST.NetBSD= bsd
MOZC_BUILD_MODE= Release # or Debug
pre-configure:
mkdir -p ${WRKSRC}/third_party/japanese_usage_dictionary
cp ${WRKDIR}/${USAGE_DICT} \
${WRKSRC}/third_party/japanese_usage_dictionary/usage_dict.txt
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
GYP_DEFINES="use_libprotobuf=1" \
${PYTHONBIN} build_mozc.py \
gyp \
--gypdir=${GYPDIR}/bin
--gypdir=${LOCALBASE}/bin
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/protobuf/buildlink3.mk"