Ticket #16981: Portfile.3

File Portfile.3, 3.9 KB (added by raphael@…, 15 years ago)

This is the current portfile for OpenVRML 0.7.12. I've tested it on 10.5 with more than 1 GB of free memory.

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.12
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     162153ee2e5c498b31f600193ebabe58 \
23                        sha1    e546b089214b1e6d50f57e524db8991930032618 \
24                        rmd160  c6a4aee4cef82490efc27bb510c8d21da10029e4
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 \
49                        --x-includes=${prefix}/include \
50                        --x-libraries=${prefix}/lib
51configure.env-append    BOOST_LIB_SUFFIX=-mt
52
53# For +system_x11 variant
54if { ![file exists ${prefix}/lib/pkgconfig/gl.pc] } {
55        configure.args-delete --x-includes=${prefix}/include \
56                              --x-libraries=${prefix}/lib
57}
58
59use_parallel_build      yes
60
61variant 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
66variant 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
71variant 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
77variant 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
83variant 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
88variant no_x11 description {
89    configure.args-delete       --with-x
90    configure.args-append       --without-x
91}