View | Details | Raw Unified | Return to bug 129223
Collapse All | Expand All

(-)py-opengl.new/Makefile (-8 / +5 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	opengl
8
PORTNAME=	opengl
9
PORTVERSION=	2.0.1.07
9
PORTVERSION=	3.0.0.b6
10
PORTREVISION=	4
11
CATEGORIES=	graphics python
10
CATEGORIES=	graphics python
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	py${PORTNAME}
12
MASTER_SITE_SUBDIR=	py${PORTNAME}
Lines 19-25 Link Here
19
18
20
BUILD_DEPENDS=	${PYNUMERIC} \
19
BUILD_DEPENDS=	${PYNUMERIC} \
21
		${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
20
		${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
22
#		swig1.3:${PORTSDIR}/devel/swig13
23
RUN_DEPENDS=	${PYNUMERIC} \
21
RUN_DEPENDS=	${PYNUMERIC} \
24
		${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
22
		${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging
25
LIB_DEPENDS=	glut.4:${PORTSDIR}/graphics/libglut
23
LIB_DEPENDS=	glut.4:${PORTSDIR}/graphics/libglut
Lines 29-36 Link Here
29
27
30
USE_GL=		yes
28
USE_GL=		yes
31
USE_PYTHON=	yes
29
USE_PYTHON=	yes
32
USE_PYDISTUTILS=	yes
30
USE_PYDISTUTILS=	easy_install
33
PYDISTUTILS_PKGNAME=	PyOpenGL
31
PYDISTUTILS_PKGNAME=	PyOpenGL
32
PYDISTUTILS_PKGVERSION=	${PORTVERSION:S/.b/b/}
34
33
35
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
36
35
Lines 43-56 Link Here
43
	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s|||"
42
	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s|||"
44
	@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
43
	@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
45
		's|<malloc\.h>|<stdlib.h>|g'
44
		's|<malloc\.h>|<stdlib.h>|g'
46
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
47
		${WRKSRC}/config/freebsd.cfg ${WRKSRC}/Tkinter.py
48
	@${FIND} ${WRKSRC} -name "*.bak" -delete
45
	@${FIND} ${WRKSRC} -name "*.bak" -delete
49
46
50
post-install:
47
post-install:
51
	@${FIND} ${PYTHON_SITELIBDIR}/OpenGL -type f | \
48
	@${FIND} ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG} -type f | \
52
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
49
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
53
	@${FIND} ${PYTHON_SITELIBDIR}/OpenGL -type d | ${SORT} -r | \
50
	@${FIND} ${PYTHON_SITELIBDIR} -type d | ${SORT} -r | \
54
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
51
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
55
52
56
.include <bsd.port.post.mk>
53
.include <bsd.port.post.mk>
(-)py-opengl.new/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (PyOpenGL-2.0.1.07.tar.gz) = 02e4331778fad4da7549ff1585a7a4a4
1
MD5 (PyOpenGL-3.0.0b6.tar.gz) = 6a70dd315767064ec78b84a92d2420a8
2
SHA256 (PyOpenGL-2.0.1.07.tar.gz) = 7af4abf30b873cfc00d2800ea7d2a83cc4c66b27bb7d132c1daf8ab40b76ba34
2
SHA256 (PyOpenGL-3.0.0b6.tar.gz) = ddfee8ce7832dcb45e95d2199a8379da1191bbb245a8b664ac44d4c0e329c0bc
3
SIZE (PyOpenGL-2.0.1.07.tar.gz) = 1884617
3
SIZE (PyOpenGL-3.0.0b6.tar.gz) = 573360
(-)py-opengl.new/files/patch-ad (-28 lines)
Lines 1-28 Link Here
1
2
$FreeBSD: ports/graphics/py-opengl/files/patch-ad,v 1.3 2003/08/20 10:32:03 perky Exp $
3
4
--- Tkinter.py.orig	Tue Jan 14 19:47:57 2003
5
+++ Tkinter.py	Tue Jan 14 19:57:55 2003
6
@@ -0,0 +1,22 @@
7
+import os
8
+
9
+class nullcall:
10
+	def __init(self):
11
+		pass
12
+	def call(self, a1='', a2='', a3='', a4='', a5=''):
13
+		os.system('echo' + ' ' + a1 + ' ' + a2 + ' ' + a3 + ' ' + a4 + \
14
+		 ' ' + a5 + ' > register.tcl')
15
+
16
+class Tk:
17
+	tk = None
18
+	def __init__(self):
19
+		self.tk = nullcall()
20
+		pass
21
+	def getvar(self, varname):
22
+		if varname == 'tk_version' or varname == 'tcl_version':
23
+			return '8.4'
24
+		if varname == 'tcl_library':
25
+			return '%%LOCALBASE%%/lib/tcl8.4'
26
+		if varname == 'tk_library':
27
+			return '%%LOCALBASE%%/lib/tk8.4'
28
+		return ''
(-)py-opengl.new/files/patch-config::freebsd.cfg (-13 lines)
Lines 1-13 Link Here
1
--- config/freebsd.cfg.orig	Thu May 13 09:25:15 2004
2
+++ config/freebsd.cfg	Thu May 13 09:25:37 2004
3
@@ -11,8 +11,8 @@
4
 [General]
5
 build_togl=1
6
 gl_platform=GLX
7
-include_dirs=/usr/include:/usr/local/include:/usr/X11/include:/usr/X11R6/include
8
-library_dirs=/usr/lib:/usr/local/lib:/usr/X11/lib:/usr/X11R6/lib
9
+include_dirs=/usr/include:%%LOCALBASE%%/include
10
+library_dirs=/usr/lib:%%LOCALBASE%%/lib
11
 
12
 ; a os.pathsep separated list of the libs needed when linking GL
13
 [GL]

Return to bug 129223