--- /dev/null
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5536922..07df95a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -482,23 +482,23 @@ endif()
+ # Build examples\r
+ # ############################################################################\r
+ \r
+-set(SIMAGE_EXAMPLE_SOURCE\r
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/audio2raw.c\r
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/img2avi.c\r
++#set(SIMAGE_EXAMPLE_SOURCE\r
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/audio2raw.c\r
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/img2avi.c\r
+ # ${CMAKE_CURRENT_SOURCE_DIR}/examples/mpeg2enc.cpp # requires Coin to build\r
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-convert.c\r
+- ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-read-line-test.c\r
+-)\r
+-\r
+-foreach(_source ${SIMAGE_EXAMPLE_SOURCE})\r
+- get_filename_component(_example ${_source} NAME_WE)\r
+- add_executable(${_example} ${_source})\r
+- target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)\r
+- target_link_libraries(${_example} simage)\r
+- if(UNIX)\r
+- target_link_libraries(${_example} m)\r
+- endif()\r
+-endforeach()\r
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-convert.c\r
++# ${CMAKE_CURRENT_SOURCE_DIR}/examples/simage-read-line-test.c\r
++#)\r
++\r
++#foreach(_source ${SIMAGE_EXAMPLE_SOURCE})\r
++# get_filename_component(_example ${_source} NAME_WE)\r
++# add_executable(${_example} ${_source})\r
++# target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)\r
++# target_link_libraries(${_example} simage)\r
++# if(UNIX)\r
++# target_link_libraries(${_example} m)\r
++# endif()\r
++#endforeach()\r
+ \r
+ # ############################################################################\r
+ # Build tests\r
+++ /dev/null
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 8225dc4..de89fd0 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -494,7 +494,7 @@ foreach(_source ${SIMAGE_EXAMPLE_SOURCE})
- get_filename_component(_example ${_source} NAME_WE)\r
- add_executable(${_example} ${_source})\r
- target_compile_definitions(${_example} PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)\r
-- target_link_libraries(${_example} simage)\r
-+ target_link_libraries(${_example} simage sndfile)\r
- if(UNIX)\r
- target_link_libraries(${_example} m)\r
- endif()\r
-@@ -507,7 +507,7 @@ endforeach()
- enable_testing()\r
- \r
- add_executable(loaders tests/loaders.c)\r
--target_link_libraries(loaders simage)\r
-+target_link_libraries(loaders simage sndfile)\r
- target_compile_definitions(loaders PRIVATE _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _USE_MATH_DEFINES)\r
- if(UNIX)\r
- target_link_libraries(loaders m)\r
PATCHES=(
"${FILESDIR}/${P}-cmake-automagic-deps.patch"
- "${FILESDIR}/${P}-fix-examples-linking.patch"
+ # examples need to link against libsndfile unconditionally so either we could
+ # make the dep unconditional or not build the examples. i chose the latter way.
+ # btw, examples are not installed anyway, they are just compiled.
+ "${FILESDIR}/${P}-disable-examples.patch"
"${FILESDIR}/${P}-disable-gif-quantize-buffer.patch"
)