Tweak math/rocs version 4.14.3_7
[dports.git] / graphics / py-PyOpenGL / Makefile
1 # Created by: Randall Hopper <aa8vb@ipass.net>
2 # $FreeBSD$
3
4 PORTNAME=       PyOpenGL
5 PORTVERSION=    3.1.0
6 PORTREVISION=   1
7 CATEGORIES=     graphics python
8 MASTER_SITES=   CHEESESHOP
9 PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
10 #DISTNAME=      PyOpenGL-${PORTVERSION}
11
12 MAINTAINER=     python@FreeBSD.org
13 COMMENT=        OpenGL (and related library) interface for Python
14
15 BUILD_DEPENDS=  ${PYNUMPY} \
16                 ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${FLAVOR}
17 RUN_DEPENDS:=   ${BUILD_DEPENDS}
18
19 OPTIONS_DEFINE= TKINTER
20 OPTIONS_DEFAULT=        TKINTER
21 TKINTER_DESC=   Build with tkinter for X support
22
23 USES=           dos2unix python
24 USE_GL=         glut
25 USE_PYTHON=     distutils autoplist
26
27 TKINTER_BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${FLAVOR}
28 TKINTER_RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${FLAVOR}
29
30 post-patch:
31         @${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
32                 's|<malloc\.h>|<stdlib.h>|g'
33         @${FIND} ${WRKSRC} -name "*.bak" -delete
34         ${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py
35
36 .include <bsd.port.mk>