--- gr-audio/lib/CMakeLists.txt.orig 2015-05-12 09:39:44 UTC +++ gr-audio/lib/CMakeLists.txt @@ -203,7 +203,15 @@ add_library(gnuradio-audio SHARED ${gr_a target_link_libraries(gnuradio-audio ${gr_audio_libs}) GR_LIBRARY_FOO(gnuradio-audio RUNTIME_COMPONENT "audio_runtime" DEVEL_COMPONENT "audio_devel") -install(FILES ${gr_audio_confs} DESTINATION ${GR_PREFSDIR} COMPONENT "audio_runtime") +if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") + foreach (audioconf ${gr_audio_confs}) + GET_FILENAME_COMPONENT(baseaudioconf ${audioconf} NAME) + set(newaudioconf "${baseaudioconf}.sample") + install(FILES ${audioconf} DESTINATION ${GR_PREFSDIR} RENAME ${newaudioconf} COMPONENT "audio_runtime") + endforeach() +else() + install(FILES ${gr_audio_confs} DESTINATION ${GR_PREFSDIR} COMPONENT "audio_runtime") +endif() if(ENABLE_STATIC_LIBS) if(ENABLE_GR_CTRLPORT)