2013-03-02 23:32:48 +01:00
|
|
|
# Created by: Randall Hopper <aa8vb@ipass.net>
|
1999-11-07 17:59:55 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= opengl
|
2010-04-23 15:10:36 +02:00
|
|
|
PORTVERSION= 3.0.1
|
Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
- #14669: Fixed extraction of CC from gmp.h.
- Fixed case of intermediate zero real or imaginary part in mpc_fma,
found by hydra with GMP_CHECK_RANDOMIZE=1346362345.
This is on top of the following changes from version 1.0
- Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
invariant sections) for the documentation.
- 100% of all lines are covered by tests
- Renamed functions
. mpc_mul_2exp to mpc_mul_2ui
. mpc_div_2exp to mpc_div_2ui
- 0^0, which returned (NaN,NaN) previously, now returns (1,+0).
- Removed compatibility with K&R compilers, which was untestable due
to lack of such compilers.
- New functions
. mpc_log10
. mpc_mul_2si, mpc_div_2si
- Speed-ups
. mpc_fma
- Bug fixes
. mpc_div and mpc_norm now return a value indicating the effective
rounding direction, as the other functions.
. mpc_mul, mpc_sqr and mpc_norm now return correct results even if
there are over- or underflows during the computation.
. mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
infinite part and equals output variable is corrected.
. mpc_fr_sub: Wrong return value for imaginary part is corrected.
Convert to the new LIB_DEPENDS standard and remove hard-coded
.so versions from a couple of dependent ports.
Bump PORTREVISIONS of all dependent ports.
PR: 183141
Approved by: portmgr (bdrewery)
2013-10-26 02:52:33 +02:00
|
|
|
PORTREVISION= 3
|
1999-11-07 17:59:55 +01:00
|
|
|
CATEGORIES= graphics python
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/py${PORTNAME}/PyOpenGL/${PORTVERSION}
|
2004-05-13 03:34:53 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2009-05-17 14:35:05 +02:00
|
|
|
DISTNAME= PyOpenGL-${PORTVERSION}
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2010-07-26 02:03:14 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-12-27 18:37:52 +01:00
|
|
|
COMMENT= OpenGL (and related library) interface for Python
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2010-04-23 15:10:36 +02:00
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
2006-09-01 02:51:19 +02:00
|
|
|
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
2010-04-23 15:10:36 +02:00
|
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
2000-12-05 09:44:56 +01:00
|
|
|
${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2012-06-12 23:42:32 +02:00
|
|
|
OPTIONS_DEFINE= TKINTER
|
|
|
|
OPTIONS_DEFAULT= TKINTER
|
|
|
|
TKINTER_DESC= Build with tkinter for X support
|
2006-09-01 02:51:19 +02:00
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/${PORTNAME}/options
|
|
|
|
|
2013-11-20 00:08:44 +01:00
|
|
|
USES= dos2unix
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_GL= glut
|
2000-12-05 09:44:56 +01:00
|
|
|
USE_PYTHON= yes
|
2002-04-29 19:40:01 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
2013-12-27 18:37:52 +01:00
|
|
|
PYDISTUTILS_AUTOPLIST= yes
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2013-09-20 20:35:44 +02:00
|
|
|
NO_STAGE= yes
|
2006-09-01 02:51:19 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-06-12 23:42:32 +02:00
|
|
|
.if ${PORT_OPTIONS:MTKINTER}
|
2013-03-02 23:32:48 +01:00
|
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
2006-09-01 02:51:19 +02:00
|
|
|
.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'
|
2004-05-17 04:25:33 +02:00
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
2009-05-17 14:35:05 +02:00
|
|
|
${REINPLACE_CMD} -e 's|posix |posix|g' ${WRKSRC}/OpenGL/__init__.py
|
1999-11-07 17:59:55 +01:00
|
|
|
|
2006-09-01 02:51:19 +02:00
|
|
|
.include <bsd.port.post.mk>
|