add freeglut

pull/3/head
ruki 7 years ago
parent 57b0d98b43
commit caa958e732
  1. 20
      packages/f/freeglut/xmake.lua

@ -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)
Loading…
Cancel
Save