2013-03-02 23:32:48 +01:00
|
|
|
# Created by: Randall Hopper <aa8vb@ipass.net>
|
1999-11-07 17:59:55 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= opengl
|
2010-04-23 15:10:36 +02:00
|
|
|
PORTVERSION= 3.0.1
|
2014-10-07 14:20:35 +02:00
|
|
|
PORTREVISION= 7
|
1999-11-07 17:59:55 +01:00
|
|
|
CATEGORIES= graphics python
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/py${PORTNAME}/PyOpenGL/${PORTVERSION}
|
2004-05-13 03:34:53 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2009-05-17 14:35:05 +02:00
|
|
|
DISTNAME= PyOpenGL-${PORTVERSION}
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2014-10-07 14:20:35 +02:00
|
|
|
MAINTAINER= python@FreeBSD.org
|
2013-12-27 18:37:52 +01:00
|
|
|
COMMENT= OpenGL (and related library) interface for Python
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2010-04-23 15:10:36 +02:00
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
2014-10-07 14:20:35 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow
|
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2012-06-12 23:42:32 +02:00
|
|
|
OPTIONS_DEFINE= TKINTER
|
|
|
|
OPTIONS_DEFAULT= TKINTER
|
|
|
|
TKINTER_DESC= Build with tkinter for X support
|
2006-09-01 02:51:19 +02:00
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/${PORTNAME}/options
|
|
|
|
|
2014-10-07 14:20:35 +02:00
|
|
|
USES= dos2unix python
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_GL= glut
|
2014-10-07 14:20:35 +02:00
|
|
|
USE_PYTHON= distutils autoplist
|
1999-11-07 17:59:55 +01:00
|
|
|
|
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
|
2006-09-01 02:51:19 +02:00
|
|
|
|
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'
|
2004-05-17 04:25:33 +02:00
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
2009-05-17 14:35:05 +02:00
|
|
|
${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2014-02-06 23:06:26 +01:00
|
|
|
.include <bsd.port.mk>
|