Mon Oct 3 11:27:40 2022 UTC ()
gst-plugins1-bad: Fails with compiler defaulting to c89.


(nia)
diff -r1.42 -r1.43 pkgsrc/multimedia/gst-plugins1-bad/Makefile.common

cvs diff -r1.42 -r1.43 pkgsrc/multimedia/gst-plugins1-bad/Makefile.common (switch to unified diff)

--- pkgsrc/multimedia/gst-plugins1-bad/Makefile.common 2022/07/18 15:40:56 1.42
+++ pkgsrc/multimedia/gst-plugins1-bad/Makefile.common 2022/10/03 11:27:40 1.43
@@ -1,237 +1,238 @@ @@ -1,237 +1,238 @@
1# $NetBSD: Makefile.common,v 1.42 2022/07/18 15:40:56 wiz Exp $ 1# $NetBSD: Makefile.common,v 1.43 2022/10/03 11:27:40 nia Exp $
2 2
3DISTNAME= gst-plugins-bad-1.20.3 3DISTNAME= gst-plugins-bad-1.20.3
4MASTER_SITES= https://gstreamer.freedesktop.org/src/gst-plugins-bad/ 4MASTER_SITES= https://gstreamer.freedesktop.org/src/gst-plugins-bad/
5EXTRACT_SUFX= .tar.xz 5EXTRACT_SUFX= .tar.xz
6 6
7MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= https://gstreamer.freedesktop.org/ 8HOMEPAGE= https://gstreamer.freedesktop.org/
9LICENSE= gnu-gpl-v2 9LICENSE= gnu-gpl-v2
10 10
11USE_LANGUAGES= c c++ 11# "error: 'for' loop initial declarations are only allowed in C99 mode"
 12USE_LANGUAGES= c99 c++
