Skip to content

Commit

Permalink
[libtheora] install pkg-config files (#34904)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>

* Update ports/libtheora/portfile.cmake

Co-authored-by: Kai Pastor <[email protected]>

* Update ports/libtheora/CMakeLists.txt

Co-authored-by: Kai Pastor <[email protected]>

* [libtheora] update baseline

---------

Co-authored-by: Kai Pastor <[email protected]>
  • Loading branch information
luncliff and dg0yt authored Nov 21, 2023
1 parent 43cf47e commit a42af01
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
13 changes: 13 additions & 0 deletions ports/libtheora/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
3 changes: 2 additions & 1 deletion ports/libtheora/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion ports/libtheora/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4866,7 +4866,7 @@
},
"libtheora": {
"baseline": "1.2.0alpha1-20170719",
"port-version": 6
"port-version": 7
},
"libtins": {
"baseline": "4.5",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libtheora.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit a42af01

Please sign in to comment.