Skip to content

Commit

Permalink
[libass] fix fontconfig dependency in .pc file (#18516)
Browse files Browse the repository at this point in the history
* [libass] fix fontconfig dependency in .pc file on x64-linux

* [libass] bump port version

* [libass] x-add-version
  • Loading branch information
mcmtroffaes authored Jun 18, 2021
1 parent 48b93ec commit 926daf3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 7 additions & 3 deletions ports/libass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ add_compile_definitions(CONFIG_FRIBIDI)
add_compile_definitions(CONFIG_HARFBUZZ)

file (GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/libass/*.c)
set(FONTCONFIG_LIBRARAY)
set(FONTCONFIG_LIBRARY)
if(WIN32)
list(FILTER SOURCES EXCLUDE REGEX ".*ass_coretext.c$")
list(FILTER SOURCES EXCLUDE REGEX ".*ass_fontconfig.c$")
Expand All @@ -32,7 +32,7 @@ else()
list(FILTER SOURCES EXCLUDE REGEX ".*ass_directwrite.c$")

find_package(Fontconfig REQUIRED)
set(FONTCONFIG_LIBRARAY Fontconfig::Fontconfig)
set(FONTCONFIG_LIBRARY Fontconfig::Fontconfig)
endif()

find_package(Freetype REQUIRED)
Expand Down Expand Up @@ -77,7 +77,11 @@ set(exec_prefix ${CMAKE_INSTALL_PREFIX})
set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
set(includedir ${CMAKE_INSTALL_PREFIX}/include)
set(PACKAGE_VERSION ${LIBASS_VERSION})
set(PKG_REQUIRES_PRIVATE "harfbuzz >= 1.2.3, fribidi >= 0.19.0, freetype2 >= 9.10.3")
if(WIN32 OR APPLE)
set(PKG_REQUIRES_PRIVATE "harfbuzz >= 1.2.3, fribidi >= 0.19.0, freetype2 >= 9.10.3")
else()
set(PKG_REQUIRES_PRIVATE "fontconfig >= 2.10.92, harfbuzz >= 1.2.3, fribidi >= 0.19.0, freetype2 >= 9.10.3")
endif()
set(PKG_LIBS_PRIVATE -lm)
configure_file(libass.pc.in libass.pc @ONLY)
install(FILES
Expand Down
1 change: 1 addition & 0 deletions ports/libass/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libass",
"version": "0.15.1",
"port-version": 1,
"description": "libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format",
"homepage": "https://github.com/libass/libass",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3010,7 +3010,7 @@
},
"libass": {
"baseline": "0.15.1",
"port-version": 0
"port-version": 1
},
"libassuan": {
"baseline": "2.5.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libass.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7c9d2203cb8e0f912847cdd70a9ba1142b1ab32f",
"version": "0.15.1",
"port-version": 1
},
{
"git-tree": "2512ee72e51fb02185743218ae2cd52f56ca232f",
"version": "0.15.1",
Expand Down

0 comments on commit 926daf3

Please sign in to comment.