mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-07 11:49:40 +00:00
![Mathieu Arnold](/assets/img/avatar_default.png)
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now, we won't have conflicts there. Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel has the correct PKGNAME anyway. Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called OPTIONS_FILE now.) Reviewed by: antoine, bapt Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3336
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
# Created by: Randall Hopper <aa8vb@ipass.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= opengl
|
|
PORTVERSION= 3.0.1
|
|
PORTREVISION= 7
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= SF/py${PORTNAME}/PyOpenGL/${PORTVERSION}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= PyOpenGL-${PORTVERSION}
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= OpenGL (and related library) interface for Python
|
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
OPTIONS_DEFINE= TKINTER
|
|
OPTIONS_DEFAULT= TKINTER
|
|
TKINTER_DESC= Build with tkinter for X support
|
|
|
|
USES= dos2unix python
|
|
USE_GL= glut
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
TKINTER_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
TKINTER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|<malloc\.h>|<stdlib.h>|g'
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
|
${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py
|
|
|
|
.include <bsd.port.mk>
|