# $MidnightBSD: trunk/accessibility/orca/Makefile 24875 2019-02-02 20:42:50Z laffer1 $

PORTNAME=	orca
PORTVERSION=	3.28.2
PORTREVISION=	0
CATEGORIES=	accessibility gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome3

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Scriptable screen reader

LICENSE=	lgpl

BUILD_DEPENDS=	py3?-dbus>=0:devel/py3-dbus \
		py3?-xdg>=0:devel/py3-xdg \
		py3?-cairo>=0:graphics/py3-cairo \
		itstool:textproc/itstool
LIB_DEPENDS=	libatspi.so:accessibility/at-spi2-core
RUN_DEPENDS=	py3?-dbus>=0:devel/py3-dbus \
		py3?-atspi>=0:accessibility/py3-atspi \
		py3?-speech-dispatcher>=0:accessibility/py-speech-dispatcher \
		py3?-xdg>=0:devel/py3-xdg \
		py3?-cairo>=0:graphics/py3-cairo

# conflict with py*-json-py because orca uses the json from python itself
# and py*-json-py shadows this.
CONFLICTS=	py*-json-py-[0-9]*

USES=		gettext gmake pathfix pkgconfig python:3 tar:xz
USE_GNOME=	gtk30 py3gobject3 intlhack
INSTALLS_ICONS=	yes
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

PLIST_SUB+=	PYVER=${PYTHON_VER:S/.//}

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
	    	${WRKSRC}/src/orca/orca_i18n.py

.include <bsd.port.mk>
