source: trunk/dports/graphics/ogre/Portfile

Last change on this file was 104410, checked in by ryandesign@…, 4 years ago

ogre: doxygen and graphviz are build deps only

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 KB
Line 
1# -*- mode: tcl; indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4 -*-
2# $Id: Portfile 104410 2013-03-25 07:46:16Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup cmake 1.0
6
7name                ogre
8version             1.7.3
9revision            4
10set branch          [join [lrange [split ${version} .] 0 1] .]
11license             MIT
12categories          graphics
13maintainers         gmail.com:marin.saric
14description         Object-Oriented Graphics Rendering Engine (static version)
15
16long_description    OGRE (Object-Oriented Graphics Rendering Engine) is a \
17                    scene-oriented, flexible 3D engine written in \
18                    C++ designed to make it easier and more intuitive \
19                    for developers to produce applications utilising \
20                    hardware-accelerated 3D graphics. The class \
21                    library abstracts all the details of using the \
22                    underlying system libraries like Direct3D and \
23                    OpenGL and provides an interface based on world \
24                    objects and other intuitive classes. \
25                    NOTE: \
26                    This version is so far the only version which produces \
27                    normal non-bundled executables that can run on any \
28                    64-bit MacOS X machine without depending on MacPorts or \
29                    any other libraries. This version is also the only \
30                    version that allows building fully functioning CMake \
31                    OGRE projects on MacOS X without using XCode.
32
33homepage            http://www.ogre3d.org/
34platforms           darwin
35supported_archs     x86_64
36master_sites        sourceforge:project/ogre/ogre/${branch}
37checksums           rmd160  fea467f35aaf0fd5926573de4f0348ed44191893 \
38                    sha1    41acccfbbf7297c91cda78a0ce8a053e56505f04
39distname            ogre_src_v[strsed ${version} {g/\./-/}]
40use_bzip2           yes
41
42depends_build-append port:doxygen path:bin/dot:graphviz
43
44depends_lib-append  port:libzzip port:zlib port:bzip2 port:freeimage \
45                    port:freetype port:boost port:ois
46
47patchfiles          patch-Tools_XMLConverter_CMakeLists.txt.diff \
48                    patch-CMakeLists.txt.diff \
49                    patch-CMake_CMakeLists.txt.diff \
50                    patch-CMake_InstallResources.cmake \
51                    patch-CMake_Packages_FindOGRE.cmake.diff \
52                    patch-CMake_Packages_FindOIS.cmake.diff \
53                    patch-CMake_Templates_SDK_CMakeLists.txt.in.diff \
54                    patch-CMake_Utils_FindPkgMacros.cmake.diff \
55                    patch-Docs_CMakeLists.txt.diff \
56                    patch-OgreMain_CMakeLists.txt.diff \
57                    patch-README_and_Tutorials_files.diff \
58                    patch-Samples_CMakeLists.txt.diff \
59                    patch-Samples_Browser_CMakeLists.txt.diff \
60                    patch-Samples_Browser_include_SampleBrowser_OSX.h.diff \
61                    patch-Samples_Media_CMakeLists.txt.diff \
62                    patch-Tools_CMakeLists.txt.diff
63                   
64post-patch {
65    reinplace "s|@PREFIX@|${prefix}|g" \
66        ${worksrcpath}/CMakeLists.txt \
67        ${worksrcpath}/Tutorials/CMakeLists.txt
68    reinplace "s|@FRAMEWORKS_DIR@|${frameworks_dir}|g" \
69        ${worksrcpath}/Tutorials/CMakeLists.txt
70}
71
72configure.args-append -DMACPORTS=TRUE \
73                    -DOGRE_BUILD_TOOLS=TRUE \
74                    -DOGRE_COPY_DEPENDENICES=FALSE \
75                    -DOGRE_INSTALL_DEPENDENCIES=FALSE \
76                    -DOGRE_BUILD_SAMPLES=TRUE \
77                    -DOGRE_INSTALL_DOCS=TRUE \
78                    -DOGRE_INSTALL_SAMPLES=TRUE \
79                    -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \
80                    -DOGRE_INSTALL_TOOLS=TRUE \
81                    -DOGRE_STATIC=TRUE
82
83post-destroot {
84    # Move the SampleBrowser.app to a more visible place
85    xinstall -d -m 755 ${destroot}${prefix}/share/doc/OGRE/SDKSamples/bin
86    file rename ${destroot}${prefix}/bin/SampleBrowser.app \
87        ${destroot}${prefix}/share/doc/OGRE/SDKSamples/bin
88
89    xinstall -m 644 -W ${worksrcpath} \
90        AUTHORS BUGS COPYING README READ_ME_FIRST_OGRE_MACPORTS.txt \
91        ${destroot}${prefix}/share/doc/OGRE
92
93    # Install the tutorial files
94    xinstall -d -m 755 ${destroot}${prefix}/share/doc/OGRE/Tutorials
95   
96    eval xinstall -m 644 [glob ${worksrcpath}/Tutorials/*] \
97        ${destroot}${prefix}/share/doc/OGRE/Tutorials
98}
99
100livecheck.type      regex
101livecheck.url       ${homepage}download/source
102livecheck.regex     {>OGRE ([0-9.]+) Source}
Note: See TracBrowser for help on using the repository browser.