--- libheif-1.4.0/libheif.pc.in.orig	2019-06-11 09:44:59.145657700 +0300
+++ libheif-1.4.0/libheif.pc.in	2019-06-11 09:45:12.764481600 +0300
@@ -1,7 +1,7 @@
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
-includedir=@includedir@
+includedir=@includedir@/@PACKAGE@
 builtin_h265_decoder=@have_libde265@
 builtin_h265_encoder=@have_x265@
 
@@ -12,4 +12,4 @@
 Requires:
 Libs: -L@libdir@ -lheif
 Libs.private: @LIBS@ -lstdc++
-Cflags: -I@includedir@
+Cflags: -I@includedir@/@PACKAGE@
--- libheif-1.11.0/CMakeLists.txt.orig	2021-02-01 15:14:13.000000000 +0100
+++ libheif-1.11.0/CMakeLists.txt	2021-04-29 11:05:30.779610800 +0200
@@ -152,7 +152,8 @@
     set(have_avif_encoder no)
 endif()
 list(JOIN REQUIRES_PRIVATE " " REQUIRES_PRIVATE)
-set(VERSION ${PROJECT_VERSION})
+set(VERSION ${PACKAGE_VERSION})
+set(PACKAGE ${PROJECT_NAME})
 
 configure_file(libheif.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libheif.pc @ONLY)
 
