1 | # -*- mode: tcl; indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4 -*- |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | |
---|
7 | name ogre-static |
---|
8 | version 1.7.3 |
---|
9 | revision 1 |
---|
10 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
11 | license MIT |
---|
12 | categories graphics |
---|
13 | maintainers gmail.com:marin.saric |
---|
14 | description Object-Oriented Graphics Rendering Engine (static version) |
---|
15 | |
---|
16 | long_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 | |
---|
33 | homepage http://www.ogre3d.org/ |
---|
34 | platforms darwin |
---|
35 | supported_archs x86_64 |
---|
36 | master_sites sourceforge:project/ogre/ogre/${branch} |
---|
37 | checksums rmd160 fea467f35aaf0fd5926573de4f0348ed44191893 \ |
---|
38 | sha1 41acccfbbf7297c91cda78a0ce8a053e56505f04 |
---|
39 | distname ogre_src_v[strsed ${version} {g/\./-/}] |
---|
40 | use_bzip2 yes |
---|
41 | |
---|
42 | patchfiles patch-Tools_XMLConverter_CMakeLists.txt.diff \ |
---|
43 | patch-CMakeLists.txt.diff \ |
---|
44 | patch-CMake_CMakeLists.txt.diff \ |
---|
45 | patch-CMake_InstallResources.cmake \ |
---|
46 | patch-CMake_Packages_FindOGRE.cmake.diff \ |
---|
47 | patch-CMake_Packages_FindOIS.cmake.diff \ |
---|
48 | patch-CMake_Templates_SDK_CMakeLists.txt.in.diff \ |
---|
49 | patch-CMake_Utils_FindPkgMacros.cmake.diff \ |
---|
50 | patch-Docs_CMakeLists.txt.diff \ |
---|
51 | patch-OgreMain_CMakeLists.txt.diff \ |
---|
52 | patch-README_and_Tutorials_files.diff \ |
---|
53 | patch-Samples_CMakeLists.txt.diff \ |
---|
54 | patch-Samples_Browser_CMakeLists.txt.diff \ |
---|
55 | patch-Samples_Browser_include_SampleBrowser_OSX.h.diff \ |
---|
56 | patch-Samples_Media_CMakeLists.txt.diff \ |
---|
57 | patch-Tools_CMakeLists.txt.diff |
---|
58 | |
---|
59 | depends_lib port:libzzip port:zlib port:bzip2 port:freeimage \ |
---|
60 | port:freetype port:boost port:ois port:doxygen |
---|
61 | |
---|
62 | configure.args-append -DMACPORTS=TRUE \ |
---|
63 | -DMACPORTS_APP_DIR=${applications_dir} \ |
---|
64 | -DOGRE_BUILD_TOOLS=TRUE \ |
---|
65 | -DOGRE_COPY_DEPENDENICES=FALSE \ |
---|
66 | -DOGRE_INSTALL_DEPENDENCIES=FALSE \ |
---|
67 | -DOGRE_BUILD_SAMPLES=TRUE \ |
---|
68 | -DOGRE_INSTALL_DOCS=TRUE \ |
---|
69 | -DOGRE_INSTALL_SAMPLES=TRUE \ |
---|
70 | -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \ |
---|
71 | -DOGRE_INSTALL_TOOLS=TRUE \ |
---|
72 | -DOGRE_STATIC=TRUE |
---|
73 | |
---|
74 | post-destroot { |
---|
75 | # Move the SampleBrowser.app to a more visible place |
---|
76 | xinstall -d -m 755 ${destroot}${applications_dir}/OGRE/SDKSamples/bin |
---|
77 | file rename ${destroot}${prefix}/bin/SampleBrowser.app \ |
---|
78 | ${destroot}${applications_dir}/OGRE/SDKSamples/bin |
---|
79 | |
---|
80 | xinstall -m 644 -W ${worksrcpath} \ |
---|
81 | AUTHORS BUGS COPYING README READ_ME_FIRST_OGRE_MACPORTS.txt \ |
---|
82 | ${destroot}${applications_dir}/OGRE |
---|
83 | |
---|
84 | # Support any kind of MacPorts prefix in the Tutorial code |
---|
85 | reinplace "s|/opt/local|${prefix}|g" \ |
---|
86 | ${worksrcpath}/Tutorials/CMakeLists.txt |
---|
87 | |
---|
88 | # Install the tutorial files |
---|
89 | xinstall -d -m 755 ${destroot}${applications_dir}/OGRE/Tutorials |
---|
90 | |
---|
91 | eval xinstall -m 644 [glob ${worksrcpath}/Tutorials/*] \ |
---|
92 | ${destroot}${applications_dir}/OGRE/Tutorials |
---|
93 | } |
---|
94 | |
---|
95 | livecheck.type regex |
---|
96 | livecheck.url ${homepage}download/source |
---|
97 | livecheck.regex {>OGRE ([0-9.]+) Source} |
---|