mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
glfw: add port
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user