freebsd-ports/textproc/uim/Makefile
MANTANI Nobutaka 43308a7375 Split optional features into the following seven slave ports and stop using OPTIONS.
japanese/uim-anthy - Uim plugin using Anthy input method
japanese/uim-canna - Uim plugin using Canna input method
japanese/uim-prime - Uim plugin using PRIME input method
textproc/uim-gnome - GNOME applets of uim input method
textproc/uim-gtk - GTK+ modules of uim input method
textproc/uim-m17nlib - Uim plugin using m17n library input method
textproc/uim-qt - QT modules of uim input method

PR:		ports/95785
Submitted by:	NIIMI Satoshi <sa2c@sa2c.net>
2006-04-16 16:27:27 +00:00

75 lines
1.8 KiB
Makefile

# New ports collection makefile for: uim
# Date created: 31 August 2003
# Whom: MANTANI Nobutaka <nobutaka@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= uim
PORTVERSION= 1.0.1
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://uim.freedesktop.org/releases/
MAINTAINER= nobutaka@FreeBSD.org
COMMENT?= Input method library
USE_X_PREFIX= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
WANT_GNOME= yes
USE_GNOME+= gnometarget glib20
USE_GMAKE= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
.if !defined(UIM_SLAVE)
CONFIGURE_ARGS= --enable-emacs
.endif
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
.if !defined(UIM_SLAVE)
MAN1= uim-xim.1
DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
PLIST_SUB= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-uim_editline.c
.endif
.if ${PERL_LEVEL} >= 500600
USE_PERL5_BUILD=yes
.else
BUILD_DEPENDS+= ${LOCALBASE}/bin/perl:${PORTSDIR}/lang/perl5
CONFIGURE_ENV+= INTLTOOL_PERL="${LOCALBASE}/bin/perl"
.endif
.for _x in gtk2 qt gnome2 anthy canna m17nlib prime scim
.if ${CONFIGURE_ARGS:M--with-${_x}} == ""
CONFIGURE_ARGS+=--without-${_x}
.endif
.endfor
.if ${CONFIGURE_ARGS:M--enable-applet} == ""
CONFIGURE_ARGS+=--disable-applet
.endif
post-patch:
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/scm/skk-custom.scm
.if !defined(UIM_SLAVE) && !defined(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}
${MKDIR} ${DOCSDIR_JA}
${INSTALL_DATA} ${WRKSRC}/doc/KEY ${DOCSDIR}/KEY
${INSTALL_DATA} ${WRKSRC}/fep/README ${DOCSDIR}/README.fep
${INSTALL_DATA} ${WRKSRC}/fep/README.ja ${DOCSDIR_JA}/README.fep
${INSTALL_DATA} ${WRKSRC}/xim/README ${DOCSDIR}/README.xim
.endif
.include <bsd.port.post.mk>