aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-10-11 03:28:20 -0700
committerGitHub <noreply@github.com>2016-10-11 03:28:20 -0700
commit35fbe0ad71fdde968c1a365ec787955b9d2c59bc (patch)
tree87a1a1731050a029a65f2b28387e7c07a6a8123c /ports
parent140756c6fb37aa076e1f8fcec510307b78c6227a (diff)
parent75091823ec3fe35b5ccfc30b84fee2b0348720fc (diff)
downloadvcpkg-35fbe0ad71fdde968c1a365ec787955b9d2c59bc.tar.gz
vcpkg-35fbe0ad71fdde968c1a365ec787955b9d2c59bc.zip
Merge pull request #138 from ebraminio/master
Add freeglut
Diffstat (limited to 'ports')
-rw-r--r--ports/freeglut/CONTROL3
-rw-r--r--ports/freeglut/portfile.cmake23
2 files changed, 26 insertions, 0 deletions
diff --git a/ports/freeglut/CONTROL b/ports/freeglut/CONTROL
new file mode 100644
index 000000000..00680a773
--- /dev/null
+++ b/ports/freeglut/CONTROL
@@ -0,0 +1,3 @@
+Source: freeglut
+Version: 3.0.0
+Description: Open source implementation of GLUT with source and binary backwards compatibility. \ No newline at end of file
diff --git a/ports/freeglut/portfile.cmake b/ports/freeglut/portfile.cmake
new file mode 100644
index 000000000..53bde914e
--- /dev/null
+++ b/ports/freeglut/portfile.cmake
@@ -0,0 +1,23 @@
+include(${CMAKE_TRIPLET_FILE})
+include(vcpkg_common_functions)
+vcpkg_download_distfile(ARCHIVE
+ URLS "http://downloads.sourceforge.net/project/freeglut/freeglut/3.0.0/freeglut-3.0.0.tar.gz"
+ FILENAME "freeglut-3.0.0.tar.gz"
+ SHA512 9c45d5b203b26a7ff92331b3e080a48e806c92fbbe7c65d9262dd18c39cd6efdad8a795a80f499a2d23df84b4909dbd7c1bab20d7dd3555d3d88782ce9dd15b0
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/freeglut-3.0.0
+ OPTIONS
+ -DFREEGLUT_BUILD_STATIC_LIBS=OFF
+ -DFREEGLUT_BUILD_DEMOS=OFF
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Handle copyright
+file(COPY ${CURRENT_BUILDTREES_DIR}/src/freeglut-3.0.0/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/freeglut)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/freeglut/COPYING ${CURRENT_PACKAGES_DIR}/share/freeglut/copyright)