diff --git a/host-recipes/cmake b/host-recipes/cmake new file mode 100644 index 00000000..06c95a4c --- /dev/null +++ b/host-recipes/cmake @@ -0,0 +1,14 @@ +name=cmake +revision=1 +from_source=cmake +imagedeps="gcc" + +build() { + ${source_dir}/configure --prefix=${prefix} --parallel=${parallelism} + make -j${parallelism} +} + +package() { + DESTDIR="${dest_dir}" make install + echo "include(Platform/UnixPaths)" > ${dest_dir}${prefix}/share/cmake-3.29/Modules/Platform/Astral.cmake +} diff --git a/recipes/sdl2 b/recipes/sdl2 new file mode 100644 index 00000000..59d995af --- /dev/null +++ b/recipes/sdl2 @@ -0,0 +1,53 @@ +name=sdl2 +revision=1 +from_source=sdl2 +imagedeps="meson ninja base-devel" +hostdeps="xgcc xbinutils pkgconfig cmake libstdc++-v3" +deps="mlibc libx11 libxext libxcursor libxinerama libxi libxfixes libxrandr libxrender libxxf86vm" + +build() { + cmake \ + -GNinja \ + -DCMAKE_TOOLCHAIN_FILE=${base_dir}/util/cmake \ + -DCMAKE_INSTALL_PREFIX=${prefix} \ + -DCMAKE_BUILD_TYPE=Release \ + -DSDL_ALTIVEC=OFF \ + -DSDL_DISKAUDIO=OFF \ + -DSDL_DIRECTFB=ON \ + -DSDL_OPENGL=OFF \ + -DSDL_OPENGLES=OFF \ + -DSDL_PTHREADS=ON \ + -DSDL_PTHREADS_SEM=OFF \ + -DSDL_OSS=OFF \ + -DSDL_ALSA=OFF \ + -DSDL_JACK=OFF \ + -DSDL_ESD=OFF \ + -DSDL_PULSEAUDIO=OFF \ + -DSDL_ARTS=OFF \ + -DSDL_NAS=OFF \ + -DSDL_SNDIO=OFF \ + -DSDL_FUSIONSOUND=OFF \ + -DSDL_LIBSAMPLERATE=OFF \ + -DSDL_RPATH=OFF \ + -DSDL_X11=ON \ + -DSDL_WAYLAND=OFF \ + -DSDL_WAYLAND_QT_TOUCH=OFF \ + -DSDL_RPI=OFF \ + -DSDL_COCOA=OFF \ + -DSDL_DIRECTX=OFF \ + -DSDL_WASAPI=OFF \ + -DSDL_RENDER_D3D=OFF \ + -DSDL_VIVANTE=OFF \ + -DSDL_VULKAN=OFF \ + -DSDL_KMSDRM=OFF \ + -DSDL_HIDAPI=OFF \ + -DSDL_SHARED=ON \ + -DSDL_STATIC=OFF \ + ${source_dir} + + ninja -j${parallelism} +} + +package() { + DESTDIR="${dest_dir}" ninja install +} diff --git a/source-recipes/cmake b/source-recipes/cmake new file mode 100644 index 00000000..21c65bfb --- /dev/null +++ b/source-recipes/cmake @@ -0,0 +1,9 @@ +name=cmake +version=3.29.2 +source_method=tarball +tarball_url="https://github.com/Kitware/CMake/releases/download/v${version}/cmake-${version}.tar.gz" +tarball_sha512="0dad9e0e3ad9c1178d337cd3a14e9ce145e011175e9d9fce4961d12b8fe37091f9fdf05f4303cdd846408955b11bac3cfe5064f852833b99e31f5a7b82a9d1eb" + +regenerate() { + true +} diff --git a/source-recipes/sdl2 b/source-recipes/sdl2 new file mode 100644 index 00000000..ac952c38 --- /dev/null +++ b/source-recipes/sdl2 @@ -0,0 +1,8 @@ +name=sdl2 +version=2.30.2 +source_method=tarball +tarball_url="https://github.com/libsdl-org/SDL/archive/refs/tags/release-${version}.tar.gz" +tarball_sha512="915f28c8406df36e6440b7d690c193076c3f886ad1b18c871c70869fe08dbe48d4ec5d2541d36d1b97ab26e1299fef2e3048e641e76ab4b63c687273968b0e5e" +regenerate() { + true +}