summaryrefslogtreecommitdiff
path: root/converters/opencc/Makefile
blob: 7c3b678d6cbc7cb0401f663a39aa28ce149426c4 (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
# $NetBSD: Makefile,v 1.2 2014/12/04 12:03:28 obache Exp $

DISTNAME=	opencc-0.4.2
CATEGORIES=	converters chinese
MASTER_SITES=	http://dl.bintray.com/byvoid/opencc/

MAINTAINER=	obache@NetBSD.org
HOMEPAGE=	http://opencc.byvoid.com/
COMMENT=	Convertion between Traditional and Simplified Chinese
LICENSE=	apache-2.0

USE_CMAKE=	yes
USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c

PKGCONFIG_OVERRIDE+=	opencc.pc.in

USE_GCC_RUNTIME=	yes

MAKE_ENV+=	LD_LIBRARY_PATH=${WRKSRC}/src

TEST_TARGET=	test

SUBST_CLASSES+=		mandir
SUBST_STAGE.mandir=	pre-configure
SUBST_FILES.mandir=	doc/CMakeLists.txt
SUBST_SED.mandir=	-e 's,$${DIR_SHARE}/man,${PKGMANDIR},'

.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"