1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name openvrml |
---|
7 | version 0.17.12 |
---|
8 | categories graphics x11 |
---|
9 | maintainers ira.uka.de:raphael openmaintainer |
---|
10 | description a cross-platform VRML and X3D browser and C++ runtime \ |
---|
11 | library |
---|
12 | long_description OpenVRML is a free cross-platform runtime for VRML and \ |
---|
13 | X3D available under the GNU Lesser General Public \ |
---|
14 | License. The OpenVRML distribution includes libraries \ |
---|
15 | you can use to add VRML/X3D support to an application. \ |
---|
16 | On platforms where GTK+ is available, OpenVRML also \ |
---|
17 | provides a plug-in to render VRML/X3D worlds in Web \ |
---|
18 | browsers. |
---|
19 | homepage http://www.openvrml.org/ |
---|
20 | platforms darwin |
---|
21 | master_sites sourceforge |
---|
22 | checksums md5 162153ee2e5c498b31f600193ebabe58 \ |
---|
23 | sha1 e546b089214b1e6d50f57e524db8991930032618 \ |
---|
24 | rmd160 c6a4aee4cef82490efc27bb510c8d21da10029e4 |
---|
25 | |
---|
26 | depends_lib port:boost \ |
---|
27 | port:libpng \ |
---|
28 | port:jpeg \ |
---|
29 | port:fontconfig \ |
---|
30 | port:mesa \ |
---|
31 | port:libsdl |
---|
32 | depends_build port:pkgconfig |
---|
33 | |
---|
34 | pre-extract { if {"darwin" == ${os.platform} && 9 == ${os.major}} { |
---|
35 | set minimum_xcodeversion 3.1 |
---|
36 | set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString] |
---|
37 | if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} { |
---|
38 | ui_msg "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}." |
---|
39 | return -code error "incompatible Xcode version" |
---|
40 | } |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | configure.args --disable-script-node-javascript \ |
---|
45 | --disable-xembed \ |
---|
46 | --disable-player \ |
---|
47 | --disable-mozilla-plugin \ |
---|
48 | --with-x \ |
---|
49 | --x-includes=${prefix}/include \ |
---|
50 | --x-libraries=${prefix}/lib |
---|
51 | configure.env-append BOOST_LIB_SUFFIX=-mt |
---|
52 | |
---|
53 | # For +system_x11 variant |
---|
54 | if { ![file exists ${prefix}/lib/pkgconfig/gl.pc] } { |
---|
55 | configure.args-delete --x-includes=${prefix}/include \ |
---|
56 | --x-libraries=${prefix}/lib |
---|
57 | } |
---|
58 | |
---|
59 | use_parallel_build yes |
---|
60 | |
---|
61 | variant js_mozilla description {Enable support for JavaScript in the Script node with Mozilla} { |
---|
62 | depends_lib-append port:mozilla |
---|
63 | configure.args-delete --disable-script-node-javascript |
---|
64 | } |
---|
65 | |
---|
66 | variant no_opengl conflicts xembed description {Do not build the GL renderer} { |
---|
67 | depends_lib-delete port:mesa |
---|
68 | configure.args-append --disable-gl-renderer |
---|
69 | } |
---|
70 | |
---|
71 | variant xembed conflicts no_opengl description {Build the XEmbed control} { |
---|
72 | depends_lib-append port:gtk2 \ |
---|
73 | port:dbus-glib |
---|
74 | configure.args-delete --disable-xembed |
---|
75 | } |
---|
76 | |
---|
77 | variant player requires xembed description {Build the GNOME openvrml-player} { |
---|
78 | depends_lib-append port:libgnomeui \ |
---|
79 | port:curl |
---|
80 | configure.args-delete --disable-player |
---|
81 | } |
---|
82 | |
---|
83 | variant mozilla_plugin requires xembed description {Build the Mozilla plug-in} { |
---|
84 | depends_lib-append port:mozilla |
---|
85 | configure.args-delete --disable-mozilla-plugin |
---|
86 | } |
---|
87 | |
---|
88 | variant no_x11 description { |
---|
89 | configure.args-delete --with-x |
---|
90 | configure.args-append --without-x |
---|
91 | } |
---|