mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:19:00 +08:00
[avcpp] Install pkgconfig into the correct location. (#21046)
This commit is contained in:
parent
0556cfd01a
commit
cf7cca5fcc
13
ports/avcpp/fix-pkgconfig-location.patch
Normal file
13
ports/avcpp/fix-pkgconfig-location.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index e0104f4..dae0942 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -128,7 +128,7 @@ if (AVCPP_NOT_SUBPROJECT)
|
||||
)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libavcpp.pc"
|
||||
- DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig")
|
||||
+ DESTINATION "lib/pkgconfig")
|
||||
|
||||
endif()
|
||||
endif()
|
@ -9,26 +9,29 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
0002-av_init_packet_deprecation.patch
|
||||
fix-pkgconfig-location.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" AVCPP_ENABLE_STATIC)
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" AVCPP_ENABLE_SHARED)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DAV_ENABLE_STATIC=${AVCPP_ENABLE_STATIC}
|
||||
-DAV_ENABLE_SHARED=${AVCPP_ENABLE_SHARED}
|
||||
"-DAV_ENABLE_STATIC=${AVCPP_ENABLE_STATIC}"
|
||||
"-DAV_ENABLE_SHARED=${AVCPP_ENABLE_SHARED}"
|
||||
-DAV_BUILD_EXAMPLES=OFF
|
||||
-DBUILD_TESTING=OFF
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "avcpp",
|
||||
"version-date": "2021-06-14",
|
||||
"port-version": 1,
|
||||
"description": "Wrapper for the FFmpeg that simplify usage it from C++ projects.",
|
||||
"homepage": "https://github.com/h4tr3d/avcpp",
|
||||
"dependencies": [
|
||||
@ -12,6 +13,7 @@
|
||||
"avdevice",
|
||||
"avfilter",
|
||||
"avformat",
|
||||
"postproc",
|
||||
"swresample",
|
||||
"swscale"
|
||||
]
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "caf5460d5bfca1d608b7c7eab2bd2872080bf0d8",
|
||||
"version-date": "2021-06-14",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "b4e6dcc1706046f3b2b6fca62df98bbc7696eb19",
|
||||
"version-date": "2021-06-14",
|
||||
|
@ -242,7 +242,7 @@
|
||||
},
|
||||
"avcpp": {
|
||||
"baseline": "2021-06-14",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"avisynthplus": {
|
||||
"baseline": "3.7.0",
|
||||
|
Loading…
Reference in New Issue
Block a user