name: libfaudio-meta modules: - name: sdl2-32bit sources: - &SDL2_SOURCE type: archive url: https://www.libsdl.org/release/SDL2-2.0.10.tar.gz sha256: b4656c13a1f0d0023ae2f4a9cf08ec92fffb464e0f24238337784159b8b91d57 - type: shell commands: - sed -i 's|lib/cmake|lib32/cmake|' CMakeLists.txt - sed -i '/pkg_search_module.*ibus-1.0/d' CMakeLists.txt buildsystem: cmake-ninja config-opts: - -DALSA=ON - -DSDL_DLOPEN=ON - -DJACK=ON - -DJACK_SHARED=ON - -DPULSEAUDIO_SHARED=ON - -DVIDEO_WAYLAND=ON - -DLIB_SUFFIX=32 builddir: true build-options: cflags: -flto cxxflags: -flto env: - CC=gcc -m32 - CXX=g++ -m32 - PKG_CONFIG_PATH=/usr/lib32/pkgconfig cleanup-platform: - "*.la" - "*.a" - "/include" only-arches: - x86_64 - name: sdl2 sources: - *SDL2_SOURCE buildsystem: cmake-ninja config-opts: - -DALSA=ON - -DSDL_DLOPEN=ON - -DJACK_SHARED=ON - -DPULSEAUDIO_SHARED=ON - -DVIDEO_WAYLAND=ON builddir: true build-options: cflags: -flto cxxflags: -flto cleanup-platform: - "*.la" - "*.a" - "/include" - name: libfaudio-platform sources: - &FAUDIO_SOURCE type: archive url: https://github.com/FNA-XNA/FAudio/archive/20.01.tar.gz sha256: c015f7d395cf24b9050135238de38683e5a90378215bc6d5bb89777a9623f0e6 buildsystem: cmake-ninja builddir: true build-options: cflags: -flto cxxflags: -flto cleanup-platform: - "*.la" - "*.a" - "/include" - name: libfaudio-32bit sources: - *FAUDIO_SOURCE - type: shell commands: - mv /usr/lib/lib32 /usr/lib/lib32_ - ln -s /usr/lib32 /usr/lib/lib32 - ln -s /usr/include /usr/lib/include buildsystem: cmake-ninja config-opts: - -DCMAKE_INSTALL_LIBDIR=lib32 builddir: true build-options: cflags: -flto -m32 cxxflags: -flto -m32 env: - PKG_CONFIG_PATH=/usr/lib32/pkgconfig post-install: - rm -v /usr/lib/lib32 /usr/lib/include - mv /usr/lib/lib32_ /usr/lib/lib32 cleanup-platform: - "*.la" - "*.a" - "/include" only-arches: - x86_64