2003-09-03 00:13:57 +00:00
|
|
|
# New ports collection makefile for: im-ja
|
|
|
|
# Date created: 2003/09/02
|
|
|
|
# Whom: Jacques Vidrine <nectar@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= im-ja
|
2005-02-24 22:58:03 +00:00
|
|
|
PORTVERSION= 1.3
|
2005-03-12 10:54:27 +00:00
|
|
|
PORTREVISION= 1
|
2003-09-03 00:13:57 +00:00
|
|
|
CATEGORIES= japanese x11-toolkits
|
|
|
|
MASTER_SITES= http://im-ja.sourceforge.net/
|
|
|
|
|
|
|
|
MAINTAINER= nectar@FreeBSD.org
|
|
|
|
COMMENT= A Japanese input module for GTK2
|
|
|
|
|
2004-08-15 18:13:06 +00:00
|
|
|
OPTIONS+= ANTHY "Use Anthy" on
|
2004-04-12 16:22:17 +00:00
|
|
|
OPTIONS+= CANNA "Use Canna" on
|
|
|
|
OPTIONS+= WNN "Use FreeWnn" on
|
2003-09-03 00:13:57 +00:00
|
|
|
|
2004-04-12 18:34:49 +00:00
|
|
|
USE_PERL5_BUILD= yes
|
2003-09-03 00:13:57 +00:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
2005-02-24 22:58:03 +00:00
|
|
|
USE_LIBTOOL_VER=15
|
2004-08-15 18:13:06 +00:00
|
|
|
USE_GNOME= gnomeprefix gnomehack gnomepanel lthack
|
2003-09-03 00:13:57 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
LIBS+= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
|
2004-04-12 16:22:17 +00:00
|
|
|
CPPFLAGS+= -DNO_MALLOC_H
|
2004-04-12 18:34:49 +00:00
|
|
|
CONFIGURE_ENV+= LIBS="${LIBS}" CPPFLAGS="${CPPFLAGS}"
|
|
|
|
CONFIGURE_ENV+= INTLTOOL_PERL="${PERL}"
|
2003-09-03 00:13:57 +00:00
|
|
|
|
2004-04-12 16:22:17 +00:00
|
|
|
MAN1= im-ja-conf.1 im-ja-xim-server.1
|
2003-09-03 00:13:57 +00:00
|
|
|
|
2004-03-18 12:40:26 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-08-15 18:13:06 +00:00
|
|
|
.if defined(WITHOUT_ANTHY)
|
|
|
|
CONFIGURE_ARGS+= --disable-anthy
|
2004-04-12 16:22:17 +00:00
|
|
|
.else
|
2004-08-15 18:13:06 +00:00
|
|
|
LIB_DEPENDS+= anthy.1:${PORTSDIR}/japanese/anthy
|
2004-04-12 16:22:17 +00:00
|
|
|
.endif
|
2004-08-15 18:13:06 +00:00
|
|
|
.if defined(WITHOUT_CANNA)
|
|
|
|
CONFIGURE_ARGS+= --disable-canna
|
2004-04-12 16:22:17 +00:00
|
|
|
.else
|
2004-08-15 18:13:06 +00:00
|
|
|
LIB_DEPENDS+= RKC.1:${PORTSDIR}/japanese/Canna
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_WNN)
|
2004-04-12 16:22:17 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-wnn
|
2004-08-15 18:13:06 +00:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= wnn.0:${PORTSDIR}/japanese/FreeWnn-lib
|
2004-04-12 16:22:17 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${FIND} ${WRKSRC} -name configure.in | ${XARGS} ${TOUCH}
|
|
|
|
${FIND} ${WRKSRC} -name aclocal.m4 | ${XARGS} ${TOUCH}
|
|
|
|
${FIND} ${WRKSRC} -name configure | ${XARGS} ${TOUCH}
|
|
|
|
${FIND} ${WRKSRC} -name config.h.in | ${XARGS} ${TOUCH}
|
|
|
|
${FIND} ${WRKSRC} -name Makefile.am | ${XARGS} ${TOUCH}
|
|
|
|
${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${TOUCH}
|
|
|
|
|
2003-09-03 00:13:57 +00:00
|
|
|
post-install:
|
|
|
|
${X11BASE}/bin/gtk-query-immodules-2.0 > \
|
|
|
|
${X11BASE}/etc/gtk-2.0/gtk.immodules
|
|
|
|
|
2004-03-18 12:40:26 +00:00
|
|
|
.include <bsd.port.post.mk>
|