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
|
2004-05-13 03:34:53 +02:00
|
|
|
PORTVERSION= 2.0.1.07
|
2006-01-12 13:54:32 +01:00
|
|
|
PORTREVISION= 2
|
1999-11-07 17:59:55 +01:00
|
|
|
CATEGORIES= graphics python
|
2000-12-05 09:44:56 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= py${PORTNAME}
|
2004-05-13 03:34:53 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2000-12-18 17:59:33 +01:00
|
|
|
DISTNAME= PyOpenGL-${PORTVERSION:S/.b/b/}
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2003-07-29 11:12:37 +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
|
|
|
|
2002-07-15 13:37:35 +02:00
|
|
|
BUILD_DEPENDS= ${PYNUMERIC} \
|
2000-12-05 09:44:56 +01:00
|
|
|
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
|
2003-01-15 19:28:17 +01:00
|
|
|
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging \
|
|
|
|
swig:${PORTSDIR}/devel/swig11
|
2002-07-15 13:37:35 +02:00
|
|
|
RUN_DEPENDS= ${PYNUMERIC} \
|
2000-12-05 09:44:56 +01:00
|
|
|
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
|
|
|
|
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
2006-01-12 13:54:32 +01:00
|
|
|
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2004-05-13 03:34:53 +02:00
|
|
|
USE_GL= yes
|
2000-12-05 09:44:56 +01:00
|
|
|
USE_PYTHON= yes
|
2002-04-29 19:40:01 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2004-05-13 03:34:53 +02:00
|
|
|
post-patch:
|
2004-05-17 04:25:33 +02:00
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s|
||"
|
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'
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
|
|
-e 's|%%X11BASE%%|${X11BASE}|g' \
|
2003-01-15 19:28:17 +01:00
|
|
|
${WRKSRC}/config/freebsd.cfg ${WRKSRC}/Tkinter.py
|
2004-05-17 04:25:33 +02:00
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
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
|
|
|
|
2000-12-05 09:44:56 +01:00
|
|
|
.include <bsd.port.mk>
|