# $OpenBSD: Makefile,v 1.71 2017/10/31 17:29:40 ajacoutot Exp $

COMMENT=		gettext(1) files editor for GNOME

GNOME_PROJECT=		gtranslator
GNOME_VERSION=		2.91.7
REVISION=		8

CATEGORIES=		textproc devel

# GPLv3
PERMIT_PACKAGE_CDROM=	Yes

WANTLIB += ${COMPILER_LIBCXX} X11 Xcomposite Xcursor Xdamage Xext
WANTLIB += Xfixes Xi Xinerama Xrandr Xrender Xtst atk-1.0 atk-bridge-2.0
WANTLIB += atspi c cairo cairo-gobject dbus-1 enchant epoxy expat
WANTLIB += ffi fontconfig freetype gcrypt gda-5.0 gdk-3 gdk_pixbuf-2.0
WANTLIB += gdl-3 gettextpo gio-2.0 girepository-1.0 glib-2.0 gmodule-2.0
WANTLIB += gobject-2.0 gpg-error graphite2 gthread-2.0 gtk-3 gtksourceview-3.0
WANTLIB += gtkspell3-3 harfbuzz iconv intl json-glib-1.0 lzma xml2
WANTLIB += m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre peas-1.0 z
WANTLIB += peas-gtk-1.0 pixman-1 png secret-1 xcb xcb-render xcb-shm

MODULES=		devel/dconf \
			lang/python \
			x11/gnome

RUN_DEPENDS=		devel/gsettings-desktop-schemas \
			devel/iso-codes

BUILD_DEPENDS=		devel/gsettings-desktop-schemas \
			devel/iso-codes

LIB_DEPENDS=		devel/gettext-tools \
			devel/gobject-introspection \
			devel/json-glib \
			devel/libpeas \
			textproc/gtkspell3 \
			x11/gnome/gdl \
			x11/gtksourceview3 \
			x11/gnome/libgda

MODGNOME_TOOLS +=	desktop-file-utils gobject-introspection
MODGNOME_TOOLS +=	gtk-update-icon-cache yelp

MODGNOME_CPPFLAGS=	-I${LOCALBASE}/include/db4

CONFIGURE_STYLE=	gnu
CONFIGURE_ARGS=		--enable-compile-warnings=no

post-install:
	rm ${PREFIX}/lib/gtranslator/*.{a,la}
	rm ${PREFIX}/lib/gtranslator/plugins/*.{a,la}

.include <bsd.port.mk>
