forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* flac: add 1.4.2 Flac 1.4.2 removed the build dependency on nasm https://github.com/xiph/flac/releases/tag/1.4.2 Also switching to the official source download which we can't use for 1.3.3 because it does not include the CMake files. * flac: delete CMake and pkgconfig files * Fix shared builds * Adapt patches * Add patch descriptions and types * Remove obsolete Conan version check * Use rm_safe * Use export_conandata_patches * Apply suggestions from code review Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> --------- Co-authored-by: Cr0ydon <git@cr0ydon.com> Co-authored-by: chausner <chausner@users.noreply.github.com> Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
59 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
sources: | ||
"1.4.2": | ||
url: "https://github.com/xiph/flac/releases/download/1.4.2/flac-1.4.2.tar.xz" | ||
sha256: "e322d58a1f48d23d9dd38f432672865f6f79e73a6f9cc5a5f57fcaa83eb5a8e4" | ||
"1.3.3": | ||
url: "https://github.com/xiph/flac/archive/1.3.3.tar.gz" | ||
sha256: "668cdeab898a7dd43cf84739f7e1f3ed6b35ece2ef9968a5c7079fe9adfe1689" | ||
patches: | ||
"1.4.2": | ||
- patch_file: "patches/fix-cmake-1.4.2.patch" | ||
patch_description: "Adapts find_package commands and install destination paths in CMakeLists.txt files." | ||
patch_type: "conan" | ||
"1.3.3": | ||
- patch_file: "patches/fix-cmake.patch" | ||
- patch_file: "patches/fix-cmake-1.3.3.patch" | ||
patch_description: "Various adaptations in CMakeLists.txt files to improve compatibility with Conan." | ||
patch_type: "conan" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -43,7 +43,7 @@ if(WITH_OGG) | ||
endif() | ||
else() | ||
if(NOT TARGET Ogg::ogg) | ||
- find_package(Ogg REQUIRED) | ||
+ find_package(Ogg REQUIRED CONFIG) | ||
else() | ||
set(OGG_FOUND 1 CACHE INTERNAL "ogg has already been built") | ||
endif() | ||
--- a/src/flac/CMakeLists.txt | ||
+++ b/src/flac/CMakeLists.txt | ||
@@ -21,4 +21,4 @@ target_link_libraries(flacapp | ||
utf8) | ||
|
||
install(TARGETS flacapp EXPORT targets | ||
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") | ||
+ DESTINATION "${CMAKE_INSTALL_BINDIR}") | ||
--- a/src/metaflac/CMakeLists.txt | ||
+++ b/src/metaflac/CMakeLists.txt | ||
@@ -14,4 +14,4 @@ add_executable(metaflac | ||
target_link_libraries(metaflac FLAC getopt utf8) | ||
|
||
install(TARGETS metaflac EXPORT targets | ||
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") | ||
+ DESTINATION "${CMAKE_INSTALL_BINDIR}") | ||
--- a/src/share/getopt/CMakeLists.txt | ||
+++ b/src/share/getopt/CMakeLists.txt | ||
@@ -1,8 +1,7 @@ | ||
check_include_file("string.h" HAVE_STRING_H) | ||
|
||
if(NOT WIN32) | ||
- find_package(Intl) | ||
endif() | ||
|
||
add_library(getopt STATIC getopt.c getopt1.c) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
versions: | ||
"1.4.2": | ||
folder: all | ||
"1.3.3": | ||
folder: all |