From: Andrew Udvare <audvare@gmail.com>
Subject: [PATCH] Do not install the vendored sf2cute

sf2cute is vendored purely as a build dependency of manatools, so none of it
belongs in the image. Its install rule is wrong here in any case: it exports
headers from ${CMAKE_SOURCE_DIR}/include, which under this build is manatools'
own source tree rather than sf2cute's.

diff --git a/third_party/sf2cute/CMakeLists.txt b/third_party/sf2cute/CMakeLists.txt
index 33f9071..a3a71ec 100644
--- a/third_party/sf2cute/CMakeLists.txt
+++ b/third_party/sf2cute/CMakeLists.txt
@@ -90,59 +90,3 @@ target_sources(write_sf2
 )
 target_link_libraries(write_sf2 PRIVATE sf2cute)
 
-#============================================================================
-# Install and Export sf2cute
-#============================================================================
-
-include(GNUInstallDirs)
-
-# install library files needed for linking
-install(
-    TARGETS sf2cute
-    EXPORT sf2cute-targets
-    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
-    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
-    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
-)
-
-# install the public header files
-install(
-    DIRECTORY ${CMAKE_SOURCE_DIR}/include/
-    DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
-)
-
-# installs the *cmake files in share directory
-install(
-    EXPORT sf2cute-targets
-    FILE sf2cute-targets.cmake
-    NAMESPACE sf2cute::
-    DESTINATION share/sf2cute
-)
-
-include(CMakePackageConfigHelpers)
-
-write_basic_package_version_file(
-    ${CMAKE_BINARY_DIR}/cmake/sf2cute-config-version.cmake
-    VERSION ${SF2CUTE_VERSION}
-    COMPATIBILITY AnyNewerVersion
-)
-
-configure_package_config_file(
-    ${CMAKE_CURRENT_LIST_DIR}/cmake/sf2cute-config.cmake.in
-    ${CMAKE_CURRENT_BINARY_DIR}/cmake/sf2cute-config.cmake
-    INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/sf2cute
-)
-
-install(
-    FILES
-        ${CMAKE_BINARY_DIR}/cmake/sf2cute-config.cmake
-        ${CMAKE_BINARY_DIR}/cmake/sf2cute-config-version.cmake
-    DESTINATION share/sf2cute
-)
-
-if(SF2CUTE_INSTALL_EXAMPLES)
-    install(
-        TARGETS write_sf2
-        RUNTIME DESTINATION ${SF2CUTE_EXAMPLES_INSTALL_DIR}
-    )
-endif()
\ No newline at end of file
