1999-11-07 17:59:55 +01:00
|
|
|
# New ports collection makefile for: PyOpenGL
|
|
|
|
# Date created: Wed Aug 18 18:49:17 EDT 1999
|
|
|
|
# Whom: Randall Hopper <aa8vb@ipass.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= opengl
|
2010-04-23 15:10:36 +02:00
|
|
|
PORTVERSION= 3.0.1
|
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
|
|
|
|
2010-07-26 02:03:14 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= An 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} \
|
2006-09-01 02:51:19 +02:00
|
|
|
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
2010-04-23 15:10:36 +02:00
|
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
2000-12-05 09:44:56 +01:00
|
|
|
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2006-09-01 02:51:19 +02:00
|
|
|
OPTIONS= TKINTER "Build with tkinter for X support" On
|
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/${PORTNAME}/options
|
|
|
|
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_GL= glut
|
2000-12-05 09:44:56 +01:00
|
|
|
USE_PYTHON= yes
|
2002-04-29 19:40:01 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= PyOpenGL
|
2008-12-22 12:14:15 +01:00
|
|
|
PYDISTUTILS_PKGVERSION= ${PORTVERSION:S/.b/b/}
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2012-05-05 19:46:41 +02:00
|
|
|
USE_DOS2UNIX= yes
|
|
|
|
|
2006-09-01 02:51:19 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_TKINTER)
|
|
|
|
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
2000-12-05 09:44:56 +01:00
|
|
|
post-install:
|
2004-05-13 03:34:53 +02:00
|
|
|
@${FIND} ${PYTHON_SITELIBDIR}/OpenGL -type f | \
|
|
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${PYTHON_SITELIBDIR}/OpenGL -type d | ${SORT} -r | \
|
|
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2006-09-01 02:51:19 +02:00
|
|
|
.include <bsd.port.post.mk>
|