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

PORTNAME=   uim
PORTVERSION=    0.1.1
CATEGORIES= japanese x11
MASTER_SITES=   http://downloads.sourceforge.jp/anthy/6318/

MAINTAINER= nobutaka@FreeBSD.org
COMMENT=    Input method library

LIB_DEPENDS=    anthy.0:${PORTSDIR}/japanese/anthy

USE_X_PREFIX=   yes
INSTALLS_SHLIB= yes
WANT_GNOME= yes
USE_GNOME=  gnometarget glib20
USE_GMAKE=  yes
USE_LIBTOOL=    yes
CONFIGURE_ENV=  CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
        LDFLAGS="-L${X11BASE}/lib  -L${LOCALBASE}/lib"

DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
PLIST_SUB+= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgtk20}
USE_GNOME+= gtk20
PLIST_SUB+= GTK=""
.else
PLIST_SUB+= GTK="@comment "
.endif

.if ${HAVE_GNOME:Mgnomepanel}
USE_GNOME+= gnomepanel
PLIST_SUB+= GNOME=""
.else
PLIST_SUB+= GNOME="@comment "
.endif

.if !defined(NOPORTDOCS)
post-install:
    ${MKDIR} ${DOCSDIR_JA}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.ja ${DOCSDIR_JA}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.post.mk>