340b57f8be
- Bump PORTREVISION for all ports depending on libglut since the shlib version number went from 4 to 3. - Bump PORTREVISION for all ports depending on libXaw as libXaw.so.8 isn't installed anymore. - Couple of ports fixes (mostly missing xorg components added to USE_XORG).
53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
# 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.0.b8
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= py${PORTNAME}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= PyOpenGL-${PORTVERSION:S/.b/b/}
|
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
|
COMMENT= An OpenGL (and related library) interface for Python
|
|
|
|
BUILD_DEPENDS= ${PYNUMERIC} \
|
|
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
|
RUN_DEPENDS= ${PYNUMERIC} \
|
|
${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
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_PKGNAME= PyOpenGL
|
|
PYDISTUTILS_PKGVERSION= ${PORTVERSION:S/.b/b/}
|
|
|
|
.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
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s|
|
|
||"
|
|
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|<malloc\.h>|<stdlib.h>|g'
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
|
|
|
post-install:
|
|
@${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>
|