# Created by: Nikola Lecic # $FreeBSD: head/textproc/ibus-kmfl/Makefile 517055 2019-11-08 12:59:36Z tobik $ PORTNAME= ibus-kmfl PORTVERSION= 1.0.3 PORTREVISION= 7 CATEGORIES= textproc MASTER_SITES= SF/kmfl/${PORTNAME}/${PORTVERSION} \ http://anthesphoria.net/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ DIST_SUBDIR= kmfl MAINTAINER= nikola.lecic@anthesphoria.net COMMENT= KMFL IMEngine for IBus framework LIB_DEPENDS= libibus-1.0.so:textproc/ibus \ libkmfl.so:textproc/libkmfl \ libkmflcomp.so:textproc/kmflcomp RUN_DEPENDS= kmflcomp:textproc/kmflcomp USES= gmake gnome pkgconfig USE_GNOME= glib20 GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= NLS .include .if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" .else CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " .endif post-patch: @${CP} ${WRKSRC}/icons/default.png ${WRKSRC}/icons/default-kmfl.png @${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' \ ${WRKSRC}/src/kmflutil.c ${WRKSRC}/src/kmfl.xml.in.in @${REINPLACE_CMD} -e 's|default\.png|default-kmfl.png|g' \ ${WRKSRC}/src/kmflutil.c ${WRKSRC}/icons/Makefile.in .include