source: trunk/dports/graphics/OpenSceneGraph/Portfile

Last change on this file was 148894, checked in by mcalhoun@…, 16 months ago

openexr, ilmbase: update version to 2.2.0
revbump dependencies since library name changes
homepage states that new features "should be available to applications without code modifications"
merge openexr and ilmbase into one Portfile since versions now seem linked
fixes #44620, #44619, #49965, and #49966; maintainer timeout

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
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: Portfile 148894 2016-05-22 14:26:15Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               cmake 1.0
6
7cmake.out_of_source     yes
8
9name                    OpenSceneGraph
10conflicts               OpenSceneGraph-devel
11version                 3.4.0
12revision                4
13platforms               darwin
14categories              graphics
15maintainers             nomaintainer
16license                 wxWidgets-3
17description             high-performance 3D graphics toolkit
18
19long_description        ${name} is a high-performance 3D graphics toolkit useful in fields such as \
20                        visual simulation, games, virtual reality, scientific visualization and \
21                        modelling.
22
23homepage                http://www.openscenegraph.org/
24master_sites            ${homepage}downloads/stable_releases/${name}-${version}/source
25
26use_zip                 yes
27
28checksums               rmd160  6043321fc1c9b23f0e536c4e18a96a97d8b16c30 \
29                        sha256  5c727d84755da276adf8c4a4a3a8ba9c9570fc4b4969f06f1d2e9f89b1e3040e
30
31depends_build-append    port:pkgconfig
32
33depends_lib             port:freetype \
34                        port:jasper \
35                        port:openexr \
36                        port:zlib \
37                        port:gdal \
38                        port:curl \
39                        path:lib/libavcodec.dylib:ffmpeg \
40                        port:poppler \
41                        port:librsvg \
42                        port:giflib \
43                        port:tiff \
44                        port:boost \
45                        port:gstreamer1-gst-plugins-base
46
47patchfiles              patch-ffmpeg-3.0.diff
48
49configure.args-append   -DOSG_CONFIG_HAS_BEEN_RUN_BEFORE=YES \
50                        -DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio \
51                        -DOSG_WINDOWING_SYSTEM=Cocoa \
52                        -DOSG_USE_QT:BOOL=OFF
53
54# disable unwanted optional dependencies to avoid opportunistic configuration
55# before cmake 2.8 this required patching CMakeLists.txt
56# TODO: add some of these back either directly or as variants after testing
57
58configure.args-append   -DCMAKE_DISABLE_FIND_PACKAGE_Inventor=1 \
59                        -DCMAKE_DISABLE_FIND_PACKAGE_COLLADA=1 \
60                        -DCMAKE_DISABLE_FIND_PACKAGE_FBX=1 \
61                        -DCMAKE_DISABLE_FIND_PACKAGE_Xine=1 \
62                        -DCMAKE_DISABLE_FIND_PACKAGE_OpenVRML=1 \
63                        -DCMAKE_DISABLE_FIND_PACKAGE_Performer=1 \
64                        -DCMAKE_DISABLE_FIND_PACKAGE_GTA=1 \
65                        -DCMAKE_DISABLE_FIND_PACKAGE_LibVNCServer=1 \
66                        -DCMAKE_DISABLE_FIND_PACKAGE_OurDCMTK=1 \
67                        -DCMAKE_DISABLE_FIND_PACKAGE_SDL2=1 \
68                        -DCMAKE_DISABLE_FIND_PACKAGE_SDL=1 \
69                        -DCMAKE_DISABLE_FIND_PACKAGE_GtkGl=1 \
70                        -DCMAKE_DISABLE_FIND_PACKAGE_DirectInput=1 \
71                        -DCMAKE_DISABLE_FIND_PACKAGE_NVTT=1 \
72                        -DCMAKE_DISABLE_FIND_PACKAGE_Asio=1 \
73                        -DCMAKE_DISABLE_FIND_PACKAGE_ZeroConf=1 \
74                        -DCMAKE_DISABLE_FIND_PACKAGE_LIBLAS=1
75
76variant qt5 description "with Qt5 support" {
77    configure.args-delete -DOSG_USE_QT:BOOL=OFF
78    configure.args-append -DOSG_USE_QT:BOOL=ON -DDESIRED_QT_VERSION=5
79}
80
81livecheck.type          regex
82livecheck.url           ${homepage}downloads/stable_releases/
83livecheck.regex         "${name}-(\\d+\\.\\d*\[02468\](?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.