Skip to content

Commit a42af01

Browse files
luncliffdg0yt
andauthored
[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 <[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]>
1 parent 43cf47e commit a42af01

File tree

5 files changed

+22
-3
lines changed

5 files changed

+22
-3
lines changed

ports/libtheora/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,16 @@ install(EXPORT unofficial-theora-targets
141141
NAMESPACE unofficial::theora::
142142
DESTINATION "lib/unofficial-theora"
143143
)
144+
145+
set(prefix "${CMAKE_INSTALL_PREFIX}")
146+
set(libdir "\${prefix}/lib")
147+
set(exec_prefix "\${prefix}")
148+
set(includedir "\${prefix}/include")
149+
configure_file(theora.pc.in theora.pc @ONLY)
150+
configure_file(theoradec.pc.in theoradec.pc @ONLY)
151+
configure_file(theoraenc.pc.in theoraenc.pc @ONLY)
152+
153+
install(
154+
FILES "${PROJECT_BINARY_DIR}/theora.pc" "${PROJECT_BINARY_DIR}/theoradec.pc" "${PROJECT_BINARY_DIR}/theoraenc.pc"
155+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
156+
)

ports/libtheora/portfile.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ endif()
2121
vcpkg_cmake_configure(
2222
SOURCE_PATH "${SOURCE_PATH}"
2323
OPTIONS
24+
"-DVERSION:STRING=${VERSION}"
2425
-DUSE_X86=${THEORA_X86_OPT}
2526
)
2627

2728
vcpkg_cmake_install()
2829
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/unofficial-theora" PACKAGE_NAME "unofficial-theora")
29-
30+
vcpkg_fixup_pkgconfig()
3031
vcpkg_copy_pdbs()
3132

3233
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

ports/libtheora/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "libtheora",
33
"version-string": "1.2.0alpha1-20170719",
4-
"port-version": 6,
4+
"port-version": 7,
55
"description": "Theora is a free and open video compression format from the Xiph.org Foundation.",
66
"homepage": "https://github.com/xiph/theora",
77
"license": null,

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4866,7 +4866,7 @@
48664866
},
48674867
"libtheora": {
48684868
"baseline": "1.2.0alpha1-20170719",
4869-
"port-version": 6
4869+
"port-version": 7
48704870
},
48714871
"libtins": {
48724872
"baseline": "4.5",

versions/l-/libtheora.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "f6cc1235f841d9f9a7b7d1a278dc63b788c63659",
5+
"version-string": "1.2.0alpha1-20170719",
6+
"port-version": 7
7+
},
38
{
49
"git-tree": "66646fe9dde7ac30894403ba659941879387904e",
510
"version-string": "1.2.0alpha1-20170719",

0 commit comments

Comments
 (0)