aboutsummaryrefslogtreecommitdiff
path: root/ports/globjects
diff options
context:
space:
mode:
Diffstat (limited to 'ports/globjects')
-rw-r--r--ports/globjects/CONTROL5
-rw-r--r--ports/globjects/fix-dependency-glm.patch13
-rw-r--r--ports/globjects/portfile.cmake4
-rw-r--r--ports/globjects/vcpkg.json11
4 files changed, 27 insertions, 6 deletions
diff --git a/ports/globjects/CONTROL b/ports/globjects/CONTROL
deleted file mode 100644
index 64664a9a1..000000000
--- a/ports/globjects/CONTROL
+++ /dev/null
@@ -1,5 +0,0 @@
-Source: globjects
-Version: 1.1.0-3
-Build-Depends: glbinding, glm
-Description: C++ library strictly wrapping OpenGL objects.
-Homepage: https://github.com/cginternals/globjects
diff --git a/ports/globjects/fix-dependency-glm.patch b/ports/globjects/fix-dependency-glm.patch
new file mode 100644
index 000000000..e867da1b1
--- /dev/null
+++ b/ports/globjects/fix-dependency-glm.patch
@@ -0,0 +1,13 @@
+diff --git a/source/globjects/CMakeLists.txt b/source/globjects/CMakeLists.txt
+index 71e92d8..b8b4408 100644
+--- a/source/globjects/CMakeLists.txt
++++ b/source/globjects/CMakeLists.txt
+@@ -359,7 +359,7 @@ target_link_libraries(${target}
+
+ PUBLIC
+ ${DEFAULT_LIBRARIES}
+- glm
++ glm::glm
+ glbinding::glbinding
+ glbinding::glbinding-aux
+
diff --git a/ports/globjects/portfile.cmake b/ports/globjects/portfile.cmake
index 12ef30059..4103fd3ab 100644
--- a/ports/globjects/portfile.cmake
+++ b/ports/globjects/portfile.cmake
@@ -4,7 +4,9 @@ vcpkg_from_github(
REF dc68b09a53ec20683d3b3a12ed8d9cb12602bb9a
SHA512 5145df795a73a8d74e983e143fd57441865f3082860efb89a3aa8c4d64c2eb6f0256a8049ccd5479dd77e53ef6638d9c903b29a8ef2b41a076003d9595912500
HEAD_REF master
- PATCHES system-install.patch
+ PATCHES
+ system-install.patch
+ fix-dependency-glm.patch
)
vcpkg_configure_cmake(
diff --git a/ports/globjects/vcpkg.json b/ports/globjects/vcpkg.json
new file mode 100644
index 000000000..8878d2865
--- /dev/null
+++ b/ports/globjects/vcpkg.json
@@ -0,0 +1,11 @@
+{
+ "name": "globjects",
+ "version-string": "1.1.0",
+ "port-version": 4,
+ "description": "C++ library strictly wrapping OpenGL objects",
+ "homepage": "https://github.com/cginternals/globjects",
+ "dependencies": [
+ "glbinding",
+ "glm"
+ ]
+}