-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[brotli] add pkgconfig / [freetype] depend on brotli (#12405)
* [brotli] add pkgconfig * [freetype] add pkgconfig and add dependency on brotli * [qt5-base] add new freetype dependency to brotli and zstd * [freetype] fix cmake paths * [freetype] removed renaming of include dir and unnecessary cmake fixes * [freetype-gl] fix glew include dir * [podofo] fix freetype search. * fixing wrong freetype stuff due to vcpkg owned wrong CMakeLists.txt ..... * fixing more freetype hidden issues. * [sfml] fix missing include * fix typo * [freetype] uncomment previous renaming of include folders * fix brotli linkage in static builds * remove added alias to avoid problems. * [freetype] add brotli to the wrapper * [lzokay] format manifest Co-authored-by: Nicole Mazzuca <[email protected]>
- Loading branch information
1 parent
5617464
commit 61c055a
Showing
29 changed files
with
244 additions
and
66 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,4 +1,5 @@ | ||
Source: brotli | ||
Version: 1.0.7-1 | ||
Version: 1.0.7 | ||
Port-Version: 3 | ||
Homepage: https://github.com/google/brotli | ||
Description: a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling. |
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,73 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 2c4b757f9..eed560c1d 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -351,7 +351,7 @@ function(generate_pkg_config_path outvar path) | ||
set("${outvar}" "${${outvar}}" PARENT_SCOPE) | ||
endfunction(generate_pkg_config_path) | ||
|
||
-function(transform_pc_file INPUT_FILE OUTPUT_FILE VERSION) | ||
+function(transform_pc_file INPUT_FILE OUTPUT_FILE VERSION SHARED_TARGET STATIC_TARGET) | ||
file(READ ${INPUT_FILE} TEXT) | ||
|
||
set(PREFIX "${CMAKE_INSTALL_PREFIX}") | ||
@@ -366,14 +366,21 @@ function(transform_pc_file INPUT_FILE OUTPUT_FILE VERSION) | ||
|
||
string(REGEX REPLACE "@PACKAGE_VERSION@" "${VERSION}" TEXT ${TEXT}) | ||
|
||
+ if(BUILD_SHARED_LIBS) | ||
+ set(LIB_NAME "${SHARED_TARGET}") | ||
+ else() | ||
+ set(LIB_NAME "${STATIC_TARGET}") | ||
+ endif() | ||
+ string(REGEX REPLACE "@lib_name@" "${LIB_NAME}" TEXT ${TEXT}) | ||
+ | ||
file(WRITE ${OUTPUT_FILE} ${TEXT}) | ||
endfunction() | ||
|
||
-transform_pc_file("scripts/libbrotlicommon.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlicommon.pc" "${BROTLI_VERSION}") | ||
+transform_pc_file("scripts/libbrotlicommon.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlicommon.pc" "${BROTLI_VERSION}" brotlicommon brotlicommon-static) | ||
|
||
-transform_pc_file("scripts/libbrotlidec.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlidec.pc" "${BROTLI_VERSION}") | ||
+transform_pc_file("scripts/libbrotlidec.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlidec.pc" "${BROTLI_VERSION}" brotlidec brotlidec-static) | ||
|
||
-transform_pc_file("scripts/libbrotlienc.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlienc.pc" "${BROTLI_VERSION}") | ||
+transform_pc_file("scripts/libbrotlienc.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlienc.pc" "${BROTLI_VERSION}" brotlienc brotlienc-static) | ||
|
||
if(NOT BROTLI_BUNDLED_MODE) | ||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libbrotlicommon.pc" | ||
diff --git a/scripts/libbrotlicommon.pc.in b/scripts/libbrotlicommon.pc.in | ||
index 2a8cf7a35..464a21292 100644 | ||
--- a/scripts/libbrotlicommon.pc.in | ||
+++ b/scripts/libbrotlicommon.pc.in | ||
@@ -7,5 +7,5 @@ Name: libbrotlicommon | ||
URL: https://github.com/google/brotli | ||
Description: Brotli common dictionary library | ||
Version: @PACKAGE_VERSION@ | ||
-Libs: -L${libdir} -lbrotlicommon | ||
+Libs: -L${libdir} -l@lib_name@ | ||
Cflags: -I${includedir} | ||
diff --git a/scripts/libbrotlidec.pc.in b/scripts/libbrotlidec.pc.in | ||
index 6f8ef2e41..f87d3f65f 100644 | ||
--- a/scripts/libbrotlidec.pc.in | ||
+++ b/scripts/libbrotlidec.pc.in | ||
@@ -7,6 +7,6 @@ Name: libbrotlidec | ||
URL: https://github.com/google/brotli | ||
Description: Brotli decoder library | ||
Version: @PACKAGE_VERSION@ | ||
-Libs: -L${libdir} -lbrotlidec | ||
+Libs: -L${libdir} -l@lib_name@ | ||
Requires.private: libbrotlicommon >= 1.0.2 | ||
Cflags: -I${includedir} | ||
diff --git a/scripts/libbrotlienc.pc.in b/scripts/libbrotlienc.pc.in | ||
index 2098afe2c..7b6371bcb 100644 | ||
--- a/scripts/libbrotlienc.pc.in | ||
+++ b/scripts/libbrotlienc.pc.in | ||
@@ -7,6 +7,6 @@ Name: libbrotlienc | ||
URL: https://github.com/google/brotli | ||
Description: Brotli encoder library | ||
Version: @PACKAGE_VERSION@ | ||
-Libs: -L${libdir} -lbrotlienc | ||
+Libs: -L${libdir} -l@lib_name@ | ||
Requires.private: libbrotlicommon >= 1.0.2 | ||
Cflags: -I${includedir} |
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
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
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
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
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,5 +1,6 @@ | ||
Source: cairomm | ||
Version: 1.15.3-4 | ||
Version: 1.15.3 | ||
Port-Version: 5 | ||
Homepage: https://www.cairographics.org | ||
Description: A C++ wrapper for the cairo graphics library | ||
Build-Depends: cairo, libsigcpp |
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,5 +1,6 @@ | ||
Source: freetype-gl | ||
Version: 2019-03-29-3 | ||
Version: 2019-03-29 | ||
Port-Version: 4 | ||
Homepage: https://github.com/rougier/freetype-gl | ||
Description: OpenGL text using one vertex buffer, one texture and FreeType | ||
Build-Depends: glew, freetype |
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,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 1c2e89fba..9e2d112c4 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -92,7 +92,7 @@ include_directories( | ||
${OPENGL_INCLUDE_DIRS} | ||
${FREETYPE_INCLUDE_DIRS} | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
- ${GLEW_INCLUDE_PATH} | ||
+ ${GLEW_INCLUDE_DIRS} | ||
) | ||
|
||
if(MSVC) |
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
This file was deleted.
Oops, something went wrong.
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
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,21 @@ | ||
diff --git a/builds/cmake/FindBrotliDec.cmake b/builds/cmake/FindBrotliDec.cmake | ||
index 7c484c7df..0bd49b825 100644 | ||
--- a/builds/cmake/FindBrotliDec.cmake | ||
+++ b/builds/cmake/FindBrotliDec.cmake | ||
@@ -34,14 +34,14 @@ find_path(BROTLIDEC_INCLUDE_DIRS | ||
PATH_SUFFIXES brotli) | ||
|
||
find_library(BROTLIDEC_LIBRARIES | ||
- NAMES brotlidec | ||
+ NAMES brotlidec brotlidec-static | ||
HINTS ${PC_BROTLIDEC_LIBDIR} | ||
${PC_BROTLIDEC_LIBRARY_DIRS}) | ||
|
||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args( | ||
- brotlidec | ||
+ BrotliDec | ||
REQUIRED_VARS BROTLIDEC_INCLUDE_DIRS BROTLIDEC_LIBRARIES | ||
FOUND_VAR BROTLIDEC_FOUND | ||
VERSION_VAR BROTLIDEC_VERSION) |
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,20 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 65839ac58..54f2ce8ec 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -517,7 +517,6 @@ endif () | ||
|
||
if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL) | ||
# Generate the pkg-config file | ||
- if (UNIX) | ||
file(READ "${PROJECT_SOURCE_DIR}/builds/unix/freetype2.in" FREETYPE2_PC_IN) | ||
|
||
string(REPLACE ";" ", " PKG_CONFIG_REQUIRED_PRIVATE "${PKG_CONFIG_REQUIRED_PRIVATE}") | ||
@@ -551,7 +550,6 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL) | ||
FILES ${PROJECT_BINARY_DIR}/freetype2.pc | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig | ||
COMPONENT pkgconfig) | ||
- endif () | ||
|
||
install( | ||
TARGETS freetype |
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
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
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
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,5 +1,5 @@ | ||
Source: libass | ||
Version: 0.14.0 | ||
Port-Version: 1 | ||
Port-Version: 2 | ||
Build-Depends: freetype, fribidi, harfbuzz, dirent (windows) | ||
Description: libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format. |
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
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,4 +1,5 @@ | ||
Source: libraqm | ||
Version: 0.7.0-1 | ||
Version: 0.7.0 | ||
Port-Version: 2 | ||
Description: A library for complex text layout | ||
Build-Depends: freetype, harfbuzz, fribidi |
Oops, something went wrong.