1# Created by: Randall Hopper <aa8vb@ipass.net> 2 3PORTNAME= PyOpenGL 4PORTVERSION= 3.1.7 5CATEGORIES= graphics python 6MASTER_SITES= PYPI 7PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} 8#DISTNAME= PyOpenGL-${PORTVERSION} 9 10MAINTAINER= ports@MidnightBSD.org 11COMMENT= OpenGL (and related library) interface for Python 12 13LICENSE= PyOpenGL 14LICENSE_NAME= PyOpenGL License 15LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept 16LICENSE_FILE= ${WRKSRC}/license.txt 17 18BUILD_DEPENDS= ${PYNUMPY} \ 19 ${PY_PILLOW} 20RUN_DEPENDS= ${PYNUMPY} \ 21 ${PY_PILLOW} 22 23OPTIONS_DEFINE= TKINTER 24OPTIONS_DEFAULT= TKINTER 25TKINTER_DESC= Build with tkinter for X support 26 27USES= dos2unix gl python 28USE_GL= glut 29USE_PYTHON= distutils autoplist 30 31TKINTER_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR} 32TKINTER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR} 33 34post-patch: 35 @${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \ 36 's|<malloc\.h>|<stdlib.h>|g' 37 @${FIND} ${WRKSRC} -name "*.bak" -delete 38 ${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py 39 40.include <bsd.port.mk> 41