Changeset View
Changeset View
Standalone View
Standalone View
graphics/py-opengl/Makefile
Show All 13 Lines | |||||
BUILD_DEPENDS= ${PYNUMPY} \ | BUILD_DEPENDS= ${PYNUMPY} \ | ||||
${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow | ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow | ||||
RUN_DEPENDS:= ${BUILD_DEPENDS} | RUN_DEPENDS:= ${BUILD_DEPENDS} | ||||
OPTIONS_DEFINE= TKINTER | OPTIONS_DEFINE= TKINTER | ||||
OPTIONS_DEFAULT= TKINTER | OPTIONS_DEFAULT= TKINTER | ||||
TKINTER_DESC= Build with tkinter for X support | TKINTER_DESC= Build with tkinter for X support | ||||
OPTIONSFILE?= ${PORT_DBDIR}/${PORTNAME}/options | |||||
USES= dos2unix python | USES= dos2unix python | ||||
USE_GL= glut | USE_GL= glut | ||||
USE_PYTHON= distutils autoplist | USE_PYTHON= distutils autoplist | ||||
TKINTER_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter | TKINTER_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter | ||||
TKINTER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter | TKINTER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter | ||||
post-patch: | post-patch: | ||||
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \ | @${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \ | ||||
's|<malloc\.h>|<stdlib.h>|g' | 's|<malloc\.h>|<stdlib.h>|g' | ||||
@${FIND} ${WRKSRC} -name "*.bak" -delete | @${FIND} ${WRKSRC} -name "*.bak" -delete | ||||
${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py | ${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |