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

PORTREVISION=   2
CATEGORIES= japanese
.if defined(WITHOUT_X11)
PKGNAMESUFFIX=  -prime-nox11
.else
PKGNAMESUFFIX=  -prime
.endif

COMMENT=    Uim plugin using PRIME input method

BUILD_DEPENDS=  prime:${PORTSDIR}/japanese/prime
LIB_DEPENDS=    uim.2:${PORTSDIR}/textproc/uim
RUN_DEPENDS+=   ${BUILD_DEPENDS}

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

UIM_SLAVE=  yes

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

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

do-install:
    (cd ${WRKSRC}/uim && \
    ${GMAKE} uim_plugin_LTLIBRARIES=libuim-prime.la install-uim_pluginLTLIBRARIES)

post-install:
.if defined(WITHOUT_X11)
    ${LOCALBASE}/bin/uim-module-manager --register prime
.else
    ${X11BASE}/bin/uim-module-manager --register prime
.endif

.include "${MASTERDIR}/Makefile"