Index: head/graphics/alembic/Makefile =================================================================== --- head/graphics/alembic/Makefile (revision 418961) +++ head/graphics/alembic/Makefile (revision 418962) @@ -1,32 +1,37 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= alembic PORTVERSION= 1.5.8 PORTREVISION= 1 CATEGORIES= graphics MAINTAINER= danfe@FreeBSD.org COMMENT= Open framework for storing and sharing graphic scene data LICENSE= BSD3CLAUSE LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ libImath-2_2.so:graphics/ilmbase \ libhdf5.so:science/hdf5 BROKEN_FreeBSD_9= does not build (insufficient C++11 support) USE_GITHUB= yes USES= cmake compiler:c++11-lang USE_CXXSTD= c++11 USE_GL= glew glut CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON -DUSE_PYALEMBIC:BOOL=OFF +# Alembic < 1.6.0's AlembicHDF5.cmake sets HDF5_ROOT to a bogus value if one is +# not specified, and this confuses CMake >= 3.6.0 which started honoring +# HDF5_ROOT more thoroughly. +CMAKE_ARGS+= -DHDF5_ROOT:PATH="${LOCALBASE}" + post-patch: @${REINPLACE_CMD} -e 's,H5Rdereference,&1,' \ ${WRKSRC}/lib/Alembic/AbcCoreHDF5/HDF5Util.cpp .include Index: head/graphics/alembic/files/patch-build_AlembicHDF5.cmake =================================================================== --- head/graphics/alembic/files/patch-build_AlembicHDF5.cmake (nonexistent) +++ head/graphics/alembic/files/patch-build_AlembicHDF5.cmake (revision 418962) @@ -0,0 +1,17 @@ +Required by CMake >= 3.6.0, which properly separates HDF5_LIBRARIES (libraries +for the requested language bindings) and HDF5_HL_LIBRARIES (high-level +libraries for the requested language bindings). + +This patch can be removed when Alembic is updated to 1.6.0 or later, which +drops the usage of HDF5's high-level libraries. +--- build/AlembicHDF5.cmake.orig 2016-07-23 11:57:11 UTC ++++ build/AlembicHDF5.cmake +@@ -87,7 +87,7 @@ IF( HDF5_FOUND ) + ENDIF() + SET( ALEMBIC_HDF5_LIB ${HDF5_C_LIBRARIES} ) + SET( ALEMBIC_HDF5_HL_LIB ${HDF5_CXX_LIBRARIES} ) +- SET( ALEMBIC_HDF5_LIBS ${HDF5_LIBRARIES} ) ++ SET( ALEMBIC_HDF5_LIBS ${HDF5_LIBRARIES} ${HDF5_HL_LIBRARIES} ) + SET( ALEMBIC_HDF5_FOUND TRUE ) + + MESSAGE(STATUS "HDF5 INCLUDE PATH: ${ALEMBIC_HDF5_INCLUDE_PATH}" ) Property changes on: head/graphics/alembic/files/patch-build_AlembicHDF5.cmake ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property