2003-08-31 14:24:07 +02:00
|
|
|
# New ports collection makefile for: uim
|
|
|
|
# Date created: 31 August 2003
|
|
|
|
# Whom: MANTANI Nobutaka <nobutaka@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= uim
|
2008-05-18 17:40:06 +02:00
|
|
|
PORTVERSION= 1.5.1
|
2008-06-06 16:33:40 +02:00
|
|
|
PORTREVISION= 1
|
2006-04-16 18:33:19 +02:00
|
|
|
CATEGORIES?= textproc
|
2008-03-23 16:06:40 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
|
2006-07-10 04:06:29 +02:00
|
|
|
.if !defined(UIM_SLAVE) && defined(WITHOUT_X11)
|
|
|
|
PKGNAMESUFFIX= -nox11
|
|
|
|
.endif
|
2003-08-31 14:24:07 +02:00
|
|
|
|
|
|
|
MAINTAINER= nobutaka@FreeBSD.org
|
2006-04-16 18:27:27 +02:00
|
|
|
COMMENT?= Input method library
|
2003-08-31 14:24:07 +02: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 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-08-31 14:24:07 +02:00
|
|
|
WANT_GNOME= yes
|
2006-04-16 18:27:27 +02:00
|
|
|
USE_GNOME+= gnometarget glib20
|
2003-08-31 14:24:07 +02:00
|
|
|
USE_GMAKE= yes
|
2006-06-12 19:45:54 +02:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-07-10 04:06:29 +02:00
|
|
|
USE_GETTEXT= yes
|
2004-02-08 16:28:11 +01:00
|
|
|
USE_ICONV= yes
|
2007-09-29 22:59:05 +02:00
|
|
|
USE_PERL5_BUILD=yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-25 06:47:34 +01:00
|
|
|
|
2006-07-10 04:06:29 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
2006-04-16 18:27:27 +02:00
|
|
|
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
|
2006-07-10 04:06:29 +02:00
|
|
|
CONFIGURE_ARGS+= --with-x --with-xft
|
|
|
|
.endif
|
2005-12-25 06:47:34 +01:00
|
|
|
|
2006-04-16 18:27:27 +02:00
|
|
|
.if !defined(UIM_SLAVE)
|
2006-07-10 04:06:29 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
USE_GNOME+= gtk20
|
|
|
|
CONFIGURE_ARGS+= --with-gtk2
|
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --enable-emacs
|
2006-04-16 18:27:27 +02:00
|
|
|
.endif
|
2006-07-10 04:06:29 +02:00
|
|
|
|
2006-07-23 14:16:55 +02:00
|
|
|
CONFIGURE_ENV?= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
2003-08-31 14:24:07 +02:00
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
2005-12-25 06:47:34 +01:00
|
|
|
|
2006-04-16 18:27:27 +02:00
|
|
|
.if !defined(UIM_SLAVE)
|
2006-07-10 04:06:29 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
2005-06-26 21:42:42 +02:00
|
|
|
MAN1= uim-xim.1
|
2006-07-10 04:06:29 +02:00
|
|
|
.endif
|
2005-12-25 06:47:34 +01:00
|
|
|
DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
|
2007-10-14 17:12:51 +02: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 18:27:27 +02:00
|
|
|
.endif
|
2005-06-26 21:42:42 +02:00
|
|
|
|
2006-07-10 04:06:29 +02:00
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.endif
|
|
|
|
|
2003-08-31 14:24:07 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-10-14 17:12:51 +02:00
|
|
|
.for _x in x xft gtk2 qt anthy canna m17nlib prime scim dict
|
2006-04-16 18:27:27 +02:00
|
|
|
.if ${CONFIGURE_ARGS:M--with-${_x}} == ""
|
|
|
|
CONFIGURE_ARGS+=--without-${_x}
|
2005-03-01 20:34:02 +01:00
|
|
|
.endif
|
2006-04-16 18:27:27 +02:00
|
|
|
.endfor
|
2008-05-11 15:09:45 +02:00
|
|
|
.for _x in gnome-applet kde-applet emacs pref
|
|
|
|
.if ${CONFIGURE_ARGS:M--enable-${_x}} == ""
|
|
|
|
CONFIGURE_ARGS+=--disable-${_x}
|
2005-12-25 06:47:34 +01:00
|
|
|
.endif
|
2007-10-14 17:12:51 +02:00
|
|
|
.endfor
|
2005-12-02 19:46:55 +01:00
|
|
|
|
2004-03-02 16:28:55 +01:00
|
|
|
post-patch:
|
2005-06-05 18:22:50 +02:00
|
|
|
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/scm/skk-custom.scm
|
2004-03-02 16:28:55 +01:00
|
|
|
|
2007-03-10 21:12:52 +01:00
|
|
|
do-build:
|
|
|
|
.if !defined(UIM_SLAVE)
|
2007-10-14 17:12:51 +02:00
|
|
|
.for d in replace sigscheme uim scm xim po fep emacs pixmaps
|
2007-03-10 21:12:52 +01:00
|
|
|
cd ${WRKSRC}/${d} && ${GMAKE}
|
|
|
|
.endfor
|
|
|
|
cd ${WRKSRC}/helper && ${GMAKE}
|
|
|
|
.endif
|
|
|
|
|
2006-04-26 20:02:49 +02:00
|
|
|
do-install:
|
|
|
|
.if !defined(UIM_SLAVE)
|
|
|
|
cd ${WRKSRC} && ${GMAKE} install-data-am
|
2007-10-14 17:12:51 +02:00
|
|
|
.for d in sigscheme uim scm xim po fep emacs pixmaps
|
2006-04-26 20:02:49 +02:00
|
|
|
cd ${WRKSRC}/${d} && ${GMAKE} install
|
|
|
|
.endfor
|
|
|
|
cd ${WRKSRC}/helper && ${GMAKE} install-libexecPROGRAMS
|
|
|
|
.endif
|
|
|
|
|
2006-04-16 18:27:27 +02:00
|
|
|
.if !defined(UIM_SLAVE) && !defined(NOPORTDOCS)
|
2003-08-31 14:24:07 +02:00
|
|
|
post-install:
|
2007-03-10 21:12:52 +01:00
|
|
|
${MKDIR} ${DATADIR}/helperdata
|
2003-08-31 14:24:07 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2005-12-25 06:47:34 +01:00
|
|
|
${MKDIR} ${DOCSDIR_JA}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/KEY ${DOCSDIR}/KEY
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fep/README ${DOCSDIR}/README.fep
|
2007-10-14 17:12:51 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/fep/README ${DOCSDIR}/README.key
|
2005-12-25 06:47:34 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/fep/README.ja ${DOCSDIR_JA}/README.fep
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/xim/README ${DOCSDIR}/README.xim
|
2003-08-31 14:24:07 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|