# Created by: Hajimu UMEMOTO <ume@FreeBSD.org>
# $FreeBSD: head/japanese/libtomoe-gtk/Makefile 456181 2017-12-12 18:35:32Z antoine $

PORTNAME=	libtomoe-gtk
PORTVERSION=	0.6.0
PORTREVISION=	10
CATEGORIES=	japanese
MASTER_SITES=	SF/tomoe/tomoe-gtk/tomoe-gtk-${PORTVERSION}
DISTNAME=	tomoe-gtk-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}

MAINTAINER=	ume@FreeBSD.org
COMMENT=	TOMOE GTK+ library

LIB_DEPENDS=	libtomoe.so:japanese/tomoe

GNU_CONFIGURE=	yes
USES=		gmake libtool pathfix pkgconfig python:2.7,build
USE_GNOME=	gtk20
USE_LDCONFIG=	yes

#OPTIONS=	GUCHARMAP	"Compile with gucharmap"		on

.include <bsd.port.options.mk>

#.if defined(WITHOUT_GUCHARMAP)
CONFIGURE_ARGS+=--with-gucharmap=no
PLIST_SUB+=	GUCHARMAP="@comment "
#.else
#LIB_DEPENDS+=	libgucharmap.so:deskutils/gucharmap
#PLIST_SUB+=	GUCHARMAP=""
#.endif

.if exists(${LOCALBASE}/libdata/pkgconfig/pytomoe.pc)
CONFIGURE_ENV+=	PYTHON_VERSION=${PYTHON_VERSION:S;python;;} \
		pyexecdir=${PYTHON_SITELIBDIR}
PLIST_SUB+=	PYTHON=""
.else
CONFIGURE_ARGS+=--with-python=no
PLIST_SUB+=	PYTHON="@comment "
.endif

.include <bsd.port.mk>
