freebsd-ports/japanese/im-ja/Makefile
Tijl Coosemans edb7229dd4 Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. The
first contains runtime libraries such as libintl and the latter contains
developer tools such as msgfmt.  Ports that use gettext will usually need
a LIB_DEPENDS on gettext-runtime and a BUILD_DEPENDS on gettext-tools.

USES=gettext-runtime can be used to set a LIB/BUILD/RUN_DEPENDS on
devel/gettext-runtime and USES=gettext-tools can be used to set a
BUILD/RUN_DEPENDS on devel/gettext-tools.  USES=gettext is now the same
as "USES=gettext-runtime gettext-tools" meaning a LIB_DEPENDS on
devel/gettext-runtime and a BUILD_DEPENDS on devel/gettext-tools.

Update gettext to 0.19.3.

Remove :oldver from converters/libiconv and devel/gettext-runtime.  Leave
symlinks with the old library versions to avoid the need to bump
PORTREVISION on a large number of dependent ports.  When most of the
dependent ports have had normal version updates, PORTREVISION can be
bumped on the remaining ones (low number) and the links can be removed.

Fix some ports that installed files in lib/locale instead of share/locale.

PR:		194038
Reviewed by:	bapt
Exp-run:	antoine
Approved by:	portmgr (antoine)
2014-11-29 18:22:32 +00:00

69 lines
1.9 KiB
Makefile

# Created by: Jacques Vidrine <nectar@FreeBSD.org>
# $FreeBSD$
PORTNAME= im-ja
PORTVERSION= 1.5
PORTREVISION= 11
CATEGORIES= japanese x11-toolkits
MASTER_SITES= http://im-ja.sourceforge.net/
MAINTAINER= ports@FreeBSD.org
COMMENT= Japanese input module for GTK2
OPTIONS_DEFINE= ANTHY CANNA WNN
OPTIONS_DEFAULT=ANTHY CANNA WNN
ANTHY_DESC= Use Anthy
CANNA_DESC= Use Canna
WNN_DESC= Use FreeWnn
USES= gettext gmake libtool pathfix perl5 pkgconfig
USE_GNOME= gconf2 gnomeprefix intlhack libglade2
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-schemas-install # Avoid stage violation
CONFIGURE_ARGS+= --disable-gnome
GCONF_SCHEMAS= im-ja.schemas
CPPFLAGS+= -I${LOCALBASE}/include -DNO_MALLOC_H
LIBS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MANTHY}
LIB_DEPENDS+= libanthy.so:${PORTSDIR}/japanese/anthy
.else
CONFIGURE_ARGS+= --disable-anthy
.endif
.if ${PORT_OPTIONS:MCANNA}
LIB_DEPENDS+= libRKC.so:${PORTSDIR}/japanese/canna-lib
.else
CONFIGURE_ARGS+= --disable-canna
.endif
.if ${PORT_OPTIONS:MWNN}
LIB_DEPENDS+= libwnn.so:${PORTSDIR}/japanese/FreeWnn-lib
.else
CONFIGURE_ARGS+= --disable-wnn
.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}
@${REINPLACE_CMD} -e 's|$$(datadir)/gconf|$$(sysconfdir)/gconf|g' \
${WRKSRC}/data/Makefile.in
@${REINPLACE_CMD} '/^im_ja_la_LIBADD =/s/$$/ -lm/' \
${WRKSRC}/src/gtk/Makefile.in
@${REINPLACE_CMD} '/^im_ja_helper_LDADD =/s/$$/ -lX11/' \
${WRKSRC}/src/helper/Makefile.in
@${REINPLACE_CMD} '/^im_ja_le_la_LIBADD =/s/$$/ -lm/' \
${WRKSRC}/src/iiimf/Makefile.in
@${REINPLACE_CMD} '/^im_ja_xim_server_LDADD =/s/$$/ -lm/' \
${WRKSRC}/src/xim/Makefile.in
.include <bsd.port.mk>