aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/uim-m17nlib/Makefile
blob: 96302bfe9181757ff7bcab333b35d9a02a4f89b1 (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
# New ports collection makefile for:   uim-m17nlib
# Date created:        31 August 2003
# Whom:                MANTANI Nobutaka <nobutaka@FreeBSD.org>
#
# $FreeBSD$
#

PORTREVISION=   1

.if defined(WITHOUT_X11)
PKGNAMESUFFIX=  -m17nlib-nox11
.else
PKGNAMESUFFIX=  -m17nlib
.endif

COMMENT=    Uim plugin using m17n library input method

BUILD_DEPENDS=  m17n-db:${PORTSDIR}/devel/m17n-db
LIB_DEPENDS=    m17n.4:${PORTSDIR}/devel/m17n-lib \
        uim.8:${PORTSDIR}/textproc/uim
RUN_DEPENDS=    m17n-db:${PORTSDIR}/devel/m17n-db

.if !defined(WITHOUT_M17NCONTRIB)
RUN_DEPENDS+=   ${LOCALBASE}/share/m17n/icons/as-phonetic.png:${PORTSDIR}/textproc/m17n-contrib
.endif

MASTERDIR=  ${.CURDIR}/../../textproc/uim
PKGDIR=     ${.CURDIR}
CONFIGURE_ARGS= --with-m17nlib

UIM_SLAVE=  yes

EXTRA_PATCHES=  ${PATCHDIR}/extra-patch-uim_Makefile.in

do-build:
    (cd ${WRKSRC}/uim && ${GMAKE} libuim-m17nlib.la)

do-install:
    (cd ${WRKSRC}/uim && \
    ${GMAKE} uim_plugin_LTLIBRARIES=libuim-m17nlib.la install-uim_pluginLTLIBRARIES && \
    ${MKDIR} ${PREFIX}/share/uim/pixmaps && \
    DESTDIR="" ${SH} ../pixmaps/uim-m17nlib-relink-icons)

post-install:
    ${LOCALBASE}/bin/uim-module-manager --register m17nlib
    @${FIND} ${LOCALBASE}/share/m17n/icons/ -name '*.png' -execdir ${ECHO} share/uim/pixmaps/m17n-{} \; >>${TMPPLIST}

.include "${MASTERDIR}/Makefile"