# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD: head/deskutils/gxneur/Makefile 464084 2018-03-10 17:46:04Z gerald $

PORTNAME=	gxneur
PORTVERSION=	0.17.0
PORTREVISION=	1
DISTVERSIONSUFFIX=.orig
CATEGORIES=	deskutils
MASTER_SITES=	https://launchpad.net/~andrew-crew-kuznetsov/+archive/xneur-stable/+files/
DISTNAME=	${PORTNAME}_${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}

MAINTAINER=	mizhka@gmail.com
COMMENT=	GTK frontend for XNeur keyboard layout switcher

LICENSE=	GPLv2

BUILD_DEPENDS=	xneur:deskutils/xneur
RUN_DEPENDS=	xneur:deskutils/xneur

GNU_CONFIGURE=	yes
USES=		pkgconfig
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_GNOME=	gconf2 gtk20 libglade2
INSTALLS_ICONS=	yes

OPTIONS_DEFINE=	NLS

OPTIONS_SUB=	yes
NLS_USES=	gettext
NLS_CONFIGURE_OFF=	--without-nls

post-patch:
	@${REINPLACE_CMD} -e '/all_modifiers/d' ${WRKSRC}/src/misc.c
	@${REINPLACE_CMD} -e 's|-Werror||g' ${WRKSRC}/configure

.include <bsd.port.mk>
