Ticket #32302: Portfile

File Portfile, 4.4 KB (added by marin.saric@…, 12 years ago)

Portfile for ogre-static

Line 
1# -*- mode: tcl; indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4 -*-
2# $Id$
3
4PortSystem 1.0
5PortGroup cmake 1.0
6
7name                ogre-static
8version             1.7.3
9revision            1
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
42patchfiles          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
59depends_lib         port:libzzip port:zlib port:bzip2 port:freeimage \
60                    port:freetype port:boost port:ois port:doxygen
61
62configure.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
74post-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
95livecheck.type      regex
96livecheck.url       ${homepage}download/source
97livecheck.regex     {>OGRE ([0-9.]+) Source}