1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name glw |
---|
6 | version 7.2 |
---|
7 | categories x11 devel graphics |
---|
8 | maintainers css@macports.org |
---|
9 | description Mesa OpenGL widget library |
---|
10 | homepage http://www.mesa3d.org/ |
---|
11 | platforms darwin |
---|
12 | long_description SGI Xt/Motif OpenGL widget library |
---|
13 | master_sites sourceforge:mesa3d |
---|
14 | |
---|
15 | distname MesaLib-${version} |
---|
16 | use_bzip2 yes |
---|
17 | use_autoconf yes |
---|
18 | |
---|
19 | checksums md5 04d379292e023df0b0266825cb0dbde5 \ |
---|
20 | sha1 a6dce814cc56a562890ab79cf4e205f62459a29c \ |
---|
21 | rmd160 1e7c2cc6aa27ebaf7e726ac2086c10a5155d0832 |
---|
22 | |
---|
23 | universal_variant no |
---|
24 | |
---|
25 | depends_lib lib:libX11.6:XFree86 \ |
---|
26 | lib:libXm.4:openmotif \ |
---|
27 | |
---|
28 | post-extract { file mkdir "${worksrcpath}/lib" } |
---|
29 | |
---|
30 | configure.args-append --enable-motif |
---|
31 | |
---|
32 | worksrcdir Mesa-${version} |
---|
33 | build.cmd cd "${worksrcpath}/src/glw" && make |
---|
34 | build.target |
---|
35 | |
---|
36 | variant darwin { |
---|
37 | post-configure { |
---|
38 | reinplace "s|\.so$|\.dylib|g" ${worksrcpath}/configs/current |
---|
39 | reinplace "s|\$(GLW_LIB_NAME)\\*|libGLw.\*dylib|g" ${worksrcpath}/configs/default |
---|
40 | } |
---|
41 | } |
---|