Ticket #16981: Portfile.2

File Portfile.2, 3.6 KB (added by raphael@…, 15 years ago)
Line 
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
4PortSystem              1.0
5
6name                    openvrml
7version                 0.17.11
8categories              graphics x11
9maintainers             ira.uka.de:raphael openmaintainer
10description             a cross-platform VRML and X3D browser and C++ runtime \
11                        library
12long_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.
19homepage                http://www.openvrml.org/
20platforms               darwin
21master_sites            sourceforge
22checksums               md5     7d40b2c890d9f68e6fb5dc856e177e86 \
23                        sha1    76c60a1517c5cb5ccc1a1f656af071547f960a60 \
24                        rmd160  c57b37779e14b44001fb2c49743d753659eb1f87
25
26depends_lib             port:boost \
27                        port:libpng \
28                        port:jpeg \
29                        port:fontconfig \
30                        port:mesa \
31                        port:libsdl
32depends_build           port:pkgconfig
33
34pre-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
44configure.args          --disable-script-node-javascript \
45                        --disable-xembed \
46                        --disable-player \
47                        --disable-mozilla-plugin \
48                        --with-x
49configure.env-append    BOOST_LIB_SUFFIX=-mt
50
51use_parallel_build      yes
52
53variant js_mozilla description {Enable support for JavaScript in the Script node with Mozilla} {
54    depends_lib-append          port:mozilla
55    configure.args-delete       --disable-script-node-javascript
56}
57
58variant no_opengl conflicts xembed description {Do not build the GL renderer} {
59    depends_lib-delete          port:mesa
60    configure.args-append       --disable-gl-renderer
61}
62
63variant xembed conflicts no_opengl description {Build the XEmbed control} {
64    depends_lib-append          port:gtk2 \
65                                port:dbus-glib
66    configure.args-delete       --disable-xembed
67}
68
69variant player requires xembed description {Build the GNOME openvrml-player} {
70    depends_lib-append          port:libgnomeui \
71                                port:curl
72    configure.args-delete       --disable-player
73}
74
75variant mozilla_plugin requires xembed description {Build the Mozilla plug-in} {
76    depends_lib-append          port:mozilla
77    configure.args-delete       --disable-mozilla-plugin
78}
79
80variant no_x11 description {
81    configure.args-delete       --with-x
82    configure.args-append       --without-x
83}