Rebuild with hidapi
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
name: sdl3
|
name: sdl3
|
||||||
description: Cross-platform development library providing low level access to audio, keyboard, mouse, joystick and graphics hardware
|
description: Cross-platform development library providing low level access to audio, keyboard, mouse, joystick and graphics hardware
|
||||||
version: 3.2.22
|
version: 3.2.22
|
||||||
|
revision: 2
|
||||||
url: https://www.libsdl.org/
|
url: https://www.libsdl.org/
|
||||||
license: zlib
|
license: zlib
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["glibc","libglvnd","libx11","libxcursor","libxext","libxrender"]
|
depends: ["glibc","hidapi","libglvnd","libx11","libxcursor","libxext","libxrender"]
|
||||||
optional_depends: ["alsa-lib","libdecor","pipewire","libpulse","sndio","vulkan-loader"]
|
optional_depends: ["alsa-lib","libdecor","pipewire","libpulse","sndio","vulkan-loader"]
|
||||||
make_depends: ["alsa-lib","cmake","libdecor","libxinerama","libxkbcommon","libxrandr","mesa","ninja","libpulse","sndio","vulkan-headers","wayland","wayland-protocols"]
|
make_depends: ["alsa-lib","cmake","libdecor","libxinerama","libxkbcommon","libxrandr","mesa","ninja","libpulse","sndio","vulkan-headers","wayland","wayland-protocols"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,25 +15,21 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
cmake -B build \
|
||||||
cd build
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DSDL_TEST_LIBRARY=OFF \
|
-DSDL_TEST_LIBRARY=OFF \
|
||||||
-DSDL_STATIC=OFF \
|
-DSDL_STATIC=OFF \
|
||||||
-DSDL_RPATH=OFF \
|
-DSDL_RPATH=OFF \
|
||||||
-Wno-dev \
|
-Wno-dev
|
||||||
-G Ninja ..
|
cmake --build build
|
||||||
ninja
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||||
|
|
||||||
DESTDIR="$BPM_OUTPUT" ninja install
|
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/sdl2/LICENSE.txt
|
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/sdl2/LICENSE.txt
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user