[DO-971] ffmpeg recipe with requirements (!9)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/9
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
--- include/FLAC/export.h
|
||||
+++ include/FLAC/export.h
|
||||
@@ -74,7 +74,7 @@
|
||||
*/
|
||||
#if defined(_WIN32)
|
||||
|
||||
-#if defined(FLAC__NO_DLL) && !(defined(DLL_EXPORT))
|
||||
+#if defined(FLAC__NO_DLL)
|
||||
#define FLAC_API
|
||||
#else
|
||||
#ifdef FLAC_API_EXPORTS
|
||||
--- include/FLAC++/export.h
|
||||
+++ include/FLAC++/export.h
|
||||
@@ -73,7 +73,7 @@
|
||||
* by libtool, must override FLAC__NO_DLL on building shared components
|
||||
*/
|
||||
#if defined(_WIN32)
|
||||
-#if defined(FLAC__NO_DLL) && !(defined(DLL_EXPORT))
|
||||
+#if defined(FLAC__NO_DLL)
|
||||
#define FLACPP_API
|
||||
#else
|
||||
#ifdef FLACPP_API_EXPORTS
|
||||
48
recipes/flac/all/patches/fix-cmake-1.3.3.patch
Normal file
48
recipes/flac/all/patches/fix-cmake-1.3.3.patch
Normal file
@@ -0,0 +1,48 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -25,9 +25,6 @@ endif()
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef")
|
||||
endif()
|
||||
-if(CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||
- set(CMAKE_EXE_LINKER_FLAGS -no-pie)
|
||||
-endif()
|
||||
|
||||
include(CMakePackageConfigHelpers)
|
||||
include(CPack)
|
||||
@@ -76,7 +73,7 @@ add_compile_options(
|
||||
$<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:${HAVE_DECL_AFTER_STMT_FLAG}>>:-Wdeclaration-after-statement>)
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "i686" AND HAVE_STACKREALIGN_FLAG)
|
||||
- add_compile_options(-mstackrealign)
|
||||
+ add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-mstackrealign>)
|
||||
endif()
|
||||
|
||||
include_directories("include")
|
||||
--- a/src/flac/CMakeLists.txt
|
||||
+++ b/src/flac/CMakeLists.txt
|
||||
@@ -21,4 +21,4 @@ if(TARGET win_utf8_io)
|
||||
endif()
|
||||
|
||||
install(TARGETS flacapp EXPORT targets
|
||||
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
+ DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
--- a/src/libFLAC/CMakeLists.txt
|
||||
+++ b/src/libFLAC/CMakeLists.txt
|
||||
@@ -102,7 +102,7 @@ target_compile_definitions(FLAC
|
||||
target_include_directories(FLAC INTERFACE
|
||||
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
|
||||
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
|
||||
-target_link_libraries(FLAC PRIVATE $<$<BOOL:${HAVE_LROUND}>:m>)
|
||||
+target_link_libraries(FLAC PUBLIC $<$<BOOL:${HAVE_LROUND}>:m>)
|
||||
if(TARGET Ogg::ogg)
|
||||
target_link_libraries(FLAC PUBLIC Ogg::ogg)
|
||||
endif()
|
||||
--- a/src/metaflac/CMakeLists.txt
|
||||
+++ b/src/metaflac/CMakeLists.txt
|
||||
@@ -15,4 +15,4 @@ if(TARGET win_utf8_io)
|
||||
endif()
|
||||
|
||||
install(TARGETS metaflac EXPORT targets
|
||||
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
+ DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
Reference in New Issue
Block a user