Makefile 1.29 KB
Newer Older
1
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
2
3
4
# $FreeBSD$

PORTNAME=	orca
5
PORTVERSION=	3.18.2
6
CATEGORIES=	accessibility gnome
7
MASTER_SITES=	GNOME
8
DIST_SUBDIR=	gnome3
9
10
11
12

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Scriptable screen reader

13
14
15
16
17
18
19
20
21
22
BUILD_DEPENDS=	py3?-dbus>=0:devel/py3-dbus \
		py3?-xdg>=0:devel/py3-xdg \
		py3?-cairo>=0:graphics/py3-cairo \
		itstool:textproc/itstool
LIB_DEPENDS=	libatspi.so:accessibility/at-spi2-core
RUN_DEPENDS=	py3?-dbus>=0:devel/py3-dbus \
		py3?-speech-dispatcher>=0:accessibility/py3-speech-dispatcher \
		py3?-atspi>=0:accessibility/py3-atspi \
		py3?-xdg>=0:devel/py3-xdg \
		py3?-cairo>=0:graphics/py3-cairo
23

24
25
26
# conflict with py*-json-py because orca uses the json from python itself
# and py*-json-py shadows this.
CONFLICTS=	py*-json-py-[0-9]*
27
PORTSCOUT=	limitw:1,even
28

29
USES=		gettext gmake gnome pathfix pkgconfig python:3 tar:xz
30
USE_GNOME=	gtk30 py3gobject3 intlhack
31
32
INSTALLS_ICONS=	yes
GNU_CONFIGURE=	yes
33
34
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
35

36
37
post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
38
		${WRKSRC}/src/orca/orca_i18n.py
39

rm's avatar
rm committed
40
41
42
43
44
45
46
47
48
49
50
51
.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 3500
PYOEXTENSION=	pyo
.else
PYOEXTENSION=	opt-1.pyc
.endif

PLIST_SUB+=	PYOEXTENSION=${PYOEXTENSION} \
		PYVER=${PYTHON_VER:S/.//}

.include <bsd.port.post.mk>