12 13
13USE_TOOLS+= pkg-config 14USE_TOOLS+= pkg-config
14 15
15DISTINFO_FILE= ${.CURDIR}/../../multimedia/gst-plugins1-bad/distinfo 16DISTINFO_FILE= ${.CURDIR}/../../multimedia/gst-plugins1-bad/distinfo
16PATCHDIR= ${.CURDIR}/../../multimedia/gst-plugins1-bad/patches 17PATCHDIR= ${.CURDIR}/../../multimedia/gst-plugins1-bad/patches
17 18
18PKGCONFIG_OVERRIDE= output/pkgconfig/*.pc 19PKGCONFIG_OVERRIDE= output/pkgconfig/*.pc
19PKGCONFIG_OVERRIDE_STAGE= pre-install 20PKGCONFIG_OVERRIDE_STAGE= pre-install
20 21
21PYTHON_VERSIONS_INCOMPATIBLE= 27 22PYTHON_VERSIONS_INCOMPATIBLE= 27
22PYTHON_FOR_BUILD_ONLY= tool 23PYTHON_FOR_BUILD_ONLY= tool
23 24
24# grep '^option' meson_options.txt | grep feature | \ 25# grep '^option' meson_options.txt | grep feature | \
25# sed -e "s/',.*//g" -e "s/option('//g" | \ 26# sed -e "s/',.*//g" -e "s/option('//g" | \
26# xargs printf 'GST_PLUGINS_SET+=\t%s\n' 27# xargs printf 'GST_PLUGINS_SET+=\t%s\n'
27 28
28# unpackaged dependencies: 29# unpackaged dependencies:
29# dssim 30# dssim
30# tinyalsa 31# tinyalsa
31 32
32GST_PLUGINS_SET+= accurip 33GST_PLUGINS_SET+= accurip
33GST_PLUGINS_SET+= adpcmdec 34GST_PLUGINS_SET+= adpcmdec
34GST_PLUGINS_SET+= adpcmenc 35GST_PLUGINS_SET+= adpcmenc
35GST_PLUGINS_SET+= aiff 36GST_PLUGINS_SET+= aiff
36GST_PLUGINS_SET+= asfmux 37GST_PLUGINS_SET+= asfmux
37GST_PLUGINS_SET+= audiobuffersplit 38GST_PLUGINS_SET+= audiobuffersplit
38GST_PLUGINS_SET+= audiofxbad 39GST_PLUGINS_SET+= audiofxbad
39GST_PLUGINS_SET+= audiolatency 40GST_PLUGINS_SET+= audiolatency
40GST_PLUGINS_SET+= audiomixmatrix 41GST_PLUGINS_SET+= audiomixmatrix
41GST_PLUGINS_SET+= audiovisualizers 42GST_PLUGINS_SET+= audiovisualizers
42GST_PLUGINS_SET+= autoconvert 43GST_PLUGINS_SET+= autoconvert
43GST_PLUGINS_SET+= bayer 44GST_PLUGINS_SET+= bayer
44GST_PLUGINS_SET+= camerabin2 45GST_PLUGINS_SET+= camerabin2
45GST_PLUGINS_SET+= codecalpha 46GST_PLUGINS_SET+= codecalpha
46GST_PLUGINS_SET+= coloreffects 47GST_PLUGINS_SET+= coloreffects
47GST_PLUGINS_SET+= debugutils 48GST_PLUGINS_SET+= debugutils
48GST_PLUGINS_SET+= dvbsubenc 49GST_PLUGINS_SET+= dvbsubenc
49GST_PLUGINS_SET+= dvbsuboverlay 50GST_PLUGINS_SET+= dvbsuboverlay
50GST_PLUGINS_SET+= dvdspu 51GST_PLUGINS_SET+= dvdspu
51GST_PLUGINS_SET+= faceoverlay 52GST_PLUGINS_SET+= faceoverlay
52GST_PLUGINS_SET+= festival 53GST_PLUGINS_SET+= festival
53GST_PLUGINS_SET+= fieldanalysis 54GST_PLUGINS_SET+= fieldanalysis
54GST_PLUGINS_SET+= freeverb 55GST_PLUGINS_SET+= freeverb
55GST_PLUGINS_SET+= frei0r 56GST_PLUGINS_SET+= frei0r
56GST_PLUGINS_SET+= gaudieffects 57GST_PLUGINS_SET+= gaudieffects
57GST_PLUGINS_SET+= gdp 58GST_PLUGINS_SET+= gdp
58GST_PLUGINS_SET+= geometrictransform 59GST_PLUGINS_SET+= geometrictransform
59GST_PLUGINS_SET+= id3tag 60GST_PLUGINS_SET+= id3tag
60GST_PLUGINS_SET+= inter 61GST_PLUGINS_SET+= inter
61GST_PLUGINS_SET+= interlace 62GST_PLUGINS_SET+= interlace
62GST_PLUGINS_SET+= ivfparse 63GST_PLUGINS_SET+= ivfparse
63GST_PLUGINS_SET+= ivtc 64GST_PLUGINS_SET+= ivtc
64GST_PLUGINS_SET+= jp2kdecimator 65GST_PLUGINS_SET+= jp2kdecimator
65GST_PLUGINS_SET+= jpegformat 66GST_PLUGINS_SET+= jpegformat
66GST_PLUGINS_SET+= librfb 67GST_PLUGINS_SET+= librfb
67GST_PLUGINS_SET+= midi 68GST_PLUGINS_SET+= midi
68GST_PLUGINS_SET+= mpegdemux 69GST_PLUGINS_SET+= mpegdemux
69GST_PLUGINS_SET+= mpegpsmux 70GST_PLUGINS_SET+= mpegpsmux
70GST_PLUGINS_SET+= mpegtsdemux 71GST_PLUGINS_SET+= mpegtsdemux
71GST_PLUGINS_SET+= mpegtsmux 72GST_PLUGINS_SET+= mpegtsmux
72GST_PLUGINS_SET+= mxf 73GST_PLUGINS_SET+= mxf
73GST_PLUGINS_SET+= netsim 74GST_PLUGINS_SET+= netsim
74GST_PLUGINS_SET+= onvif 75GST_PLUGINS_SET+= onvif
75GST_PLUGINS_SET+= pcapparse 76GST_PLUGINS_SET+= pcapparse
76GST_PLUGINS_SET+= pnm 77GST_PLUGINS_SET+= pnm
77GST_PLUGINS_SET+= proxy 78GST_PLUGINS_SET+= proxy
78GST_PLUGINS_SET+= rawparse 79GST_PLUGINS_SET+= rawparse
79GST_PLUGINS_SET+= removesilence 80GST_PLUGINS_SET+= removesilence
80GST_PLUGINS_SET+= rist 81GST_PLUGINS_SET+= rist
81GST_PLUGINS_SET+= rtmp2 82GST_PLUGINS_SET+= rtmp2
82GST_PLUGINS_SET+= rtp 83GST_PLUGINS_SET+= rtp
83GST_PLUGINS_SET+= sdp 84GST_PLUGINS_SET+= sdp
84GST_PLUGINS_SET+= segmentclip 85GST_PLUGINS_SET+= segmentclip
85GST_PLUGINS_SET+= siren 86GST_PLUGINS_SET+= siren
86GST_PLUGINS_SET+= smooth 87GST_PLUGINS_SET+= smooth
87GST_PLUGINS_SET+= speed 88GST_PLUGINS_SET+= speed
88GST_PLUGINS_SET+= subenc 89GST_PLUGINS_SET+= subenc
89GST_PLUGINS_SET+= switchbin 90GST_PLUGINS_SET+= switchbin
90GST_PLUGINS_SET+= timecode 91GST_PLUGINS_SET+= timecode
91GST_PLUGINS_SET+= videofilters 92GST_PLUGINS_SET+= videofilters
92GST_PLUGINS_SET+= videoframe_audiolevel 93GST_PLUGINS_SET+= videoframe_audiolevel
93GST_PLUGINS_SET+= videoparsers 94GST_PLUGINS_SET+= videoparsers
94GST_PLUGINS_SET+= videosignal 95GST_PLUGINS_SET+= videosignal
95GST_PLUGINS_SET+= vmnc 96GST_PLUGINS_SET+= vmnc
96GST_PLUGINS_SET+= y4m 97GST_PLUGINS_SET+= y4m
97GST_PLUGINS_SET+= opencv 98GST_PLUGINS_SET+= opencv
98GST_PLUGINS_SET+= wayland 99GST_PLUGINS_SET+= wayland
99GST_PLUGINS_SET+= x11 100GST_PLUGINS_SET+= x11
100GST_PLUGINS_SET+= aes 101GST_PLUGINS_SET+= aes
101GST_PLUGINS_SET+= aom 102GST_PLUGINS_SET+= aom
102GST_PLUGINS_SET+= avtp 103GST_PLUGINS_SET+= avtp
103GST_PLUGINS_SET+= androidmedia 104GST_PLUGINS_SET+= androidmedia
104GST_PLUGINS_SET+= applemedia 105GST_PLUGINS_SET+= applemedia
105GST_PLUGINS_SET+= asio 106GST_PLUGINS_SET+= asio
106GST_PLUGINS_SET+= assrender 107GST_PLUGINS_SET+= assrender
107GST_PLUGINS_SET+= bluez 108GST_PLUGINS_SET+= bluez
108GST_PLUGINS_SET+= bs2b 109GST_PLUGINS_SET+= bs2b
109GST_PLUGINS_SET+= bz2 110GST_PLUGINS_SET+= bz2
110GST_PLUGINS_SET+= chromaprint 111GST_PLUGINS_SET+= chromaprint
111GST_PLUGINS_SET+= closedcaption 112GST_PLUGINS_SET+= closedcaption
112GST_PLUGINS_SET+= colormanagement 113GST_PLUGINS_SET+= colormanagement
113GST_PLUGINS_SET+= curl 114GST_PLUGINS_SET+= curl
114GST_PLUGINS_SET+= curl-ssh2 115GST_PLUGINS_SET+= curl-ssh2
115GST_PLUGINS_SET+= d3dvideosink 116GST_PLUGINS_SET+= d3dvideosink
116GST_PLUGINS_SET+= d3d11 117GST_PLUGINS_SET+= d3d11
117GST_PLUGINS_SET+= dash 118GST_PLUGINS_SET+= dash
118GST_PLUGINS_SET+= dc1394 119GST_PLUGINS_SET+= dc1394
119GST_PLUGINS_SET+= decklink 120GST_PLUGINS_SET+= decklink
120GST_PLUGINS_SET+= directfb 121GST_PLUGINS_SET+= directfb
121GST_PLUGINS_SET+= directsound 122GST_PLUGINS_SET+= directsound
122GST_PLUGINS_SET+= dtls 123GST_PLUGINS_SET+= dtls
123GST_PLUGINS_SET+= dts 124GST_PLUGINS_SET+= dts
124GST_PLUGINS_SET+= dvb 125GST_PLUGINS_SET+= dvb
125GST_PLUGINS_SET+= faac 126GST_PLUGINS_SET+= faac
126GST_PLUGINS_SET+= faad 127GST_PLUGINS_SET+= faad
127GST_PLUGINS_SET+= fbdev 128GST_PLUGINS_SET+= fbdev
128GST_PLUGINS_SET+= fdkaac 129GST_PLUGINS_SET+= fdkaac
129GST_PLUGINS_SET+= flite 130GST_PLUGINS_SET+= flite
130GST_PLUGINS_SET+= fluidsynth 131GST_PLUGINS_SET+= fluidsynth
131GST_PLUGINS_SET+= gl 132GST_PLUGINS_SET+= gl
132GST_PLUGINS_SET+= gme 133GST_PLUGINS_SET+= gme
133GST_PLUGINS_SET+= gs 134GST_PLUGINS_SET+= gs
134GST_PLUGINS_SET+= gsm 135GST_PLUGINS_SET+= gsm
135GST_PLUGINS_SET+= ipcpipeline 136GST_PLUGINS_SET+= ipcpipeline
136GST_PLUGINS_SET+= iqa 137GST_PLUGINS_SET+= iqa
137GST_PLUGINS_SET+= kate 138GST_PLUGINS_SET+= kate
138GST_PLUGINS_SET+= kms 139GST_PLUGINS_SET+= kms
139GST_PLUGINS_SET+= ladspa 140GST_PLUGINS_SET+= ladspa
140GST_PLUGINS_SET+= ldac 141GST_PLUGINS_SET+= ldac
141GST_PLUGINS_SET+= libde265 142GST_PLUGINS_SET+= libde265
142GST_PLUGINS_SET+= openaptx 143GST_PLUGINS_SET+= openaptx
143GST_PLUGINS_SET+= lv2 144GST_PLUGINS_SET+= lv2
144GST_PLUGINS_SET+= mediafoundation 145GST_PLUGINS_SET+= mediafoundation
145GST_PLUGINS_SET+= microdns 146GST_PLUGINS_SET+= microdns
146GST_PLUGINS_SET+= modplug 147GST_PLUGINS_SET+= modplug
147GST_PLUGINS_SET+= mpeg2enc 148GST_PLUGINS_SET+= mpeg2enc
148GST_PLUGINS_SET+= mplex 149GST_PLUGINS_SET+= mplex
149GST_PLUGINS_SET+= msdk 150GST_PLUGINS_SET+= msdk
150GST_PLUGINS_SET+= musepack 151GST_PLUGINS_SET+= musepack
151GST_PLUGINS_SET+= neon 152GST_PLUGINS_SET+= neon
152GST_PLUGINS_SET+= nvcodec 153GST_PLUGINS_SET+= nvcodec
153GST_PLUGINS_SET+= onnx 154GST_PLUGINS_SET+= onnx
154GST_PLUGINS_SET+= openal 155GST_PLUGINS_SET+= openal
155GST_PLUGINS_SET+= openexr 156GST_PLUGINS_SET+= openexr
156GST_PLUGINS_SET+= openh264 157GST_PLUGINS_SET+= openh264
157GST_PLUGINS_SET+= openjpeg 158GST_PLUGINS_SET+= openjpeg
158GST_PLUGINS_SET+= openmpt 159GST_PLUGINS_SET+= openmpt
159GST_PLUGINS_SET+= openni2 160GST_PLUGINS_SET+= openni2
160GST_PLUGINS_SET+= opensles 161GST_PLUGINS_SET+= opensles
161GST_PLUGINS_SET+= opus 162GST_PLUGINS_SET+= opus
162GST_PLUGINS_SET+= qroverlay 163GST_PLUGINS_SET+= qroverlay
163GST_PLUGINS_SET+= resindvd 164GST_PLUGINS_SET+= resindvd
164GST_PLUGINS_SET+= rsvg 165GST_PLUGINS_SET+= rsvg
165GST_PLUGINS_SET+= rtmp 166GST_PLUGINS_SET+= rtmp
166GST_PLUGINS_SET+= sbc 167GST_PLUGINS_SET+= sbc
167GST_PLUGINS_SET+= sctp 168GST_PLUGINS_SET+= sctp
168GST_PLUGINS_SET+= shm 169GST_PLUGINS_SET+= shm
169GST_PLUGINS_SET+= smoothstreaming 170GST_PLUGINS_SET+= smoothstreaming
170GST_PLUGINS_SET+= sndfile 171GST_PLUGINS_SET+= sndfile
171GST_PLUGINS_SET+= soundtouch 172GST_PLUGINS_SET+= soundtouch
172GST_PLUGINS_SET+= spandsp 173GST_PLUGINS_SET+= spandsp
173GST_PLUGINS_SET+= srt 174GST_PLUGINS_SET+= srt
174GST_PLUGINS_SET+= srtp 175GST_PLUGINS_SET+= srtp
175GST_PLUGINS_SET+= svthevcenc 176GST_PLUGINS_SET+= svthevcenc
176GST_PLUGINS_SET+= teletext 177GST_PLUGINS_SET+= teletext
177GST_PLUGINS_SET+= tinyalsa 178GST_PLUGINS_SET+= tinyalsa
178GST_PLUGINS_SET+= transcode 179GST_PLUGINS_SET+= transcode
179GST_PLUGINS_SET+= ttml 180GST_PLUGINS_SET+= ttml
180GST_PLUGINS_SET+= uvch264 181GST_PLUGINS_SET+= uvch264
181GST_PLUGINS_SET+= va 182GST_PLUGINS_SET+= va
182GST_PLUGINS_SET+= voaacenc 183GST_PLUGINS_SET+= voaacenc
183GST_PLUGINS_SET+= voamrwbenc 184GST_PLUGINS_SET+= voamrwbenc
184GST_PLUGINS_SET+= vulkan 185GST_PLUGINS_SET+= vulkan
185GST_PLUGINS_SET+= wasapi 186GST_PLUGINS_SET+= wasapi
186GST_PLUGINS_SET+= wasapi2 187GST_PLUGINS_SET+= wasapi2
187GST_PLUGINS_SET+= webp 188GST_PLUGINS_SET+= webp
188GST_PLUGINS_SET+= webrtc 189GST_PLUGINS_SET+= webrtc
189GST_PLUGINS_SET+= webrtcdsp 190GST_PLUGINS_SET+= webrtcdsp
190GST_PLUGINS_SET+= wildmidi 191GST_PLUGINS_SET+= wildmidi
191GST_PLUGINS_SET+= winks 192GST_PLUGINS_SET+= winks
192GST_PLUGINS_SET+= winscreencap 193GST_PLUGINS_SET+= winscreencap
193GST_PLUGINS_SET+= x265 194GST_PLUGINS_SET+= x265
194GST_PLUGINS_SET+= zbar 195GST_PLUGINS_SET+= zbar
195GST_PLUGINS_SET+= zxing 196GST_PLUGINS_SET+= zxing
196GST_PLUGINS_SET+= wpe 197GST_PLUGINS_SET+= wpe
197GST_PLUGINS_SET+= magicleap 198GST_PLUGINS_SET+= magicleap
198GST_PLUGINS_SET+= v4l2codecs 199GST_PLUGINS_SET+= v4l2codecs
199GST_PLUGINS_SET+= isac 200GST_PLUGINS_SET+= isac
200GST_PLUGINS_SET+= hls 201GST_PLUGINS_SET+= hls
201GST_PLUGINS_SET+= sctp-internal-usrsctp 202GST_PLUGINS_SET+= sctp-internal-usrsctp
202GST_PLUGINS_SET+= examples 203GST_PLUGINS_SET+= examples
203GST_PLUGINS_SET+= tests 204GST_PLUGINS_SET+= tests
204GST_PLUGINS_SET+= introspection 205GST_PLUGINS_SET+= introspection
205GST_PLUGINS_SET+= nls 206GST_PLUGINS_SET+= nls
206GST_PLUGINS_SET+= orc 207GST_PLUGINS_SET+= orc
207GST_PLUGINS_SET+= doc 208GST_PLUGINS_SET+= doc
208GST_PLUGINS_SET+= gpl 209GST_PLUGINS_SET+= gpl
209 210
210.for i in ${GST_PLUGINS_SET} 211.for i in ${GST_PLUGINS_SET}
211. if !empty(GST_PLUGINS:M${i}) 212. if !empty(GST_PLUGINS:M${i})
212MESON_ARGS+= -D${i}=enabled 213MESON_ARGS+= -D${i}=enabled
213. else 214. else
214MESON_ARGS+= -D${i}=disabled 215MESON_ARGS+= -D${i}=disabled
215. endif 216. endif
216.endfor 217.endfor
217 218
218.if defined(GST_EXT_BUILD) 219.if defined(GST_EXT_BUILD)
219GST_EXT_BASEDIR?= ext 220GST_EXT_BASEDIR?= ext
220 221
221pre-configure: fix-subdirs 222pre-configure: fix-subdirs
222 223
223fix-subdirs: 224fix-subdirs:
224 ${AWK} -f ${.CURDIR}/../../multimedia/gst-plugins1-base/files/only-build-extensions.awk \ 225 ${AWK} -f ${.CURDIR}/../../multimedia/gst-plugins1-base/files/only-build-extensions.awk \
225 -v basedir=${GST_EXT_BASEDIR} \ 226 -v basedir=${GST_EXT_BASEDIR} \
226 ${WRKSRC}/meson.build > ${WRKSRC}/meson.build.new 227 ${WRKSRC}/meson.build > ${WRKSRC}/meson.build.new
227 ${MV} ${WRKSRC}/meson.build.new ${WRKSRC}/meson.build 228 ${MV} ${WRKSRC}/meson.build.new ${WRKSRC}/meson.build
228 229
229post-install: 230post-install:
230 ${RM} -f ${DESTDIR}${PREFIX}/lib/pkgconfig/gstreamer-plugins-bad-1.0.pc 231 ${RM} -f ${DESTDIR}${PREFIX}/lib/pkgconfig/gstreamer-plugins-bad-1.0.pc
231.endif 232.endif
232 233
233.include "../../devel/meson/build.mk" 234.include "../../devel/meson/build.mk"
234.include "../../lang/python/tool.mk" 235.include "../../lang/python/tool.mk"
235.include "../../multimedia/gst-plugins1-base/buildlink3.mk" 236.include "../../multimedia/gst-plugins1-base/buildlink3.mk"
236BUILDLINK_API_DEPENDS.gstreamer1+= gstreamer1>=1.20.0 237BUILDLINK_API_DEPENDS.gstreamer1+= gstreamer1>=1.20.0
237.include "../../multimedia/gstreamer1/buildlink3.mk" 238.include "../../multimedia/gstreamer1/buildlink3.mk"