aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2020-12-31 02:41:49 +0800
committerGitHub <noreply@github.com>2020-12-30 10:41:49 -0800
commitc5c07e363cfb31df45906d220147e8e3bee23ba2 (patch)
tree3cd968e4222240d66673988a5be93ff03b95b478
parent9b2edf2f386ba3afe78f4612d73d0e44c90453b7 (diff)
downloadvcpkg-c5c07e363cfb31df45906d220147e8e3bee23ba2.tar.gz
vcpkg-c5c07e363cfb31df45906d220147e8e3bee23ba2.zip
[LLGL] installs header files in the wrong directory (#15366)
-rw-r--r--ports/llgl/CONTROL1
-rw-r--r--ports/llgl/fix-install-error.patch2
-rw-r--r--ports/llgl/portfile.cmake3
3 files changed, 3 insertions, 3 deletions
diff --git a/ports/llgl/CONTROL b/ports/llgl/CONTROL
index fcba2d2d4..48341f27d 100644
--- a/ports/llgl/CONTROL
+++ b/ports/llgl/CONTROL
@@ -1,5 +1,6 @@
Source: llgl
Version: 2019-08-15
+Port-Version: 1
Homepage: https://github.com/LukasBanana/LLGL
Description: Low Level Graphics Library (LLGL) is a thin abstraction layer for the modern graphics APIs OpenGL, Direct3D, Vulkan, and Metal.
Supports: !uwp
diff --git a/ports/llgl/fix-install-error.patch b/ports/llgl/fix-install-error.patch
index 30b9c3040..872d01bfc 100644
--- a/ports/llgl/fix-install-error.patch
+++ b/ports/llgl/fix-install-error.patch
@@ -39,6 +39,6 @@ index f440884..d1b0c2f 100644
+ ARCHIVE DESTINATION lib
+)
+# Install headers
-+install(DIRECTORY ${PROJECT_INCLUDE_DIR} DESTINATION include)
++install(DIRECTORY ${PROJECT_INCLUDE_DIR} DESTINATION .)
+
diff --git a/ports/llgl/portfile.cmake b/ports/llgl/portfile.cmake
index ddafdc9de..6ee4bed6b 100644
--- a/ports/llgl/portfile.cmake
+++ b/ports/llgl/portfile.cmake
@@ -35,5 +35,4 @@ endif()
vcpkg_copy_pdbs()
# Handle copyright
-file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) \ No newline at end of file
+file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file