aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorras0219 <533828+ras0219@users.noreply.github.com>2020-12-14 11:39:50 -0800
committerGitHub <noreply@github.com>2020-12-14 11:39:50 -0800
commite01668e44db57a179fd5b0b668dea7c41621f689 (patch)
tree171b958c6d8dfc816d198952a8e6f96e8d8ee6d3
parentbaf01dc7c0a4d2c2b5dbbfca1c91492a2898b6d9 (diff)
downloadvcpkg-e01668e44db57a179fd5b0b668dea7c41621f689.tar.gz
vcpkg-e01668e44db57a179fd5b0b668dea7c41621f689.zip
[glbinding] Improve usage information (#15082)
-rw-r--r--ports/glbinding/CONTROL5
-rw-r--r--ports/glbinding/portfile.cmake1
-rw-r--r--ports/glbinding/usage4
-rw-r--r--ports/glbinding/vcpkg.json10
4 files changed, 15 insertions, 5 deletions
diff --git a/ports/glbinding/CONTROL b/ports/glbinding/CONTROL
deleted file mode 100644
index 5bef7210a..000000000
--- a/ports/glbinding/CONTROL
+++ /dev/null
@@ -1,5 +0,0 @@
-Source: glbinding
-Version: 3.1.0-2
-Description: glbinding is an MIT licensed, cross-platform C++ binding for the OpenGL API
-Homepage: https://github.com/cginternals/glbinding
-Build-Depends: egl-registry
diff --git a/ports/glbinding/portfile.cmake b/ports/glbinding/portfile.cmake
index 78484437b..6aa2e4e39 100644
--- a/ports/glbinding/portfile.cmake
+++ b/ports/glbinding/portfile.cmake
@@ -56,3 +56,4 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/KHR)
# Handle copyright
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glbinding/LICENSE ${CURRENT_PACKAGES_DIR}/share/glbinding/copyright)
+configure_file(${CMAKE_CURRENT_LIST_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/glbinding/usage @ONLY)
diff --git a/ports/glbinding/usage b/ports/glbinding/usage
new file mode 100644
index 000000000..010a5c6da
--- /dev/null
+++ b/ports/glbinding/usage
@@ -0,0 +1,4 @@
+The package glbinding:@TARGET_TRIPLET@ provides CMake targets:
+
+ find_package(glbinding CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE glbinding::glbinding glbinding::glbinding-aux)
diff --git a/ports/glbinding/vcpkg.json b/ports/glbinding/vcpkg.json
new file mode 100644
index 000000000..4a1330896
--- /dev/null
+++ b/ports/glbinding/vcpkg.json
@@ -0,0 +1,10 @@
+{
+ "name": "glbinding",
+ "version-string": "3.1.0",
+ "port-version": 3,
+ "description": "glbinding is an MIT licensed, cross-platform C++ binding for the OpenGL API",
+ "homepage": "https://github.com/cginternals/glbinding",
+ "dependencies": [
+ "egl-registry"
+ ]
+}