Skip to content

Commit

Permalink
[libheif] Fix usage (#22818)
Browse files Browse the repository at this point in the history
* [libheif] Fix usage

* version

* Add license

* version
  • Loading branch information
JackBoosY authored Jan 28, 2022
1 parent c89dce3 commit 8e7e20c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ports/libheif/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ if(NOT VCPKG_BUILD_TYPE)
endif()
vcpkg_fixup_pkgconfig()

if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libheif/heif.h" "!defined(LIBHEIF_STATIC_BUILD)" "1")
else()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libheif/heif.h" "!defined(LIBHEIF_STATIC_BUILD)" "0")
endif()

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

file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
3 changes: 2 additions & 1 deletion ports/libheif/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "libheif",
"version": "1.12.0",
"port-version": 1,
"port-version": 2,
"description": "Open h.265 video codec implementation.",
"homepage": "http://www.libheif.org/",
"license": "GPL-3.0-only",
"dependencies": [
{
"name": "gdk-pixbuf",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3554,7 +3554,7 @@
},
"libheif": {
"baseline": "1.12.0",
"port-version": 1
"port-version": 2
},
"libhsplasma": {
"baseline": "2021.06.08",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libheif.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "73b2b4b29035aa22da5ccd0c4c46dbb6e5516424",
"version": "1.12.0",
"port-version": 2
},
{
"git-tree": "738b6fc8b77a7fa90cd5966358dc3be684a832c1",
"version": "1.12.0",
Expand Down

0 comments on commit 8e7e20c

Please sign in to comment.