aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/opencc/Makefile
blob: c138ddfffc929354e418c13b553431031da4906f (plain) (blame)
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
# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$

PORTNAME=   opencc
PORTVERSION=    1.0.5
DISTVERSIONPREFIX=  ver.
PORTREVISION=   3
CATEGORIES= chinese converters

MAINTAINER= lichray@gmail.com
COMMENT=    Open Chinese Convert library and utilities

LICENSE=    APACHE20

USE_GITHUB= yes
GH_ACCOUNT= BYVoid
GH_PROJECT= OpenCC

USES=       cmake compiler:c++11-lib python:build
USE_LDCONFIG=   yes

OPTIONS_DEFINE= TESTS

TESTS_DESC= Build the unit testing
TESTS_CMAKE_ON= -DENABLE_GTEST=ON

MAKE_JOBS_UNSAFE=   yes
TEST_TARGET=    test

post-patch:
    @${REINPLACE_CMD} -e "s|python|${PYTHON_CMD}|g" \
        ${WRKSRC}/data/CMakeLists.txt

.include <bsd.port.mk>