# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD: accessibility/gnopernicus/Makefile 327684 2013-09-20 11:02:49Z bapt $
#   $MCom: ports/accessibility/gnopernicus/Makefile,v 1.85 2007/07/23 19:03:49 mezz Exp $

PORTNAME=	gnopernicus
PORTVERSION=	1.1.2
PORTREVISION=	10
CATEGORIES=	accessibility x11 gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome2

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Collection of accessibility apps for GNOME 2

LIB_DEPENDS=	gnome-mag.2:${PORTSDIR}/accessibility/gnome-mag

NO_STAGE=	yes
USE_BZIP2=	yes
USES=		gettext gmake pkgconfig
USE_LDCONFIG=	yes
INSTALLS_OMF=	yes
INSTALLS_ICONS=	yes
USE_GNOME=	gnomeprefix gnomehack intlhack libgnomeui atspi gnomespeech
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include `pkg-config --cflags gtk+-2.0`
LDFLAGS+=	-L${LOCALBASE}/lib
MAKE_ENV=	SED="${SED}"

GCONF_SCHEMAS=	brlmonitor.schemas gnopernicus.schemas remote.schemas
SHLIB_VERSION=	2
PLIST_SUB=	SHLIB_VERSION=${SHLIB_VERSION}

post-patch:
	@${REINPLACE_CMD} -e 's|^F||' \
		${WRKSRC}/help/braille_monitor/C/brlmonitor-C.omf \
		${WRKSRC}/help/braille_monitor/es/brlmonitor-es.omf
	@${CP} ${FILESDIR}/gnopernicus-mag-config ${WRKSRC}/gnopi

.include <bsd.port.mk>
