freebsd-ports/graphics/py-opengl/Makefile

54 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: PyOpenGL
# Date created: Wed Aug 18 18:49:17 EDT 1999
# Whom: Randall Hopper <aa8vb@ipass.net>
#
# $FreeBSD$
#
PORTNAME= opengl
PORTVERSION= 3.0.1
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= ports@FreeBSD.org
COMMENT= An OpenGL (and related library) interface for Python
BUILD_DEPENDS= ${PYNUMPY} \
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
OPTIONS= TKINTER "Build with tkinter for X support" On
OPTIONSFILE?= ${PORT_DBDIR}/${PORTNAME}/options
USE_GL= glut
USE_PYTHON= yes
2002-04-29 19:40:01 +02:00
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= PyOpenGL
PYDISTUTILS_PKGVERSION= ${PORTVERSION:S/.b/b/}
USE_DOS2UNIX= yes
.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'
@${FIND} ${WRKSRC} -name "*.bak" -delete
${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py
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}
.include <bsd.port.post.mk>