name: libfaudio-meta modules: - name: sdl2-32bit sources: - &SDL2_SOURCE type: archive url: https://www.libsdl.org/release/SDL2-2.0.12.tar.gz sha256: 349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863 - 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.10.tar.gz sha256: 5db56e58ca3f8eb6d10f01970f122798ebb366dd1b4d7561f65d05f815cef3b3 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