# Created by: Olivier Duchateau
# $FreeBSD: head/devel/libdbusmenu/Makefile 440087 2017-05-04 05:23:46Z tcberner $

PORTNAME=	libdbusmenu
PORTVERSION=	16.04.0
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	https://launchpadlibrarian.net/243440794/ \
	https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GLib and Gtk Implementation of the DBusMenu protocol

LICENSE=	GPLv3 LGPL21 LGPL3
LICENSE_COMB=	multi
LICENSE_FILE_LGPL3=	${WRKSRC}/COPYING
LICENSE_FILE_GPLv3=	${WRKSRC}/COPYING-GPL3
LICENSE_FILE_LGPL21=	${WRKSRC}/COPYING.2.1

BUILD_DEPENDS=	vapigen:lang/vala \
		gtkdoc-check:textproc/gtk-doc
LIB_DEPENDS=	libjson-glib-1.0.so:devel/json-glib

GNU_CONFIGURE=	yes
USES=		gmake libtool pathfix pkgconfig python:run shebangfix
USE_GNOME=	gnomedocutils:build glib20 intltool intlhack libxslt \
		introspection:build gtk30
USE_XORG=	x11
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip

SHEBANG_FILES=	tools/dbusmenu-bench

PLIST_SUB=	VERSION="0.4"

CONFIGURE_ARGS=	--disable-static \
	--disable-static \
	--disable-dumper \
	--disable-tests \
	--disable-massivedebugging \
	--enable-introspection=yes \
	--disable-nls \
	--enable-vala \
	--with-gtk=3

.include <bsd.port.mk>
