aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/cmigemo/Makefile
blob: 63da8c61fe1082efec56b87f699ab39b26e5cc49 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Created by: MANTANI Nobutaka <nobutaka@FreeBSD.org>
# $FreeBSD$

PORTNAME=   cmigemo
PORTVERSION=    20141220
CATEGORIES= japanese
MASTER_SITES?=  GHL
DIST_SUBDIR=    cmigemo

USE_GITHUB= yes
GH_ACCOUNT= koron
GH_PROJECT= cmigemo
GH_COMMIT=  ${GH_TAGNAME}
GH_TAGNAME= 6a1c438

MAINTAINER= nobutaka@FreeBSD.org
COMMENT=    C implementation of Migemo Japanese incremental search tool

.if !defined(PKGNAMESUFFIX)
LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/doc/LICENSE_MIT.txt

RUN_DEPENDS=    ${DATADIR}/cp932/migemo-dict:${PORTSDIR}/japanese/cmigemo-dict

USE_LDCONFIG=   yes

ALL_TARGET= gcc-rel gcc-dat
INSTALL_TARGET= gcc-install

DOCSDIR=    ${PREFIX}/share/doc/ja/${PORTNAME}
PORTDOCS=   README_j.txt

.endif

OPTIONS_DEFINE+=DOCS
USES+=      gmake
BUILD_DEPENDS=  ${LOCALBASE}/bin/nkf:${PORTSDIR}/japanese/nkf

HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${STAGEDIR}${PREFIX}

.include <bsd.port.options.mk>

.if !defined(PKGNAMESUFFIX) && ${PORT_OPTIONS:MDOCS}
INSTALL_TARGET+=gcc-install-doc
.endif

.if !target(post-extract)
post-extract:
    ${CHMOD} a+x ${WRKSRC}/configure
.endif

post-patch:
    ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/compile/config.mk.in

.include <bsd.port.mk>