diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/c-blosc/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/c-blosc/files')
4 files changed, 100 insertions, 0 deletions
diff --git a/dev-libs/c-blosc/files/c-blosc-1.11.1-fix-build-system.patch b/dev-libs/c-blosc/files/c-blosc-1.11.1-fix-build-system.patch new file mode 100644 index 000000000000..02c5fc2d8ab3 --- /dev/null +++ b/dev-libs/c-blosc/files/c-blosc-1.11.1-fix-build-system.patch @@ -0,0 +1,30 @@ +Make the build system respect CFLAGS + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -195,7 +195,7 @@ + CMAKE_SYSTEM_PROCESSOR STREQUAL AMD64) + if(CMAKE_C_COMPILER_ID STREQUAL GNU) + # We need C99 (GNU99 more exactly) +- SET(CMAKE_C_FLAGS "-std=gnu99") ++ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") + set(COMPILER_SUPPORT_SSE2 TRUE) + if(CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.7 OR CMAKE_C_COMPILER_VERSION VERSION_EQUAL 4.7) + set(COMPILER_SUPPORT_AVX2 TRUE) +@@ -244,16 +244,6 @@ + endif() + + # flags +-# @TODO: set -Wall +-# @NOTE: -O3 is enabled in Release mode (CMAKE_BUILD_TYPE="Release") +- +-# Set the "-msse2" build flag only if the CMAKE_C_FLAGS is not already set. +-# Probably "-msse2" should be appended to CMAKE_C_FLAGS_RELEASE. +-if(CMAKE_C_COMPILER_ID STREQUAL GNU OR CMAKE_C_COMPILER_ID STREQUAL Clang OR CMAKE_C_COMPILER_ID STREQUAL Intel) +- if(NOT CMAKE_C_FLAGS AND COMPILER_SUPPORT_SSE2) +- set(CMAKE_C_FLAGS -msse2 CACHE STRING "C flags." FORCE) +- endif(NOT CMAKE_C_FLAGS AND COMPILER_SUPPORT_SSE2) +-endif(CMAKE_C_COMPILER_ID STREQUAL GNU OR CMAKE_C_COMPILER_ID STREQUAL Clang OR CMAKE_C_COMPILER_ID STREQUAL Intel) + + if(MSVC) + if(NOT CMAKE_C_FLAGS) diff --git a/dev-libs/c-blosc/files/c-blosc-1.11.2-fix-build-system.patch b/dev-libs/c-blosc/files/c-blosc-1.11.2-fix-build-system.patch new file mode 100644 index 000000000000..d385d5263710 --- /dev/null +++ b/dev-libs/c-blosc/files/c-blosc-1.11.2-fix-build-system.patch @@ -0,0 +1,21 @@ +Make the build system respect CFLAGS + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -244,16 +244,6 @@ + endif() + + # flags +-# @TODO: set -Wall +-# @NOTE: -O3 is enabled in Release mode (CMAKE_BUILD_TYPE="Release") +- +-# Set the "-msse2" build flag only if the CMAKE_C_FLAGS is not already set. +-# Probably "-msse2" should be appended to CMAKE_C_FLAGS_RELEASE. +-if(CMAKE_C_COMPILER_ID STREQUAL GNU OR CMAKE_C_COMPILER_ID STREQUAL Clang OR CMAKE_C_COMPILER_ID STREQUAL Intel) +- if(NOT CMAKE_C_FLAGS AND COMPILER_SUPPORT_SSE2) +- set(CMAKE_C_FLAGS -msse2 CACHE STRING "C flags." FORCE) +- endif(NOT CMAKE_C_FLAGS AND COMPILER_SUPPORT_SSE2) +-endif(CMAKE_C_COMPILER_ID STREQUAL GNU OR CMAKE_C_COMPILER_ID STREQUAL Clang OR CMAKE_C_COMPILER_ID STREQUAL Intel) + + if(MSVC) + if(NOT CMAKE_C_FLAGS) diff --git a/dev-libs/c-blosc/files/c-blosc-1.3.2-shared-libs.patch b/dev-libs/c-blosc/files/c-blosc-1.3.2-shared-libs.patch new file mode 100644 index 000000000000..484db1f6dd3c --- /dev/null +++ b/dev-libs/c-blosc/files/c-blosc-1.3.2-shared-libs.patch @@ -0,0 +1,22 @@ +--- hdf5/CMakeLists.txt.orig 2014-02-05 16:55:55.001344161 -0800 ++++ hdf5/CMakeLists.txt 2014-02-05 16:57:03.767739650 -0800 +@@ -23,16 +23,16 @@ + + # install + install(FILES blosc_filter.h DESTINATION include COMPONENT HDF5_FILTER_DEV) +-install(TARGETS blosc_filter_static DESTINATION lib COMPONENT HDF5_FILTER) ++install(TARGETS blosc_filter_shared DESTINATION lib${LIB_SUFFIX} COMPONENT HDF5_FILTER) + if(BUILD_STATIC) + install( +- TARGETS blosc_filter_shared DESTINATION lib COMPONENT HDF5_FILTER_DEV) ++ TARGETS blosc_filter_static DESTINATION lib${LIB_SUFFIX} COMPONENT HDF5_FILTER_DEV) + endif(BUILD_STATIC) + + + # test + if(BUILD_TESTS) + add_executable(example example.c) +- target_link_libraries(example blosc_filter_static ${HDF5_LIBRARIES}) ++ target_link_libraries(example blosc_filter_shared ${HDF5_LIBRARIES}) + add_test(test_hdf5_filter example) + endif(BUILD_TESTS) diff --git a/dev-libs/c-blosc/files/c-blosc-1.5.3-shared-libs.patch b/dev-libs/c-blosc/files/c-blosc-1.5.3-shared-libs.patch new file mode 100644 index 000000000000..c46f66987445 --- /dev/null +++ b/dev-libs/c-blosc/files/c-blosc-1.5.3-shared-libs.patch @@ -0,0 +1,27 @@ + hdf5/CMakeLists.txt | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/hdf5/CMakeLists.txt b/hdf5/CMakeLists.txt +index d91194f..032a292 100644 +--- a/hdf5/CMakeLists.txt ++++ b/hdf5/CMakeLists.txt +@@ -44,16 +44,16 @@ endif(MSVC) + + # install + install(FILES blosc_filter.h DESTINATION include COMPONENT HDF5_FILTER_DEV) +-install(TARGETS blosc_filter_shared DESTINATION lib COMPONENT HDF5_FILTER) ++install(TARGETS blosc_filter_shared DESTINATION lib${LIB_SUFFIX} COMPONENT HDF5_FILTER) + if(BUILD_STATIC) + install( +- TARGETS blosc_filter_static DESTINATION lib COMPONENT HDF5_FILTER_DEV) ++ TARGETS blosc_filter_static DESTINATION lib${LIB_SUFFIX} COMPONENT HDF5_FILTER_DEV) + endif(BUILD_STATIC) + + + # test + if(BUILD_TESTS) + add_executable(example example.c) +- target_link_libraries(example blosc_filter_static ${HDF5_LIBRARIES}) ++ target_link_libraries(example blosc_filter_shared ${HDF5_LIBRARIES}) + add_test(test_hdf5_filter example) + endif(BUILD_TESTS) |