summaryrefslogtreecommitdiffstats
path: root/accessibility/caribou/Makefile
blob: df75834b98f2842a183c6fa5f942908f5be08058 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:   caribou
# Date created:         10 Juni 2010
# Whom:             Koop Mast <kwm@FreeBSD.org>
#
# $FreeBSD$
#    $MCom$
#

PORTNAME=   caribou
PORTVERSION=    0.4.3
CATEGORIES= accessibility gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Gnome On-Screen keyboard

LICENSE=    LGPL20
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
LIB_DEPENDS=    clutter-glx-1.0.0:${PORTSDIR}/graphics/clutter \
        gee.2:${PORTSDIR}/devel/libgee06 \
        xklavier.12:${PORTSDIR}/x11/libxklavier
RUN_DEPENDS=    py*-atspi>=2.1.91:${PORTSDIR}/accessibility/py-atspi

USE_XZ=     yes
USE_GMAKE=  yes
MAKE_JOBS_UNSAFE=yes
USE_GETTEXT=    yes
USE_PYTHON= yes
USE_XORG=   x11 xtst
USE_GNOME=  gnomehack intltool pygobject3 gtk30 intlhack gnomedocutils \
        libxml2
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --enable-gtk2-module=no
GLIB_SCHEMAS=   org.gnome.caribou.gschema.xml \
        org.gnome.antler.gschema.xml

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \
        ${WRKSRC}/tools/*.py
    @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' \
        -e 's|$${BASH_SOURCE\[0\]}|.|g' \
        ${WRKSRC}/bin/antler-keyboard.in \
        ${WRKSRC}/bin/caribou-preferences.in \
        ${WRKSRC}/bin/caribou.in

.include <bsd.port.mk>