|
@@ -0,0 +1,20 @@
|
|
|
+package("freeglut")
|
|
|
+
|
|
|
+ set_homepage("http://freeglut.sourceforge.net")
|
|
|
+ set_description("A free-software/open-source alternative to the OpenGL Utility Toolkit (GLUT) library.")
|
|
|
+
|
|
|
+ set_urls("https://github.com/dcnieho/FreeGLUT/archive/FG_$(version).zip",
|
|
|
+ {version = function (version) return (version:gsub("%.", "_")) end})
|
|
|
+ add_versions("3.0.0", "050e09f17630249a7d2787c21691e4b7d7b86957a06b3f3f34fa887b561d8e04")
|
|
|
+
|
|
|
+ if is_plat("linux", "windows") then
|
|
|
+ add_deps("cmake")
|
|
|
+ end
|
|
|
+
|
|
|
+ on_build("linux", "windows", function (package)
|
|
|
+ import("package.builder.cmake").build(package)
|
|
|
+ end)
|
|
|
+
|
|
|
+ on_install("linux", "windows", function (package)
|
|
|
+ import("package.builder.cmake").install(package)
|
|
|
+ end)
|