diff options
author | oliver <oliver@FreeBSD.org> | 2013-01-30 16:11:52 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2013-01-30 16:11:52 +0800 |
commit | 4168277fcdcdca1b49386a14b5360d0db0e15c02 (patch) | |
tree | a07eb765d74f6f5a5a8c21b45c08127fc06ef2d9 /graphics/ogre3d | |
parent | 8dcf32f8756f49e3dcfafa93e364976d4fc46b91 (diff) | |
download | freebsd-ports-gnome-4168277fcdcdca1b49386a14b5360d0db0e15c02.tar.gz freebsd-ports-gnome-4168277fcdcdca1b49386a14b5360d0db0e15c02.tar.zst freebsd-ports-gnome-4168277fcdcdca1b49386a14b5360d0db0e15c02.zip |
fix build when tbb, poco or ois is installed
Diffstat (limited to 'graphics/ogre3d')
-rw-r--r-- | graphics/ogre3d/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/graphics/ogre3d/Makefile b/graphics/ogre3d/Makefile index 9b7b2d31cfd3..4a5bfc423940 100644 --- a/graphics/ogre3d/Makefile +++ b/graphics/ogre3d/Makefile @@ -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: |