fix build when tbb, poco or ois is installed

This commit is contained in:
Oliver Lehmann 2013-01-30 08:11:52 +00:00
parent c0d8e116ce
commit 2e981380a1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311202

View file

@ -44,14 +44,21 @@ CMAKE_ARGS+= -DCMAKE_COMPILER_IS_GNUCXX:BOOL=YES
.endif
post-patch:
.if defined(WITHOUT_BOOST)
.if ! ${PORT_OPTIONS:MBOOST}
@${REINPLACE_CMD} -e 's|Boost|No_Boost|g' \
${WRKSRC}/CMake/Dependencies.cmake
.endif
@${REINPLACE_CMD} -e 's|\(OGRE_RW_MUTEX.*\);|\1|g' \
# disable OIS, POCO, TBB detection
@${REINPLACE_CMD} -e 's|include(FindPkgMacros)|return()|g' \
${WRKSRC}/CMake/Packages/FindOIS.cmake \
${WRKSRC}/CMake/Packages/FindPOCO.cmake \
${WRKSRC}/CMake/Packages/FindTBB.cmake
@${REINPLACE_CMD} -e 's|\(OGRE_RW_MUTEX[^;]*\)$$|\1;|g' \
${WRKSRC}/OgreMain/include/OgreWorkQueue.h
@${REINPLACE_CMD} -e 's|\(OGRE_RW_MUTEX.*\);$$|\1|g' \
${WRKSRC}/OgreMain/include/Threading/OgreThreadDefinesBoost.h
@${REINPLACE_CMD} -e '\
s,defined(__x86_64__),& || defined(__powerpc__) || defined(__ia64__) || defined(__sparc64__) || defined(__alpha__) || defined(__amd64__),' \
s,defined(__x86_64__),& || defined(__powerpc__) || defined(__sparc64__) || defined(__amd64__),' \
${WRKSRC}/OgreMain/include/OgrePlatform.h
post-install: