summaryrefslogtreecommitdiff
path: root/converters/opencc/Makefile
blob: e37c2722f9253f39b32ca681087cea61d21e08e2 (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
# $NetBSD: Makefile,v 1.5 2022/03/13 06:59:19 mef Exp $

VERSION=	1.1.3
GITHUB_PROJECT=	OpenCC
GITHUB_TAG=	ver.${VERSION}
DISTNAME=	OpenCC-ver.${VERSION}
PKGNAME=	${DISTNAME:S/OpenCC-ver./opencc-/}
CATEGORIES=	converters chinese
MASTER_SITES=	${MASTER_SITE_GITHUB:=BYVoid/}

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

WRKSRC=		${WRKDIR}/${DISTNAME} # GitHub rule is not relevant for this.

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

PKGCONFIG_OVERRIDE+=	opencc.pc.in

USE_GCC_RUNTIME=	yes

MAKE_ENV+=	LD_LIBRARY_PATH=${WRKSRC}/src

TEST_TARGET=	test

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