summaryrefslogtreecommitdiff
path: root/textproc/cmigemo/Makefile
blob: 615b27c0a80a628688e1793fa8993d14c8916467 (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
# $NetBSD: Makefile,v 1.8 2014/05/29 23:37:33 wiz Exp $
#

DISTNAME=	cmigemo-default-src-20110227
PKGNAME=	${DISTNAME:S/-default-src-/-1.3e./}
PKGREVISION=	3
CATEGORIES=	textproc
MASTER_SITES=	http://cmigemo.googlecode.com/files/
EXTRACT_SUFX=	.zip
DISTFILES=	${DEFAULT_DISTFILES} ${JISYOFILE}

MAINTAINER=	goro@venus.dti.ne.jp
HOMEPAGE=	http://www.kaoriya.net/software/cmigemo
COMMENT=	Migemo library implemented in C
LICENSE=	mit

# sync with inputmethod/skk-jisyo-cdb
SKKJISYO_VERS=	201102
JISYOFILE=	SKK-JISYO.L.${SKKJISYO_VERS}.bz2
SITES.${SKKJISYO_FILE}=	${MASTER_SITE_FREEBSD_LOCAL:=matusita/skk-jisyo/}

TOOL_DEPENDS+= nkf>=2.06:../../converters/nkf

HAS_CONFIGURE=	yes
USE_TOOLS+=	perl gzip gmake
USE_LIBTOOL=	yes
WRKSRC=		${WRKDIR}/cmigemo-default-src

CONFIGURE_ARGS+=	--prefix=${PREFIX}
CONFIGURE_ENV+=		PROGRAM_INSTALL=${INSTALL:Q}
CONFIGURE_ENV+=		PROGRAM_ENCODEFILTER="nkf -x"
CONFIGURE_ENV+=		PROGRAM_HTTP=${TRUE:Q}
INSTALL_MAKE_FLAGS+=	prefix=${DESTDIR}${PREFIX}

SUBST_CLASSES+=	prefix
SUBST_STAGE.prefix=	post-configure
SUBST_FILES.prefix=	compile/config_default.mk compile/Make_gcc.mak compile/Make_sun.mak doc/README* tools/migemo.vim
SUBST_SED.prefix=	-e 's,/usr/local,${PREFIX},g'

BUILD_TARGET=	gcc-all
INSTALL_TARGET=	gcc-install

post-extract:
	${MV} ${WRKDIR}/${JISYOFILE:R} ${WRKSRC}/dict/SKK-JISYO.L

.include "../../mk/bsd.pkg.mk"