| 1 | # -*- mode: tcl; indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4 -*- |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | PortGroup cmake 1.1 |
|---|
| 5 | PortGroup github 1.0 |
|---|
| 6 | PortGroup cxx11 1.1 |
|---|
| 7 | |
|---|
| 8 | github.setup OGRECave ogre 1.10.11 v |
|---|
| 9 | |
|---|
| 10 | checksums rmd160 65596930faa4e0be118c65664af0f67eebfdd8a9 \ |
|---|
| 11 | sha256 4d75eece04c9b9bb57e937cfc18af0b95aa0b492ceb7d54bcc1967222f083cac |
|---|
| 12 | |
|---|
| 13 | license MIT |
|---|
| 14 | categories graphics |
|---|
| 15 | maintainers nomaintainer |
|---|
| 16 | description Object-Oriented Graphics Rendering Engine |
|---|
| 17 | |
|---|
| 18 | long_description OGRE (Object-Oriented Graphics Rendering Engine) is a \ |
|---|
| 19 | scene-oriented, flexible 3D engine written in \ |
|---|
| 20 | C++ designed to make it easier and more intuitive \ |
|---|
| 21 | for developers to produce applications utilising \ |
|---|
| 22 | hardware-accelerated 3D graphics. The class \ |
|---|
| 23 | library abstracts all the details of using the \ |
|---|
| 24 | underlying system libraries like Direct3D and \ |
|---|
| 25 | OpenGL and provides an interface based on world \ |
|---|
| 26 | objects and other intuitive classes. |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | homepage http://www.ogre3d.org/ |
|---|
| 30 | platforms darwin |
|---|
| 31 | supported_archs x86_64 |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | depends_build-append \ |
|---|
| 35 | port:doxygen \ |
|---|
| 36 | path:bin/dot:graphviz |
|---|
| 37 | |
|---|
| 38 | depends_lib-append port:libzzip \ |
|---|
| 39 | port:zlib \ |
|---|
| 40 | port:freeimage \ |
|---|
| 41 | port:freetype \ |
|---|
| 42 | port:boost \ |
|---|
| 43 | port:libsdl |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | configure.args-append \ |
|---|
| 47 | -DCMAKE_BUILD_TYPE=Release \ |
|---|
| 48 | -DOGRE_BUILD_TOOLS=TRUE \ |
|---|
| 49 | -DOGRE_BUILD_SAMPLES=TRUE \ |
|---|
| 50 | -DOGRE_INSTALL_DOCS=TRUE \ |
|---|
| 51 | -DOGRE_INSTALL_SAMPLES=TRUE \ |
|---|
| 52 | -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \ |
|---|
| 53 | -DOGRE_INSTALL_TOOLS=TRUE \ |
|---|
| 54 | -DOGRE_BUILD_DEPENDENCIES=OFF \ |
|---|
| 55 | -DOGRE_USE_STD11=TRUE \ |
|---|
| 56 | |
|---|
| 57 | post-destroot { |
|---|
| 58 | |
|---|
| 59 | # move these to a proper destination |
|---|
| 60 | move ${destroot}${prefix}/bin/macosx/OgreMeshUpgrader ${destroot}${prefix}/bin |
|---|
| 61 | move ${destroot}${prefix}/bin/macosx/OgreXMLConverter ${destroot}${prefix}/bin |
|---|
| 62 | |
|---|
| 63 | # move this and give it a more specific name |
|---|
| 64 | move ${destroot}${prefix}/bin/macosx/VRMLConverter ${destroot}${prefix}/bin/OgreVRMLConverter |
|---|
| 65 | |
|---|
| 66 | # put the frameworks where frameworks belong |
|---|
| 67 | move {*}[glob -directory ${destroot}${prefix}/lib/macosx/Release "*.framework"] \ |
|---|
| 68 | ${destroot}${frameworks_dir} |
|---|
| 69 | |
|---|
| 70 | # move all of these into an ogre directory in share |
|---|
| 71 | xinstall -d ${destroot}${prefix}/share/ogre |
|---|
| 72 | move ${destroot}${prefix}/Docs ${destroot}${prefix}/share/ogre/ |
|---|
| 73 | move ${destroot}${prefix}/Media ${destroot}${prefix}/share/ogre/ |
|---|
| 74 | move ${destroot}${prefix}/Samples ${destroot}${prefix}/share/ogre/ |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | # TODO: we still need to fix up the rpaths on this one |
|---|
| 78 | move ${destroot}${prefix}/bin/macosx/SampleBrowser.app \ |
|---|
| 79 | ${destroot}${applications_dir}/OgreSampleBrowser.app |
|---|
| 80 | |
|---|
| 81 | |
|---|
| 82 | # TODO: the samples have dylibs that all need to be moved somewhere useful |
|---|
| 83 | # TODO: possibly into a subdir near the sample browser? |
|---|
| 84 | # they are in ${destroot}${prefix}/lib/OGRE/Samples/ |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | # why does ogre still insist on building and installing boost? |
|---|
| 88 | # it doesn't seem to be linking into it - it's using the system boost |
|---|
| 89 | delete ${destroot}${prefix}/boost |
|---|
| 90 | |
|---|
| 91 | # this doesn't need to be installed |
|---|
| 92 | delete ${destroot}${prefix}/CMakeLists.txt |
|---|
| 93 | |
|---|
| 94 | # these just look all wrong to be installed - are any useful? |
|---|
| 95 | delete ${destroot}${prefix}/CMake |
|---|
| 96 | |
|---|
| 97 | # are these needed? If so, where should they go? |
|---|
| 98 | delete ${destroot}${prefix}/bin/plugins.cfg |
|---|
| 99 | delete ${destroot}${prefix}/bin/quakemap.cfg |
|---|
| 100 | delete ${destroot}${prefix}/bin/resources.cfg |
|---|
| 101 | delete ${destroot}${prefix}/bin/samples.cfg |
|---|
| 102 | delete ${destroot}${prefix}/bin/tests.cfg |
|---|
| 103 | |
|---|
| 104 | } |
|---|