aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/anthy/Makefile
blob: af04f2a72b158352ddf3f36370e90f7b5eac5225 (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
# New ports collection makefile for:   anthy
# Date created:        26 February 2002
# Whom:                Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   anthy
PORTVERSION=    5500
CATEGORIES= japanese
MASTER_SITES=   http://downloads.sourceforge.jp/anthy/10139/:anthy
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}:anthy
DIST_SUBDIR=    anthy

MAINTAINER= nobutaka@FreeBSD.org
COMMENT=    Another kana-kanji conversion system

USE_REINPLACE=  yes
USE_INC_LIBTOOL_VER=13
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
USE_GNOME=  lthack

DOCSDIR=    share/doc/ja/anthy
ELISPDIR=   share/emacs/site-lisp/anthy
PLIST_SUB=  ELISPDIR=${ELISPDIR}

.if defined(WITH_2CHDIC)
MASTER_SITES+=  http://omaemona.sourceforge.net/packages/Zisyo/:2chdic
DISTFILES+= 2ch.t:2chdic
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}
EXTRA_PATCHES=  ${PATCHDIR}/extra-patch-mkanthydic:Makefile.in
.endif

.if defined(WITH_2CHDIC)
post-extract:
    @${CP} ${DISTDIR}/${DIST_SUBDIR}/2ch.t ${WRKSRC}/mkanthydic
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's| install-lispLISP||g' ${WRKSRC}/src-util/Makefile.in

post-install:
    ${MKDIR} ${PREFIX}/${ELISPDIR}
    ${INSTALL_DATA} ${WRKSRC}/src-util/*.el ${PREFIX}/${ELISPDIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/ELISP ${PREFIX}/${DOCSDIR}
.endif

.include <bsd.port.mk>