[81828] trunk/dports/graphics/ogre
mmoll at macports.org
mmoll at macports.org
Fri Aug 5 09:08:14 PDT 2011
Revision: 81828
http://trac.macports.org/changeset/81828
Author: mmoll at macports.org
Date: 2011-08-05 09:08:14 -0700 (Fri, 05 Aug 2011)
Log 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
Modified Paths:
--------------
trunk/dports/graphics/ogre/Portfile
Added Paths:
-----------
trunk/dports/graphics/ogre/files/
trunk/dports/graphics/ogre/files/patch-Tools_XMLConverter_CMakeLists.txt.diff
Modified: trunk/dports/graphics/ogre/Portfile
===================================================================
--- trunk/dports/graphics/ogre/Portfile 2011-08-05 16:05:12 UTC (rev 81827)
+++ trunk/dports/graphics/ogre/Portfile 2011-08-05 16:08:14 UTC (rev 81828)
@@ -2,9 +2,11 @@
PortSystem 1.0
PortGroup xcode 1.0
+PortGroup cmake 1.0
name ogre
version 1.7.3
+revision 1
set branch [join [lrange [split ${version} .] 0 1] .]
license MIT
categories graphics
@@ -19,46 +21,39 @@
sha1 41acccfbbf7297c91cda78a0ce8a053e56505f04
distname ${name}_src_v[strsed ${version} {g/\./-/}]
use_bzip2 yes
-
-depends_build port:cmake
+patchfiles patch-Tools_XMLConverter_CMakeLists.txt.diff
depends_lib port:libzzip port:zlib port:freeimage port:freetype \
port:boost
xcode.configuration Release
-build.target ALL_BUILD
+build.target install
+use_configure yes
+configure.args-append -GXcode -DCMAKE_INSTALL_PREFIX=${worksrcpath}/tmp
+
destroot {
- copy ${worksrcpath}/lib/Release/Ogre.framework ${destroot}/${prefix}/Library/Frameworks/Ogre.framework
+ eval xinstall -m 640 [glob ${worksrcpath}/tmp/bin/*] \
+ ${destroot}${prefix}/bin
+ xinstall -d ${destroot}${cmake_share_module_dir}
+ eval xinstall -m 640 [glob ${worksrcpath}/tmp/CMake/*] \
+ ${destroot}${cmake_share_module_dir}
+ copy ${worksrcpath}/tmp/include/OGRE ${destroot}${prefix}/include
+ eval xinstall -m 640 [glob ${worksrcpath}/tmp/lib/lib*] \
+ ${destroot}${prefix}/lib
+ xinstall -d ${destroot}${prefix}/lib/OGRE
+ eval xinstall -m 640 [glob ${worksrcpath}/tmp/lib/Plugin*] \
+ ${destroot}${prefix}/lib/OGRE
+ eval xinstall -m 640 [glob ${worksrcpath}/tmp/lib/pkgconfig/*] \
+ ${destroot}${prefix}/lib/pkgconfig
+ copy ${worksrcpath}/tmp/lib/Release/Ogre.framework ${destroot}${frameworks_dir}
}
-
-#
-# the code below is copied from the cmake portgroup file
-#
-use_configure yes
-# standard place to install extra CMake modules
-set cmake_share_module_dir ${prefix}/share/cmake/modules
-configure.cmd cmake
-configure.pre_args -GXcode -DCMAKE_INSTALL_PREFIX=${destroot}
-configure.args -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DCMAKE_COLOR_MAKEFILE=ON \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
- -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
- -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
- -DCMAKE_MODULE_PATH=${cmake_share_module_dir} \
- -Wno-dev
-pre-configure {
- if {${os.platform} == "darwin" && (![variant_isset universal] || ![variant_exists universal])} {
- configure.args-append \
- -DCMAKE_OSX_ARCHITECTURES=\"${configure.build_arch}\"
- }
- configure.universal_args-append \
- -DCMAKE_OSX_ARCHITECTURES=\"[join ${configure.universal_archs} \;]\"
- if {${configure.sdkroot} != ""} {
- configure.args-append -DCMAKE_OSX_SYSROOT="${configure.sdkroot}"
- } else {
- configure.args-append -DCMAKE_OSX_SYSROOT=/
- }
+post-destroot {
+ reinplace "s|${worksrcpath}/tmp|${prefix}|g" \
+ ${destroot}${prefix}/lib/pkgconfig/OGRE-PCZ.pc \
+ ${destroot}${prefix}/lib/pkgconfig/OGRE-Paging.pc \
+ ${destroot}${prefix}/lib/pkgconfig/OGRE-Property.pc \
+ ${destroot}${prefix}/lib/pkgconfig/OGRE-RTShaderSystem.pc \
+ ${destroot}${prefix}/lib/pkgconfig/OGRE-Terrain.pc \
+ ${destroot}${prefix}/lib/pkgconfig/OGRE.pc
}
-configure.universal_args-delete --disable-dependency-tracking
livecheck.type regex
livecheck.url ${homepage}download/source
Added: trunk/dports/graphics/ogre/files/patch-Tools_XMLConverter_CMakeLists.txt.diff
===================================================================
--- trunk/dports/graphics/ogre/files/patch-Tools_XMLConverter_CMakeLists.txt.diff (rev 0)
+++ trunk/dports/graphics/ogre/files/patch-Tools_XMLConverter_CMakeLists.txt.diff 2011-08-05 16:08:14 UTC (rev 81828)
@@ -0,0 +1,11 @@
+--- Tools/XMLConverter/CMakeLists.txt.orig 2011-08-05 09:53:08.000000000 -0500
++++ Tools/XMLConverter/CMakeLists.txt 2011-08-05 09:54:11.000000000 -0500
+@@ -27,7 +27,7 @@
+ src/tinyxmlparser.cpp
+ )
+
+-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
++include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include)
+ add_definitions(-DTIXML_USE_STL)
+ add_executable(OgreXMLConverter ${HEADER_FILES} ${SOURCE_FILES})
+ target_link_libraries(OgreXMLConverter ${OGRE_LIBRARIES})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110805/a952856a/attachment.html>
More information about the macports-changes
mailing list