aboutsummaryrefslogtreecommitdiff
path: root/ports/opengl
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-09-18 20:50:08 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-09-18 20:54:03 -0700
commitccca198c1b1730b0241911cb56dc8e3504958b2a (patch)
treea2dd9b8b087a09afdcecc5cbb3377bed15127eb2 /ports/opengl
downloadvcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.tar.gz
vcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.zip
Initial commit
Diffstat (limited to 'ports/opengl')
-rw-r--r--ports/opengl/CONTROL3
-rw-r--r--ports/opengl/portfile.cmake26
2 files changed, 29 insertions, 0 deletions
diff --git a/ports/opengl/CONTROL b/ports/opengl/CONTROL
new file mode 100644
index 000000000..05546ae5c
--- /dev/null
+++ b/ports/opengl/CONTROL
@@ -0,0 +1,3 @@
+Source: opengl
+Version: 10.0.10240.0
+Description: Open Graphics Library (OpenGL)[3][4][5] is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics. \ No newline at end of file
diff --git a/ports/opengl/portfile.cmake b/ports/opengl/portfile.cmake
new file mode 100644
index 000000000..60986922a
--- /dev/null
+++ b/ports/opengl/portfile.cmake
@@ -0,0 +1,26 @@
+set(OPENGLPATH "C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.10240.0\\um\\${TRIPLET_SYSTEM_ARCH}\\OpenGL32.Lib")
+set(LICENSEPATH "C:\\Program Files (x86)\\Windows Kits\\10\\Licenses\\10.0.10240.0\\sdk_license.rtf")
+set(HEADERSPATH "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\um")
+
+if (NOT EXISTS "${OPENGLPATH}")
+ message(FATAL_ERROR "Cannot find Windows 10.0.10240.0 SDK. File does not exist: ${OPENGLPATH}")
+endif()
+
+file(MAKE_DIRECTORY
+ ${CURRENT_PACKAGES_DIR}/include/gl
+ ${CURRENT_PACKAGES_DIR}/lib
+ ${CURRENT_PACKAGES_DIR}/debug/lib
+ ${CURRENT_PACKAGES_DIR}/share/opengl
+)
+
+file(COPY ${LICENSEPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/include/gl)
+file(COPY
+ "${HEADERSPATH}\\gl\\GL.h"
+ "${HEADERSPATH}\\gl\\GLU.h"
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include
+ )
+file(COPY ${OPENGLPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
+file(COPY ${OPENGLPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
+file(COPY ${LICENSEPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/share/opengl)
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/opengl/copyright "See the accompanying sdk_license.rtf")
+vcpkg_copy_pdbs()