# Created by: David Naylor # $FreeBSD$ PORTNAME= kivy PORTVERSION= 1.9.1 CATEGORIES= x11-toolkits python MASTER_SITES= GH LOCAL/dbn/${PORTNAME} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= dbn@FreeBSD.org COMMENT= Python NUI library for rapid application development LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= cython:lang/cython LIB_DEPENDS= libmtdev.so:devel/libmtdev TEST_DEPENDS= nosetests-${PYTHON_VER}:devel/py-nose MAKE_ENV= KIVY_NO_CONFIG=yes KIVY_NO_FILELOG=yes USE_OPENGL_ES2=1 \ PYTHONPATH=${WRKSRC} USE_GITHUB= yes USES= display:test python:2.7+,concurrent uniquefiles:dirs USE_GL= egl gl glesv2 USE_PYTHON= distutils PYDISTUTILS_BUILD_TARGET= build_ext PYDISTUTILS_BUILDARGS= --inplace PYDISTUTILS_EGGINFO= Kivy-${PORTVERSION}-py${PYTHON_VER}.egg-info OPTIONS_DEFINE= DOCS OPTIONS_SET= ENCHANT OPENCV PYGAME OPTIONS_SUB= yes OPTIONS_GROUP= VIDEO AUDIO IMAGE CAMERA SPELLING CLIPBOARD OPTIONS_MULTI= WINDOW TEXT OPTIONS_MULTI_WINDOW= PYGAME X11 SDL2 OPTIONS_MULTI_TEXT= PIL PYGAME SDL2 OPTIONS_GROUP_VIDEO= GSTREAMER FFMPEG OPTIONS_GROUP_AUDIO= GSTREAMER PYGAME SDL2 OPTIONS_GROUP_IMAGE= PIL PYGAME SDL2 OPTIONS_GROUP_CAMERA= OPENCV GSTREAMER OPTIONS_GROUP_SPELLING= ENCHANT OPTIONS_GROUP_CLIPBOARD= PYGAME CAMERA_DESC= Camera support CLIPBOARD_DESC= Clipboard support IMAGE_DESC= Image support SPELLING_DESC= Spell checking support TEXT_DESC= Text rendering support (compulsory) WINDOW_DESC= Window support (compulsory) DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx ENCHANT_DESC= Spell checking support via Enchant ENCHANT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}enchant>=0:textproc/py-enchant FFMPEG_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/ffmpeg/__init__.py:multimedia/py-ffmpeg GSTREAMER_MAKE_ENV= USE_GSTREAMER=1 GSTREAMER_MAKE_ENV_OFF= USE_GSTREAMER=0 GSTREAMER_LIB_DEPENDS= libgstreamer-1.0.so:multimedia/gstreamer1 GSTREAMER_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygst.py:multimedia/py-gstreamer GSTREAMER_USES= pkgconfig OPENCV_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cv.py:graphics/py-opencv PIL_DESC= Text and window rendering support via Pillow PIL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow PYGAME_DESC= Window, text and image rendering support via PyGame PYGAME_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>0:devel/py-game PYGLET_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyglet>0:graphics/py-pyglet SDL2_DESC= Simple Direct Media Layer v2.0 support SDL2_MAKE_ENV= USE_SDL2=1 SDL2_MAKE_ENV_OFF= USE_SDL2=0 SDL2_USE= SDL=sdl2,mixer2,image2,ttf2 SDL2_USES= pkgconfig X11_MAKE_ENV= USE_X11=1 X11_MAKE_ENV_OFF= USE_X11=0 X11_USE= XORG=x11 .if !defined(ARCH) ARCH!= uname -p .endif .if ${ARCH} == i386 OPTIONS_GROUP_VIDEO+= PYGLET .endif post-build-DOCS-on: ${MKDIR} ${WRKSRC}/doc/build/doctrees ${WRKSRC}/doc/build/html (cd ${WRKSRC}; \ ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} doc/autobuild.py) (cd ${WRKSRC}; \ ${SETENV} ${MAKE_ENV} sphinx-build -b html \ -d ${WRKSRC}/doc/build/doctrees \ doc/sources ${WRKSRC}/doc/build/html) do-test: @(cd ${KIVYPATH}; \ ${SETENV} ${MAKE_ENV} nosetests-${PYTHON_VER} ${KIVYPATH}/kivy/tests) post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/kivy -name '*.so' | ${XARGS} ${STRIP_CMD} post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/doc/build/html; ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) post-install-PDF-on: post-install-DOCS-on ${INSTALL_DATA} ${WRKSRC}/doc/build/latex-a4/Kivy.pdf \ ${STAGEDIR}${DOCSDIR}/Kivy-a4.pdf ${INSTALL_DATA} ${WRKSRC}/doc/build/latex-letter/Kivy.pdf \ ${STAGEDIR}${DOCSDIR}/Kivy-letter.pdf .include