diff --git a/graphics/ogre3d/Makefile b/graphics/ogre3d/Makefile index 6120025b510f..1310115e9b0f 100644 --- a/graphics/ogre3d/Makefile +++ b/graphics/ogre3d/Makefile @@ -1,112 +1,110 @@ # Created by: Oliver Lehmann PORTNAME= ogre3d DISTVERSIONPREFIX= v DISTVERSION= 1.11.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics devel MAINTAINER= oliver@FreeBSD.org COMMENT= Scene-oriented, flexible 3D engine written in C++ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_FreeBSD_12_powerpc64= fails to build: /usr/local/bin/ld: /usr/lib/crt1.o:(.got+0x60): undefined reference to 'main' LIB_DEPENDS= libzzip.so:devel/zziplib \ libfreetype.so:print/freetype2 CONFLICTS= ogre3d19-[0-9]* USES= cmake compiler:c++11-lib pkgconfig sdl xorg USE_LDCONFIG= yes USE_SDL= sdl2 USE_XORG= x11 xaw xext xrandr xt USE_GITHUB= yes GH_ACCOUNT= OGRECave GH_PROJECT= ogre CMAKE_ARGS+= -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS:BOOL=OFF \ -DOGRE_BUILD_RENDERSYSTEM_GL:BOOL=OFF \ -DOGRE_BUILD_RENDERSYSTEM_GLES2:BOOL=OFF \ -DOGRE_BUILD_COMPONENT_PYTHON:BOOL=OFF \ -DOGRE_BUILD_COMPONENT_JAVA:BOOL=OFF \ -DOGRE_BUILD_COMPONENT_CSHARP:BOOL=OFF \ -DOGRE_BUILD_PLUGIN_FREEIMAGE:BOOL=OFF \ -DOGRE_BUILD_PLUGIN_EXRCODEC:BOOL=OFF \ -DOGRE_CONFIG_ENABLE_ZIP:BOOL=ON \ -DOGRE_INSTALL_DOCS:BOOL=OFF \ -DOGRE_INSTALL_SAMPLES_SOURCE:BOOL=OFF OPTIONS_DEFINE= CSHARP DOCS FREEIMAGE JAVA OPENEXR OPENGL PROFILE \ PYTHON OPTIONS_DEFAULT= DOCS OPENGL OPTIONS_SUB= yes DOCS_BUILD_DEPENDS= doxygen:devel/doxygen DOCS_CMAKE_BOOL= OGRE_INSTALL_DOCS FREEIMAGE_DESC= Build FreeImage codec FREEIMAGE_CMAKE_BOOL= OGRE_BUILD_PLUGIN_FREEIMAGE FREEIMAGE_LIB_DEPENDS= libfreeimage.so:graphics/freeimage OPENEXR_USE= XORG=ice OPENEXR_CMAKE_BOOL= OGRE_BUILD_PLUGIN_EXRCODEC -OPENEXR_LIB_DEPENDS= libIlmImf.so:graphics/openexr \ - libIlmThread-2_3.so:graphics/ilmbase \ - libHalf.so:graphics/ilmbase \ - libIex-2_3.so:graphics/ilmbase +OPENEXR_LIB_DEPENDS= libOpenEXR.so:graphics/openexr \ + libImath.so:math/Imath OPENGL_CMAKE_BOOL= OGRE_BUILD_RENDERSYSTEM_GL3PLUS \ OGRE_BUILD_RENDERSYSTEM_GL \ OGRE_BUILD_RENDERSYSTEM_GLES2 OPENGL_USES= gl xorg OPENGL_USE= XORG=sm,ice GL=gl,glu PROFILE_CMAKE_BOOL= OGRE_PROFILING CSHARP_DESC= Build Csharp bindings CSHARP_CMAKE_BOOL= OGRE_BUILD_COMPONENT_CSHARP CSHARP_BUILD_DEPENDS= swig:devel/swig JAVA_CMAKE_BOOL= OGRE_BUILD_COMPONENT_JAVA JAVA_BUILD_DEPENDS= swig:devel/swig JAVA_VARS= CMAKE_ARGS+=-DJAVA_HOME=${JAVA_HOME} JAVA_USE= JAVA=yes PYTHON_CMAKE_BOOL= OGRE_BUILD_COMPONENT_PYTHON PYTHON_BUILD_DEPENDS= swig:devel/swig PYTHON_USES= python -CXXFLAGS+= -DNDEBUG -I${LOCALBASE}/include +CXXFLAGS+= -DNDEBUG -I${LOCALBASE}/include -I${LOCALBASE}/include/Imath post-patch: @${REINPLACE_CMD} -e '\ s,defined(__x86_64__),& || defined(__sparc64__) || defined(__amd64__),' \ ${WRKSRC}/OgreMain/include/OgrePlatform.h post-patch-PYTHON-on: ${REINPLACE_CMD} -e 's/\(Python_ADDITIONAL_VERSIONS\) [0-9\.]*/\$1 ${PYTHON_VER}/' \ ${WRKSRC}/CMake/Dependencies.cmake ${REINPLACE_CMD} -e "s/dist-packages/site-packages/" \ ${WRKSRC}/Components/Python/CMakeLists.txt post-build-DOCS-on: ${MAKE_CMD} -C ${BUILD_WRKSRC} OgreDoc post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for docfile in README.md LICENSE AUTHORS ${INSTALL_DATA} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR} .endfor post-install-JAVA-on: @${MKDIR} ${STAGEDIR}${LOCALBASE}/share/OGRE/java ${INSTALL_DATA} ${BUILD_WRKSRC}/java/Ogre-${DISTVERSION}.jar \ ${STAGEDIR}${LOCALBASE}/share/OGRE/java ${INSTALL_LIB} ${BUILD_WRKSRC}/java/libs/libOgreJNI.so \ ${STAGEDIR}${LOCALBASE}/lib/OGRE .include diff --git a/graphics/ogre3d/files/patch-CMake_Packages_FindOpenEXR.cmake b/graphics/ogre3d/files/patch-CMake_Packages_FindOpenEXR.cmake new file mode 100644 index 000000000000..b0d44f2adda6 --- /dev/null +++ b/graphics/ogre3d/files/patch-CMake_Packages_FindOpenEXR.cmake @@ -0,0 +1,39 @@ +--- CMake/Packages/FindOpenEXR.cmake.orig 2019-04-24 16:21:46 UTC ++++ CMake/Packages/FindOpenEXR.cmake +@@ -25,7 +25,7 @@ FIND_PATH(OPENEXR_INCLUDE_DIR OpenEXR/ImfIO.h + ) + + # Macro to find exr libraries (deduplicating search paths) +-# example: OPENEXR_FIND_VAR(OPENEXR_IlmImf_LIBRARY IlmImf) ++# example: OPENEXR_FIND_VAR(OPENEXR_OpenEXR_LIBRARY OpenEXR) + MACRO(OPENEXR_FIND_VAR varname libname) + FIND_LIBRARY( ${varname} + NAMES ${libname} +@@ -45,20 +45,20 @@ MACRO(OPENEXR_FIND_VAR varname libname) + ENDMACRO(OPENEXR_FIND_VAR) + + # Macro to find exr libraries (and debug versions) +-# example: OPENEXR_FIND(IlmImf) ++# example: OPENEXR_FIND(OpenEXR) + MACRO(OPENEXR_FIND libname) + OPENEXR_FIND_VAR(OPENEXR_${libname}_LIBRARY ${libname}) + OPENEXR_FIND_VAR(OPENEXR_${libname}_LIBRARY_DEBUG ${libname}d) + ENDMACRO(OPENEXR_FIND) + +-OPENEXR_FIND(IlmImf) ++OPENEXR_FIND(OpenEXR) + OPENEXR_FIND(IlmThread) + OPENEXR_FIND(Iex) +-OPENEXR_FIND(Half) ++OPENEXR_FIND(Imath) + + SET(OPENEXR_FOUND NO) +-IF(OPENEXR_INCLUDE_DIR AND OPENEXR_IlmImf_LIBRARY AND OPENEXR_IlmThread_LIBRARY AND OPENEXR_Iex_LIBRARY AND OPENEXR_Half_LIBRARY) +- SET(OPENEXR_LIBRARIES ${OPENEXR_IlmImf_LIBRARY} ${OPENEXR_IlmThread_LIBRARY} ${OPENEXR_Half_LIBRARY} ${OPENEXR_Iex_LIBRARY} ) +- SET(OPENEXR_LIBRARIES_VARS OPENEXR_IlmImf_LIBRARY OPENEXR_IlmThread_LIBRARY OPENEXR_Half_LIBRARY OPENEXR_Iex_LIBRARY ) ++IF(OPENEXR_INCLUDE_DIR AND OPENEXR_OpenEXR_LIBRARY AND OPENEXR_IlmThread_LIBRARY AND OPENEXR_Iex_LIBRARY AND OPENEXR_Imath_LIBRARY) ++ SET(OPENEXR_LIBRARIES ${OPENEXR_OpenEXR_LIBRARY} ${OPENEXR_IlmThread_LIBRARY} ${OPENEXR_Imath_LIBRARY} ${OPENEXR_Iex_LIBRARY} ) ++ SET(OPENEXR_LIBRARIES_VARS OPENEXR_OpenEXR_LIBRARY OPENEXR_IlmThread_LIBRARY OPENEXR_Imath_LIBRARY OPENEXR_Iex_LIBRARY ) + SET(OPENEXR_FOUND YES) +-ENDIF(OPENEXR_INCLUDE_DIR AND OPENEXR_IlmImf_LIBRARY AND OPENEXR_IlmThread_LIBRARY AND OPENEXR_Iex_LIBRARY AND OPENEXR_Half_LIBRARY) ++ENDIF(OPENEXR_INCLUDE_DIR AND OPENEXR_OpenEXR_LIBRARY AND OPENEXR_IlmThread_LIBRARY AND OPENEXR_Iex_LIBRARY AND OPENEXR_Imath_LIBRARY) diff --git a/graphics/ogre3d/files/patch-PlugIns_EXRCodec_src_OgreEXRCodec.cpp b/graphics/ogre3d/files/patch-PlugIns_EXRCodec_src_OgreEXRCodec.cpp new file mode 100644 index 000000000000..4510a71a94d3 --- /dev/null +++ b/graphics/ogre3d/files/patch-PlugIns_EXRCodec_src_OgreEXRCodec.cpp @@ -0,0 +1,12 @@ +--- PlugIns/EXRCodec/src/OgreEXRCodec.cpp.orig 2019-04-24 16:21:46 UTC ++++ PlugIns/EXRCodec/src/OgreEXRCodec.cpp +@@ -42,6 +42,9 @@ THE SOFTWARE. + #include + #include + #include ++#include ++#include ++#include + + using namespace Imath; + using namespace Imf;