diff --git a/recipes/glfw b/recipes/glfw new file mode 100644 index 00000000..9c55ef4c --- /dev/null +++ b/recipes/glfw @@ -0,0 +1,25 @@ +name=glfw +revision=1 +from_source=glfw +imagedeps="build-essential" +hostdeps="xgcc xbinutils cmake pkgconfig" +deps="base libx11 libxext libxi libxrandr libxrender libxt libxtst xorgproto libiconv libxcursor libxxf86vm libxinerama" + +configure() { + cmake \ + -DCMAKE_TOOLCHAIN_FILE=${base_dir}/util/cmake \ + -DCMAKE_INSTALL_PREFIX=${prefix} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=ON \ + -DGLFW_BUILD_WAYLAND=OFF \ + ${source_dir} +} + +build() { + make -j${parallelism} +} + +package() { + DESTDIR=${dest_dir} make install +} diff --git a/source-recipes/glfw b/source-recipes/glfw new file mode 100644 index 00000000..4153fbf0 --- /dev/null +++ b/source-recipes/glfw @@ -0,0 +1,8 @@ +name=glfw +version=3.4 +source_method=tarball +tarball_url="https://github.com/glfw/glfw/archive/refs/tags/${version}.tar.gz" +tarball_sha512=39ad7a4521267fbebc35d2ff0c389a56236ead5fa4bdff33db113bd302f70f5f2869ff4e6db1979512e1542813292dff5a482e94dfce231750f0746c301ae9ed +prepare() { + true +}