2013-05-14 16:51:16 +00:00
|
|
|
# Created by: MANTANI Nobutaka <nobutaka@FreeBSD.org>
|
2003-08-31 12:24:07 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= uim
|
2014-06-16 12:19:41 +00:00
|
|
|
PORTVERSION= 1.8.6
|
2014-07-25 12:19:07 +00:00
|
|
|
PORTREVISION?= 1
|
2006-04-16 16:33:19 +00:00
|
|
|
CATEGORIES?= textproc
|
2008-03-23 15:06:40 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
2006-07-10 02:06:29 +00:00
|
|
|
.if !defined(UIM_SLAVE) && defined(WITHOUT_X11)
|
|
|
|
PKGNAMESUFFIX= -nox11
|
|
|
|
.endif
|
2003-08-31 12:24:07 +00:00
|
|
|
|
|
|
|
MAINTAINER= nobutaka@FreeBSD.org
|
2006-04-16 16:27:27 +00:00
|
|
|
COMMENT?= Input method library
|
2003-08-31 12:24:07 +00:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_LDCONFIG= yes
|
2003-08-31 12:24:07 +00:00
|
|
|
WANT_GNOME= yes
|
2011-08-11 19:20:17 +00:00
|
|
|
USE_GNOME+= glib20 intltool
|
2014-07-25 12:19:07 +00:00
|
|
|
USES= gettext gmake iconv libtool pkgconfig perl5 tar:bzip2
|
2013-09-17 06:51:04 +00:00
|
|
|
USE_PERL5= build
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-25 05:47:34 +00:00
|
|
|
|
2014-07-04 22:50:40 +00:00
|
|
|
OPTIONS_DEFINE= DOCS X11
|
2014-07-04 23:00:51 +00:00
|
|
|
OPTIONS_DEFAULT= X11
|
2014-07-04 22:50:40 +00:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2014-06-16 12:19:41 +00:00
|
|
|
LIB_DEPENDS+= libXft.so:${PORTSDIR}/x11-fonts/libXft
|
2006-07-10 02:06:29 +00:00
|
|
|
CONFIGURE_ARGS+= --with-x --with-xft
|
|
|
|
.endif
|
2005-12-25 05:47:34 +00:00
|
|
|
|
2006-04-16 16:27:27 +00:00
|
|
|
.if !defined(UIM_SLAVE)
|
2014-07-04 22:50:40 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2006-07-10 02:06:29 +00:00
|
|
|
USE_GNOME+= gtk20
|
|
|
|
CONFIGURE_ARGS+= --with-gtk2
|
|
|
|
.endif
|
2010-11-26 17:38:22 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-emacs --with-sj3 --with-canna --with-prime
|
2006-04-16 16:27:27 +00:00
|
|
|
.endif
|
2006-07-10 02:06:29 +00:00
|
|
|
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2005-12-25 05:47:34 +00:00
|
|
|
|
2006-04-16 16:27:27 +00:00
|
|
|
.if !defined(UIM_SLAVE)
|
2005-12-25 05:47:34 +00:00
|
|
|
DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
|
2007-10-14 15:12:51 +00:00
|
|
|
DOCSDIR_SIGSCHEME= ${PREFIX}/share/doc/uim/sigscheme
|
|
|
|
PLIST_SUB= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}" \
|
|
|
|
DOCSDIR_SIGSCHEME="${DOCSDIR_SIGSCHEME:S,^${PREFIX}/,,}"
|
2006-04-16 16:27:27 +00:00
|
|
|
.endif
|
2005-06-26 19:42:42 +00:00
|
|
|
|
2014-07-04 22:50:40 +00:00
|
|
|
.if empty(PORT_OPTIONS:MX11)
|
2006-07-10 02:06:29 +00:00
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.endif
|
|
|
|
|
2003-08-31 12:24:07 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-04-21 06:23:37 +00:00
|
|
|
.if ${ARCH} == "ia64"
|
|
|
|
IGNORE= not yet ported to ia64
|
|
|
|
.endif
|
|
|
|
|
2009-02-21 14:08:14 +00:00
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
|
|
|
|
CONFIGURE_ARGS+= --enable-storage=fatty
|
|
|
|
.endif
|
|
|
|
|
2007-10-14 15:12:51 +00:00
|
|
|
.for _x in x xft gtk2 qt anthy canna m17nlib prime scim dict
|
2006-04-16 16:27:27 +00:00
|
|
|
.if ${CONFIGURE_ARGS:M--with-${_x}} == ""
|
|
|
|
CONFIGURE_ARGS+=--without-${_x}
|
2005-03-01 19:34:02 +00:00
|
|
|
.endif
|
2006-04-16 16:27:27 +00:00
|
|
|
.endfor
|
2008-05-11 13:09:45 +00:00
|
|
|
.for _x in gnome-applet kde-applet emacs pref
|
|
|
|
.if ${CONFIGURE_ARGS:M--enable-${_x}} == ""
|
|
|
|
CONFIGURE_ARGS+=--disable-${_x}
|
2005-12-25 05:47:34 +00:00
|
|
|
.endif
|
2007-10-14 15:12:51 +00:00
|
|
|
.endfor
|
2005-12-02 18:46:55 +00:00
|
|
|
|
2004-03-02 15:28:55 +00:00
|
|
|
post-patch:
|
2005-06-05 16:22:50 +00:00
|
|
|
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/scm/skk-custom.scm
|
2004-03-02 15:28:55 +00:00
|
|
|
|
2007-03-10 20:12:52 +00:00
|
|
|
do-build:
|
|
|
|
.if !defined(UIM_SLAVE)
|
2012-04-01 15:41:28 +00:00
|
|
|
.for d in replace sigscheme uim scm xim po fep emacs pixmaps tables
|
2014-06-25 05:35:31 +00:00
|
|
|
cd ${WRKSRC}/${d} && ${MAKE_CMD}
|
2007-03-10 20:12:52 +00:00
|
|
|
.endfor
|
2014-07-04 22:50:40 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2014-06-25 05:35:31 +00:00
|
|
|
cd ${WRKSRC}/gtk2/candwin && ${MAKE_CMD}
|
2012-04-01 15:41:28 +00:00
|
|
|
.endif
|
2007-03-10 20:12:52 +00:00
|
|
|
.endif
|
|
|
|
|
2006-04-26 18:02:49 +00:00
|
|
|
do-install:
|
|
|
|
.if !defined(UIM_SLAVE)
|
2014-06-25 05:35:31 +00:00
|
|
|
cd ${WRKSRC} && ${MAKE_CMD} DESTDIR=${STAGEDIR} install-data-am
|
2012-04-01 15:41:28 +00:00
|
|
|
.for d in sigscheme uim scm xim po fep emacs pixmaps tables
|
2014-06-25 05:35:31 +00:00
|
|
|
cd ${WRKSRC}/${d} && ${MAKE_CMD} DESTDIR=${STAGEDIR} install
|
2006-04-26 18:02:49 +00:00
|
|
|
.endfor
|
2014-07-04 22:50:40 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2014-06-25 05:35:31 +00:00
|
|
|
cd ${WRKSRC}/gtk2/candwin && ${MAKE_CMD} DESTDIR=${STAGEDIR} install
|
2012-04-01 15:41:28 +00:00
|
|
|
.endif
|
2006-04-26 18:02:49 +00:00
|
|
|
.endif
|
|
|
|
|
2010-11-26 17:38:22 +00:00
|
|
|
.if !defined(UIM_SLAVE)
|
2003-08-31 12:24:07 +00:00
|
|
|
post-install:
|
2014-06-16 12:19:41 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/helperdata
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR_JA}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/KEY ${STAGEDIR}${DOCSDIR}/KEY
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fep/README ${STAGEDIR}${DOCSDIR}/README.fep
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fep/README ${STAGEDIR}${DOCSDIR}/README.key
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fep/README.ja ${STAGEDIR}${DOCSDIR_JA}/README.fep
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/xim/README ${STAGEDIR}${DOCSDIR}/README.xim
|
2003-08-31 12:24:07 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|