New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81828


Ignore:
Timestamp:
08/05/11 09:08:14 (4 years ago)
Author:
mmoll@…
Message:

graphics/ogre: install many files that are in the 'official' binary SDK that aren't in a framework; avoid a conflict between tinyxml port and modified internal version of tinyxml; simplify Portfile

Location:
trunk/dports/graphics/ogre
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/ogre/Portfile

    r81804 r81828  
    33PortSystem 1.0 
    44PortGroup xcode 1.0 
     5PortGroup cmake 1.0 
    56 
    67name                ogre 
    78version             1.7.3 
     9revision            1 
    810set branch          [join [lrange [split ${version} .] 0 1] .] 
    911license             MIT 
     
    2022distname            ${name}_src_v[strsed ${version} {g/\./-/}] 
    2123use_bzip2           yes 
    22  
    23 depends_build       port:cmake 
     24patchfiles          patch-Tools_XMLConverter_CMakeLists.txt.diff 
    2425depends_lib         port:libzzip port:zlib port:freeimage port:freetype \ 
    2526                    port:boost 
    2627xcode.configuration Release 
    27 build.target        ALL_BUILD 
     28build.target        install 
     29use_configure       yes 
     30configure.args-append -GXcode -DCMAKE_INSTALL_PREFIX=${worksrcpath}/tmp 
     31 
    2832destroot { 
    29     copy ${worksrcpath}/lib/Release/Ogre.framework ${destroot}/${prefix}/Library/Frameworks/Ogre.framework 
     33    eval xinstall -m 640 [glob ${worksrcpath}/tmp/bin/*] \ 
     34          ${destroot}${prefix}/bin 
     35    xinstall -d ${destroot}${cmake_share_module_dir} 
     36    eval xinstall -m 640 [glob ${worksrcpath}/tmp/CMake/*] \ 
     37       ${destroot}${cmake_share_module_dir} 
     38    copy ${worksrcpath}/tmp/include/OGRE ${destroot}${prefix}/include 
     39    eval xinstall -m 640 [glob ${worksrcpath}/tmp/lib/lib*] \ 
     40          ${destroot}${prefix}/lib 
     41    xinstall -d ${destroot}${prefix}/lib/OGRE 
     42    eval xinstall -m 640 [glob ${worksrcpath}/tmp/lib/Plugin*] \ 
     43          ${destroot}${prefix}/lib/OGRE     
     44    eval xinstall -m 640 [glob ${worksrcpath}/tmp/lib/pkgconfig/*] \ 
     45          ${destroot}${prefix}/lib/pkgconfig 
     46    copy ${worksrcpath}/tmp/lib/Release/Ogre.framework ${destroot}${frameworks_dir} 
    3047} 
    31  
    32 # 
    33 # the code below is copied from the cmake portgroup file 
    34 # 
    35 use_configure       yes 
    36 # standard place to install extra CMake modules 
    37 set cmake_share_module_dir ${prefix}/share/cmake/modules 
    38 configure.cmd       cmake 
    39 configure.pre_args  -GXcode -DCMAKE_INSTALL_PREFIX=${destroot} 
    40 configure.args      -DCMAKE_VERBOSE_MAKEFILE=ON \ 
    41                     -DCMAKE_COLOR_MAKEFILE=ON \ 
    42                     -DCMAKE_BUILD_TYPE=Release \ 
    43                     -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ 
    44                     -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \ 
    45                     -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \ 
    46                     -DCMAKE_MODULE_PATH=${cmake_share_module_dir} \ 
    47                     -Wno-dev 
    48 pre-configure { 
    49     if {${os.platform} == "darwin" && (![variant_isset universal] || ![variant_exists universal])} { 
    50         configure.args-append \ 
    51         -DCMAKE_OSX_ARCHITECTURES=\"${configure.build_arch}\" 
    52     } 
    53     configure.universal_args-append \ 
    54         -DCMAKE_OSX_ARCHITECTURES=\"[join ${configure.universal_archs} \;]\" 
    55     if {${configure.sdkroot} != ""} { 
    56         configure.args-append -DCMAKE_OSX_SYSROOT="${configure.sdkroot}" 
    57     } else { 
    58         configure.args-append -DCMAKE_OSX_SYSROOT=/ 
    59     } 
     48post-destroot { 
     49    reinplace "s|${worksrcpath}/tmp|${prefix}|g" \ 
     50        ${destroot}${prefix}/lib/pkgconfig/OGRE-PCZ.pc \ 
     51        ${destroot}${prefix}/lib/pkgconfig/OGRE-Paging.pc \ 
     52        ${destroot}${prefix}/lib/pkgconfig/OGRE-Property.pc \ 
     53        ${destroot}${prefix}/lib/pkgconfig/OGRE-RTShaderSystem.pc \ 
     54        ${destroot}${prefix}/lib/pkgconfig/OGRE-Terrain.pc \ 
     55        ${destroot}${prefix}/lib/pkgconfig/OGRE.pc 
    6056} 
    61 configure.universal_args-delete --disable-dependency-tracking 
    6257 
    6358livecheck.type      regex 
Note: See TracChangeset for help on using the changeset viewer.