[81802] trunk/dports/graphics
Mark Moll
mmoll at macports.org
Fri Aug 5 09:11:39 PDT 2011
On Aug 4, 2011, at 10:26 PM, Ryan Schmidt wrote:
>
> On Aug 4, 2011, at 21:41, mmoll at macports.org wrote:
>
>> Revision: 81802
>> http://trac.macports.org/changeset/81802
>> Author: mmoll at macports.org
>> Date: 2011-08-04 19:41:43 -0700 (Thu, 04 Aug 2011)
>> Log Message:
>> -----------
>> graphics/ogre: new port, see #26239
>
>
>> +destroot {
>> + copy ${worksrcpath}/lib/Release/Ogre.framework ${destroot}/${prefix}/Library/Frameworks/Ogre.framework
>> +}
>
> ${prefix} already begins with a slash; you should not put a slash in front of it.
>
> Or should this perhaps be using ${frameworks_dir} rather than ${prefix}/Library/Frameworks?
Yes, fixed.
>
>> +
>> +#
>> +# 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=/
>> + }
>> +}
>> +configure.universal_args-delete --disable-dependency-tracking
>
>
> I'm guessing this was necessary because you wanted both cmake and xcode, and the two portgroups didn't play nice together? I wonder if there's any way we could fix that. What problems did you see?
I assumed you couldn’t have multiple port groups, but it turns out you can.
I committed a fix that simplifies the Portfile and now also installs many other files that are included in the “official” binary Ogre SDK release. It includes both pkg-config and cmake files, so if there are any Ogre developers on this list, please give it a try.
--
Mark Moll
More information about the macports-dev
mailing list