freebsd-ports/graphics/py-opengl/Makefile

49 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
2004-05-13 03:34:53 +02:00
PORTVERSION= 2.0.1.07
PORTREVISION= 2
CATEGORIES= graphics python
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/}
MAINTAINER= ports@FreeBSD.org
COMMENT= An OpenGL (and related library) interface for Python
2002-07-15 13:37:35 +02:00
BUILD_DEPENDS= ${PYNUMERIC} \
${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} \
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
2004-05-13 03:34:53 +02:00
USE_GL= yes
USE_PYTHON= yes
2002-04-29 19:40:01 +02:00
USE_PYDISTUTILS= yes
2004-05-13 03:34:53 +02:00
post-patch:
@${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
@${FIND} ${WRKSRC} -name "*.bak" -delete
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.mk>