aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Cibien <mattias@mattiascibien.net>2016-11-26 21:00:53 +0100
committerMattias Cibien <mattias@mattiascibien.net>2016-11-26 21:00:53 +0100
commit90a0447f9370a67edb0e0e2fab10438e4906dd98 (patch)
treee0afe1ee1cf29dec9faadef7bf320ca1a9019cc1
parent692d95c865f271d0805a60fff63fb319c1985ad3 (diff)
downloadvcpkg-90a0447f9370a67edb0e0e2fab10438e4906dd98.tar.gz
vcpkg-90a0447f9370a67edb0e0e2fab10438e4906dd98.zip
Initial globjects
-rw-r--r--ports/globjects/CONTROL3
-rw-r--r--ports/globjects/portfile.cmake29
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/globjects/CONTROL b/ports/globjects/CONTROL
new file mode 100644
index 000000000..170269191
--- /dev/null
+++ b/ports/globjects/CONTROL
@@ -0,0 +1,3 @@
+Source: globjects
+Version: 1.0.0
+Description: C++ library strictly wrapping OpenGL objects.
diff --git a/ports/globjects/portfile.cmake b/ports/globjects/portfile.cmake
new file mode 100644
index 000000000..f6e7fc9e6
--- /dev/null
+++ b/ports/globjects/portfile.cmake
@@ -0,0 +1,29 @@
+# Common Ambient Variables:
+# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
+# TARGET_TRIPLET is the current triplet (x86-windows, etc)
+# PORT is the current port name (zlib, etc)
+# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
+# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
+#
+
+include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/globjects-1.0.0)
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/cginternals/globjects/archive/v1.0.0.zip"
+ FILENAME "globjects-1.0.0.zip"
+ SHA512 e03ae16786b11891a61f0e2f85b0d98a858d1bad3cf4c45944982d6a753dbaa8b28975dc02153360a5ac0f3be73fe86c91af130cfc0dda7459dd782f16868eeb
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
+ # OPTIONS_RELEASE -DOPTIMIZE=1
+ # OPTIONS_DEBUG -DDEBUGGABLE=1
+)
+
+vcpkg_install_cmake()
+
+# Handle copyright
+#file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/globjects)
+#file(RENAME ${CURRENT_PACKAGES_DIR}/share/globjects/LICENSE ${CURRENT_PACKAGES_DIR}/share/globjects/copyright)