Ticket #15648: Portfile

File Portfile, 1.3 KB (added by raimue (Rainer Müller), 16 years ago)
Line 
1# $Id: Portfile 31397 2007-11-22 10:04:31Z takanori@macports.org $
2
3PortSystem      1.0
4
5set pyver       2.5
6set pybranch    25
7
8name            py${pybranch}-visual
9version         3.2.9
10categories      python graphics
11platforms       darwin
12maintainers     raimue \
13                openmaintainer
14
15description     VPython, a python module for 3D graphics
16long_description \
17                VPython provides a module for 3D graphics and visualization
18homepage        http://vpython.org/
19
20master_sites    sourceforge:visualpython \
21                http://vpython.org/download
22distname        visual-${version}
23use_bzip2       yes
24
25checksums       md5     58e46ecb628a4fdbb5c58540b6cbede1 \
26                sha1    d64f32ffacc75a59e7703d2c51bd93b842038421 \
27                rmd160  49cfd441577c2a49dda1cd48b55b5e72e0968c27
28
29depends_lib \
30                port:python${pybranch} \
31                port:gtkglarea \
32                port:boost
33
34patch {
35    reinplace {s/-lboost_python/-lboost_python-mt -lpython${pyver}/g} ${worksrcpath}/src/Makefile.in
36}
37
38platform darwin 9 {
39    configure.ldflags-append \
40        -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
41        /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
42}