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