aboutsummaryrefslogtreecommitdiff
path: root/accessibility/speech-dispatcher
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2016-10-12 18:55:54 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2016-10-12 18:55:54 +0000
commitb7ea89d0aff07f59bfef0b39191f3360b8fcd050 (patch)
tree8af3e5269688dbc650f93de57ce449c41a6bb0ef /accessibility/speech-dispatcher
parente1225c446e4c6d360d8de4bee54c6c7333baeec2 (diff)
Notes
Diffstat (limited to 'accessibility/speech-dispatcher')
-rw-r--r--accessibility/speech-dispatcher/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/accessibility/speech-dispatcher/Makefile b/accessibility/speech-dispatcher/Makefile
index c9056fde6368..58422f99c72a 100644
--- a/accessibility/speech-dispatcher/Makefile
+++ b/accessibility/speech-dispatcher/Makefile
@@ -68,6 +68,7 @@ NAS_CONFIGURE_WITH= nas
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_WITH=pulse
+.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e '/SUBDIRS/ s/tests//' \
${WRKSRC}/src/Makefile.in
@@ -84,13 +85,22 @@ post-install:
.else
-USES+= python:3
+NO_ARCH= yes
+USES+= python:3.3+
LIB_DEPENDS+= libspeechd.so:accessibility/speech-dispatcher
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/xdg/__init__.py:devel/py3-xdg
-USE_PYTHON= py3kplist
-PLIST_SUB= PYVER=${PYTHON_VER:S|.||}
+.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/.//}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>