Changeset 81828
- Timestamp:
- 08/05/11 09:08:14 (4 years ago)
- Location:
- trunk/dports/graphics/ogre
- Files:
-
- 2 added
- 1 edited
-
Portfile (modified) (2 diffs)
-
files (added)
-
files/patch-Tools_XMLConverter_CMakeLists.txt.diff (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/graphics/ogre/Portfile
r81804 r81828 3 3 PortSystem 1.0 4 4 PortGroup xcode 1.0 5 PortGroup cmake 1.0 5 6 6 7 name ogre 7 8 version 1.7.3 9 revision 1 8 10 set branch [join [lrange [split ${version} .] 0 1] .] 9 11 license MIT … … 20 22 distname ${name}_src_v[strsed ${version} {g/\./-/}] 21 23 use_bzip2 yes 22 23 depends_build port:cmake 24 patchfiles patch-Tools_XMLConverter_CMakeLists.txt.diff 24 25 depends_lib port:libzzip port:zlib port:freeimage port:freetype \ 25 26 port:boost 26 27 xcode.configuration Release 27 build.target ALL_BUILD 28 build.target install 29 use_configure yes 30 configure.args-append -GXcode -DCMAKE_INSTALL_PREFIX=${worksrcpath}/tmp 31 28 32 destroot { 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} 30 47 } 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 } 48 post-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 60 56 } 61 configure.universal_args-delete --disable-dependency-tracking62 57 63 58 livecheck.type regex
Note: See TracChangeset
for help on using the changeset viewer.

