freebsd-ports/accessibility/orca/Makefile
Sunpoet Po-Chuan Hsieh e730d999d3 Add more PLIST_SUB to Mk/Uses/python.mk
- Add PYTHON_PYOEXTENSION and PYTHON_SUFFIX
- Add PYTHON2 and PYTHON3
- Respect PYTHON_VERSION
- Rename PYOEXTENSION to PYTHON_PYOEXTENSION

This change would help:
- Build databases/postgresql*-plpython with Python 3
  (It has PLIST issue since bsd.python.mk to Uses/python.mk transition)
- Simplify Makefile

PR:		205807
Differential Revision:	https://reviews.FreeBSD.org/D4758
Exp-run by:	antoine
2017-01-07 21:42:28 +00:00

41 lines
1.1 KiB
Makefile

# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
PORTNAME= orca
PORTVERSION= 3.18.2
CATEGORIES= accessibility gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT= Scriptable screen reader
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
# 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]*
PORTSCOUT= limitw:1,even
NO_ARCH= yes
USES= gettext gmake gnome pathfix pkgconfig python:3 tar:xz
USE_GNOME= gtk30 py3gobject3 intlhack
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/src/orca/orca_i18n.py
.include <bsd.port.mk>