blob: a52d42a9558f8315360e8a4aeeae401b94e20059 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile,v 1.26 2021/04/21 11:40:14 adam Exp $
DISTNAME= pyzy-0.1.0
PKGREVISION= 18
CATEGORIES= converters chinese
MASTER_SITES= http://pyzy.googlecode.com/files/
DISTFILES= ${DEFAULT_DISTFILES} ${DBTAR}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/pyzy/pyzy
COMMENT= Chinese PinYin and Bopomofo conversion library
LICENSE= gnu-lgpl-v2.1
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
PKGCONFIG_OVERRIDE+= pyzy-1.0.pc.in
CONFIGURE_ARGS+= --disable-db-android
CONFIGURE_ARGS+= --enable-db-open-phrase
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
# Reduce noise to a level that real warnings can be seen
CXXFLAGS+= -Wno-gnu-designator
.endif
# taken from ${WRKSRC}/data/db/open-phrase/Makefile.am
DBVER= 1.0.0
DBTAR= pyzy-database-${DBVER}.tar.bz2
post-extract:
${RUN} cd ${WRKSRC}/data/db/open-phrase; \
mkdir -p db; \
mv ${WRKDIR}/db/main.db db/open-phrase.db; \
touch ${DBTAR} stamp-db
.include "../../mk/bsd.prefs.mk"
.include "../../mk/compiler.mk"
.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
. include "../../devel/libuuid/buildlink3.mk"
.endif
.if (!empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.[4-9]*)) || !empty(PKGSRC_COMPILER:Mclang)
CONFIGURE_ARGS+= --disable-boost
.else
CONFIGURE_ARGS+= --enable-boost
CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-headers}
.include "../../devel/boost-headers/buildlink3.mk"
.endif
# https://github.com/pyzy/pyzyissues/detail?id=4
.include "../../inputmethod/ibus/bad-env-usage.mk"
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.24.0
.include "../../devel/glib2/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|