]> git.pld-linux.org Git - packages/mplayer.git/commitdiff
- adjusted for live555 with C++20 features
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 5 Mar 2024 19:10:12 +0000 (20:10 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 5 Mar 2024 19:10:12 +0000 (20:10 +0100)
mplayer.spec

index cb7db7b5f1e8b0958340c8abfd407b4c15042a6e..5927187cdb91060c3309656788e362d418e34403 100644 (file)
@@ -21,6 +21,7 @@
 %bcond_without joystick        # joystick support
 %bcond_without lirc            # lirc support
 %bcond_without live            # LIVE555 Streaming Media support
+%bcond_without live_cpp20      # LIVE555 library with C++20 atomic_flag
 %bcond_without mencoder        # mencoder (a/v encoder) compilation
 %bcond_without nemesi          # NeMeSi Streaming Media support
 %bcond_without osd             # osd menu support
@@ -474,6 +475,12 @@ CONFIGADD
 %{__rm} -rf ffmpeg
 %endif
 
+%if %{with live_cpp20}
+%{__sed} -i -e 's/-std=c++98/-std=c++20/' configure
+%else
+%{__sed} -i -e 's/-std=c++98/& -DNO_STD_LIB/' configure
+%endif
+
 %build
 CFLAGS="%{rpmcflags} %{?with_hidden_visibility:-fvisibility=hidden} %{?with_shared:-fvisibility=default -fPIC}"
 CFLAGS="$CFLAGS -I%{_includedir}/xvid%{?with_directfb: -I%{_includedir}/directfb} -DHAVE_GSM_H=1"
@@ -539,7 +546,6 @@ build() {
        %{__disable bs2b libbs2b} \
        %{__disable libdts libdca} \
        %{__disable libdv} \
-       %{__enable_disable live} \
        %{__disable system_dvdcss libdvdcss-internal} \
        %{__disable lzo liblzo} \
        %{__disable system_libmpeg2 libmpeg2-internal} \
@@ -550,7 +556,7 @@ build() {
        %{__disable vorbis libvorbis} \
        %{__enable_disable lirc} \
        --disable-lircc \
-       %{__disable live} \
+       %{__enable_disable live} \
        %{__disable mad} \
        %{__disable mencoder} \
        %{__enable osd menu} \
This page took 0.284051 seconds and 4 git commands to generate.