Add alsa-lib
This commit is contained in:
parent
6d3ce02bf7
commit
5b6c9e28b3
3 changed files with 65 additions and 2 deletions
|
@ -17,13 +17,20 @@ ffbuild_dockerbuild() {
|
|||
-DSDL_SHARED=OFF
|
||||
-DSDL_STATIC=ON
|
||||
-DSDL_STATIC_PIC=ON
|
||||
-DSDL_TEST=OFF
|
||||
)
|
||||
|
||||
if [[ $TARGET == linux* ]]; then
|
||||
mycmake+=(
|
||||
-DSDL_X11=ON
|
||||
-DSDL_X11_SHARED=OFF
|
||||
-DHAVE_XGENERICEVENT=TRUE
|
||||
-DSDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM=1
|
||||
|
||||
-DSDL_ALSA=ON
|
||||
-DSDL_ALSA_SHARED=OFF
|
||||
-DHAVE_ASOUNDLIB_H=TRUE
|
||||
-DHAVE_LIBASOUND=TRUE
|
||||
)
|
||||
fi
|
||||
|
||||
|
@ -33,9 +40,11 @@ ffbuild_dockerbuild() {
|
|||
ninja install
|
||||
|
||||
if [[ $TARGET == linux* ]]; then
|
||||
sed -ri -e 's/ \-l\/.+?\.a//g' \
|
||||
sed -ri -e 's/\-Wl,\-\-no\-undefined.*//' \
|
||||
-e 's/ \-l\/.+?\.a//g' \
|
||||
-e 's/ \-lasound//g' \
|
||||
"$FFBUILD_PREFIX"/lib/pkgconfig/sdl2.pc
|
||||
echo 'Requires: xxf86vm xscrnsaver xrandr xfixes xi xinerama xcursor' >> "$FFBUILD_PREFIX"/lib/pkgconfig/sdl2.pc
|
||||
echo 'Requires: alsa xxf86vm xscrnsaver xrandr xfixes xi xinerama xcursor' >> "$FFBUILD_PREFIX"/lib/pkgconfig/sdl2.pc
|
||||
elif [[ $TARGET == win* ]]; then
|
||||
sed -ri -e 's/\-Wl,\-\-no\-undefined.*//' \
|
||||
-e 's/ \-mwindows//g' \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue