freebsd-ports/graphics/py-opengl/Makefile

38 lines
1.1 KiB
Makefile
Raw Normal View History

# Created by: Randall Hopper <aa8vb@ipass.net>
# $FreeBSD$
PORTNAME= opengl
PORTVERSION= 3.0.1
PORTREVISION= 7
CATEGORIES= graphics python
MASTER_SITES= SF/py${PORTNAME}/PyOpenGL/${PORTVERSION}
2004-05-13 03:34:53 +02:00
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= PyOpenGL-${PORTVERSION}
MAINTAINER= python@FreeBSD.org
2013-12-27 18:37:52 +01:00
COMMENT= OpenGL (and related library) interface for Python
BUILD_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow
RUN_DEPENDS:= ${BUILD_DEPENDS}
2012-06-12 23:42:32 +02:00
OPTIONS_DEFINE= TKINTER
OPTIONS_DEFAULT= TKINTER
TKINTER_DESC= Build with tkinter for X support
OPTIONSFILE?= ${PORT_DBDIR}/${PORTNAME}/options
USES= dos2unix python
USE_GL= glut
USE_PYTHON= distutils autoplist
2014-02-06 23:06:26 +01:00
TKINTER_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
TKINTER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
2004-05-13 03:34:53 +02:00
post-patch:
2003-01-15 19:28:17 +01:00
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
2004-05-13 03:34:53 +02:00
's|<malloc\.h>|<stdlib.h>|g'
@${FIND} ${WRKSRC} -name "*.bak" -delete
${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py
2014-02-06 23:06:26 +01:00
.include <bsd.port.mk>