aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-PyOpenGL/Makefile
blob: e17484b0f6f47d3a5125e2ae879166b665d4059d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Created by: Randall Hopper <aa8vb@ipass.net>
# $FreeBSD$

PORTNAME=   PyOpenGL
PORTVERSION=    3.1.0
PORTREVISION=   1
CATEGORIES= graphics python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
#DISTNAME=  PyOpenGL-${PORTVERSION}

MAINTAINER= python@FreeBSD.org
COMMENT=    OpenGL (and related library) interface for Python

BUILD_DEPENDS=  ${PYNUMPY} \
        ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${FLAVOR}
RUN_DEPENDS:=   ${BUILD_DEPENDS}

OPTIONS_DEFINE= TKINTER
OPTIONS_DEFAULT=    TKINTER
TKINTER_DESC=   Build with tkinter for X support

USES=       dos2unix python
USE_GL=     glut
USE_PYTHON= distutils autoplist

TKINTER_BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${FLAVOR}
TKINTER_RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${FLAVOR}

post-patch:
    @${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
        's|<malloc\.h>|<stdlib.h>|g'
    @${FIND} ${WRKSRC} -name "*.bak" -delete
    ${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py

.include <bsd.port.mk>