[libtheora] install pkg-config files (#34904)

* [libtheora] create pkg-config files

* [libtheora] fix expression

* [libtheora] update baseline

* [libtheora] provide version from portfile

* Update ports/libtheora/CMakeLists.txt

Co-authored-by: Kai Pastor <dg0yt@darc.de>

* Update ports/libtheora/portfile.cmake

Co-authored-by: Kai Pastor <dg0yt@darc.de>

* Update ports/libtheora/CMakeLists.txt

Co-authored-by: Kai Pastor <dg0yt@darc.de>

* [libtheora] update baseline

---------

Co-authored-by: Kai Pastor <dg0yt@darc.de>
This commit is contained in:
Park DongHa 2023-11-21 12:31:49 +09:00 committed by GitHub
parent 43cf47eccf
commit a42af01b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 3 deletions

View File

@ -141,3 +141,16 @@ install(EXPORT unofficial-theora-targets
NAMESPACE unofficial::theora::
DESTINATION "lib/unofficial-theora"
)
set(prefix "${CMAKE_INSTALL_PREFIX}")
set(libdir "\${prefix}/lib")
set(exec_prefix "\${prefix}")
set(includedir "\${prefix}/include")
configure_file(theora.pc.in theora.pc @ONLY)
configure_file(theoradec.pc.in theoradec.pc @ONLY)
configure_file(theoraenc.pc.in theoraenc.pc @ONLY)
install(
FILES "${PROJECT_BINARY_DIR}/theora.pc" "${PROJECT_BINARY_DIR}/theoradec.pc" "${PROJECT_BINARY_DIR}/theoraenc.pc"
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

View File

@ -21,12 +21,13 @@ endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-DVERSION:STRING=${VERSION}"
-DUSE_X86=${THEORA_X86_OPT}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/unofficial-theora" PACKAGE_NAME "unofficial-theora")
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

View File

@ -1,7 +1,7 @@
{
"name": "libtheora",
"version-string": "1.2.0alpha1-20170719",
"port-version": 6,
"port-version": 7,
"description": "Theora is a free and open video compression format from the Xiph.org Foundation.",
"homepage": "https://github.com/xiph/theora",
"license": null,

View File

@ -4866,7 +4866,7 @@
},
"libtheora": {
"baseline": "1.2.0alpha1-20170719",
"port-version": 6
"port-version": 7
},
"libtins": {
"baseline": "4.5",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f6cc1235f841d9f9a7b7d1a278dc63b788c63659",
"version-string": "1.2.0alpha1-20170719",
"port-version": 7
},
{
"git-tree": "66646fe9dde7ac30894403ba659941879387904e",
"version-string": "1.2.0alpha1-20170719",