# $MidnightBSD: trunk/graphics/graphene/Makefile 23918 2018-08-26 21:20:44Z laffer1 $
# $FreeBSD: head/graphics/graphene/Makefile 461838 2018-02-14 21:15:32Z pi $

PORTNAME=	graphene
PORTVERSION=	1.6.0
CATEGORIES=	graphics devel
MASTER_SITES=	GNOME

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Optimizations for speeding up vector operations

LICENSE=	mit

USES=		gnome meson pkgconfig python:3.4+ shebangfix tar:xz
USE_GNOME=	glib20 pygobject3
USE_LDCONFIG=	yes

OPTIONS_SUB=	yes
OPTIONS_DEFINE=	GTKDOC #INTROSPECTION
#OPTIONS_DEFAULT=INTROSPECTION

SHEBANG_FILES=	src/identfilter.py

USE_GNOME+=		introspection:build
#INTROSPECTION_DESC=	Build Gobject Introspection
#INTROSPECTION_USE=	gnome=introspection:build
#INTROSPECTION_MESON_OFF=	-Denable-introspection=false

GTKDOC_MESON_TRUE=	enable-gtk-doc
GTKDOC_DESC=		Build documentation
GTKDOC_BUILD_DEPENDS=	gtk-doc>0:textproc/gtk-doc

post-patch:
	@${REINPLACE_CMD} -e 's|=python |=${PYTHON_VERSION} |g' \
		${WRKSRC}/src/meson.build

# We don't want install tests
post-install:
	@${RM} -rf ${STAGEDIR}${PREFIX}/libexec/installed-tests

.include <bsd.port.mk>
