1 # to see the make rules:
10 # to add a new library:
12 # add PKG_3RD(pkg,<yes/no/auto>, <ver_basename>, <lib_paths>, <inc_paths>)
13 # add CHECK_LIB(pkg, <syslib>, <entry_pt>, [opt libs]) if may be in system
14 # add CHECK_HEADERS(pkg, <title>, <entry_pt>) to check for devel headers
15 # add CHECK_WANT(<want>, <title>, [ checks ]) around tests if conditional
16 # see openexr check for example if c++ lib
17 # add PKG_PROVIDE(pkg,<cond>) to instance pkg if probe succeeds
18 # add to exec > global_config if additional environment needed
20 # add pkg.<data> (pkg.x = .flags, .vars, .params)
21 # add $(call rules,$(call std-build,<name>,<dep>...))
22 # add deps to other call rules if they require the new library
23 # add config enables if other libraries use the new library
24 # add pc_<pkg>=<pkgcfg names> if needed for system build
27 TOPDIR ?= $(CURDIR)/..
28 include $(TOPDIR)/global_config
29 -include $(TOPDIR)/cin_config
30 BLD := $(THIRDPARTY)/build
32 ifneq ($(WANT_CIN_3RDPARTY),no)
34 # package build flags, if needed
35 # need frame pointer for debugs and helps with profiling
36 # NOTE: the trailing blank is MANDITORY or the builds fail
37 # due to bugs in the build scripts from auto*
38 CFLAGS_ ?= -g -O2 -fno-omit-frame-pointer
40 LDFLAGS += $(LDFLAGS_)
41 CXXFLAGS += $(CXXFLAGS_)
43 pkg-source=$(BLD)/$(1).source
44 pkg-config=$(BLD)/$(1).configure
45 pkg-built=$(BLD)/$(1).built
47 ext=$(lastword $(subst ., ,$(1)))
48 tarball=$(if $($(1).git),$(1).git,$(lastword $(sort $(wildcard src/$(1)*.tar.*))))
49 unpack=$(call unpack_$(call ext,$(1)),$(1))
50 unpack_git=git clone --depth 1 $($(1)) $(1)
51 unpack_gz=tar -xzf $(1)
52 unpack_bz2=tar -xjf $(1)
53 unpack_xz=tar -xJf $(1)
54 bld_depends=$(if $(ver_$(1)),$(call pkg-built,$(1)))
55 bld_path=$(ver_$(1))/$(2)
56 if_pkg=$(if $(ver_$(1)),$(2),$(3))
57 if_npkg=$(if $(ver_$(1)),,$(2))
58 if_shr=$(if $(filter $(1),$(shared_pkgs)),$(2),$(3))
59 pkg_conf=$(call if_shr,$(1),$(foreach p,$(pc_$(1)), $(shell pkg-config 2> /dev/null $(2) $(p))))
60 inc_path=$(call if_pkg,$(1),$(inc_$(1)), $(call pkg_conf,$(1),--cflags))
61 ld_path=$(call if_pkg,$(1),-L$(call bld_path,$(1),$(2)) $(lib_$(1)))
62 if_ena=$(if $(or $(ver_$(1)),$(filter $(1),$(shared_pkgs))),$(2))
63 if_want=$(if $(filter x$(WANT_$(1)),xyes),$(2),$(3))
64 sysincs:=usr/include usr/local/include
65 syslibs:=usr/lib usr/lib32 usr/lib64 lib lib32 lib64 usr/local/lib usr/local/lib32 usr/local/lib64
66 pkg_incl=$(lastword $(wildcard $(foreach f,$(sysincs), $(call bld_path,$(1),$(f)))))
67 pkg_libs=$(lastword $(wildcard $(foreach f,$(syslibs), $(call bld_path,$(1),$(f)))))
69 #$(eval $(call std-build,pkg,deps...))
70 #$(pkg.cflags) added as CFLAGS+=$(cflags) to pkg.vars
71 #$(pkg.cppflags) added as CPPFLAGS+=$(cppflags) to pkg.vars
72 #$(pkg.cfg_vars) prepended to configure
73 #$(pkg.cfg_params) appended to configure
74 #$(pkg.mak_vars) prepended to make
75 #$(pkg.mak_params) appended to make
79 .PHONY: $(1) $(1)-configure $(1)-src $(1)-clean
80 $(1): $(call pkg-built,$(1))
81 $(1)-configure: $(call pkg-config,$(1))
82 $(1)-src: $(call pkg-source,$(1))
84 rm -rf $(1)* $(BLD)/$(1).*
86 $(call pkg-source,$(1)):
87 $(call unpack,$(call tarball,$(1))) \
88 $(foreach pch,$(sort $(wildcard src/$(notdir $(ver_$(1))).patch*)),
89 patch -d $(1)* -p1 < $(pch))
92 $(call pkg-config,$(1)): $(call pkg-source,$(1)) $(foreach dep,$(2),$(call bld_depends,$(dep)))
93 @echo "CONFIGURING $(1)"
95 $($(1).cfg_vars) $(CFG_VARS) ./configure $($(1).cfg_params) $(CFG_PARAMS)
98 $(call pkg-built,$(1)): $(call pkg-config,$(1))
99 +$($(1).mak_vars) $(MAK_VARS) $(MAKE) -C $(1)* $($(1).mak_params) $(MAK_PARAMS)
104 TARGETS := $(static_blds)
115 pc_libsvtav1=SvtAv1Enc
117 pc_libwebp=libwebp libwebpmux
119 pc_openjpeg=libopenjp2
120 pc_libvorbis=vorbis vorbisenc
126 encore.cfg_vars= true ||
127 esound.cfg_vars:= AUDIOFILE_CFLAGS="$(call inc_path,audiofile) -laudiofile"
128 esound.cfg_vars+= AUDIOFILE_LIBS="$(call ld_path,audiofile,libaudiofile/.libs)"
129 esound.cfg_params= --enable-shared=no --with-pic
130 esound.mak_vars+= CFLAGS=""
131 esound.ldflags=" -lm -lstdc++"
132 fftw.cfg_params= --disable-fortran --enable-shared=no
133 ffmpeg.cfg_vars?= PKG_CONFIG_PATH="$(call bld_path,libwebp)/usr/local/lib/pkgconfig"
135 --enable-pthreads --disable-avdevice --enable-gpl --disable-ffplay \
137 $(call if_want,VAAPI,--enable-vaapi,--disable-vaapi) \
138 $(call if_want,VDPAU,--enable-vdpau,--disable-vdpau) \
139 $(call if_want,NV, --enable-nvenc --enable-nvdec --enable-ffnvcodec) \
140 $(call if_ena,twolame,--enable-libtwolame) \
141 $(call if_ena,openjpeg,--enable-libopenjpeg) \
142 $(call if_ena,lame,--enable-libmp3lame) \
143 $(call if_ena,libaom,--enable-libaom) \
144 $(call if_ena,libsvtav1,--enable-libsvtav1) \
145 $(call if_ena,dav1d,--enable-libdav1d) \
146 $(call if_ena,libwebp,--enable-libwebp) \
147 $(call if_ena,opus,--enable-libopus) \
148 $(call if_ena,libvorbis,--enable-libvorbis) \
149 $(call if_ena,libtheora,--enable-libtheora) \
150 $(call if_ena,libvpx,--enable-libvpx) \
151 $(call if_ena,x264,--enable-libx264) \
152 $(call if_ena,x265,--enable-libx265) \
153 --extra-cflags="-Wno-attributes \
154 $(call if_want,NV,$(inc_ffnvcodec)) \
155 $(call inc_path,twolame) \
156 $(call inc_path,lame) \
157 $(call inc_path,libaom) \
158 $(call inc_path,libsvtav1) \
159 $(call inc_path,dav1d) \
160 $(call inc_path,libwebp) \
161 $(call inc_path,openjpeg) \
162 $(call inc_path,libogg) \
163 $(call inc_path,opus) \
164 $(call inc_path,libvorbis) \
165 $(call inc_path,libtheora) \
166 $(call inc_path,libvpx) \
167 $(call inc_path,x264) \
168 $(call inc_path,x265)" \
169 --extra-cxxflags="-D__STDC_CONSTANT_MACROS" \
171 --extra-libs="-Wl,--start-group \
172 $(call ld_path,twolame,libtwolame/.libs) \
173 $(call ld_path,lame,libmp3lame/.libs) \
174 $(call ld_path,libaom,usr/local/lib) \
175 $(call ld_path,libsvtav1,usr/local/lib) \
176 $(call ld_path,dav1d,usr/local/lib) \
177 $(call ld_path,libwebp,usr/local/lib) \
178 $(call ld_path,openjpeg,bin) \
179 $(call ld_path,opus,.libs) \
180 $(call ld_path,libogg,lib/.libs) \
181 $(call ld_path,libvorbis,lib/.libs) \
182 $(call ld_path,libtheora,lib/.libs) \
183 $(call ld_path,libvpx) \
184 $(call ld_path,x264) \
185 $(call ld_path,x265) \
187 -Wl,--end-group -lm -lstdc++ -pthread \
188 $(EXTRA_LIBS)" $(FFMPEG_EXTRA_CFG) \
190 #cmake_config=echo "exec cmake \$$$$@ $(1)" > ./configure; chmod +x ./configure;
191 cmake_config=echo 'cmake "$$$$@" "$(1)"' > ./configure; chmod +x ./configure;
192 libbthread.cfg_vars?= echo "exec true" > ./configure; chmod +x ./configure;
193 a52dec.mak_params?= ; cd $(call bld_path,a52dec,include); ln -sf . a52dec
194 a52dec.cflags?= "$(call inc_path,djbfft)"
195 a52dec.ldflags?= "$(call ld_path,djbfft)"
196 a52dec.cfg_vars?= CFLAGS+=" -U__FreeBSD__ $(call inc_path,djbfft)" LIBS+=" $(call ld_path,djbfft)"; autoreconf -ifv && automake -caf;
197 a52dec.cfg_params?=--enable-djbfft --disable-oss
198 djbfft.cfg_vars?=echo "$(call bld_path,djbfft)" > conf-home; \
199 (CFLAGS="$(CFLAGS) -std=gnu89"; $(CFG_VARS)$(if $(CFG_VARS),; )echo "$(CC) $$$$CFLAGS") > conf-cc; \
200 echo "exec true" > ./configure; chmod +x ./configure;
201 djbfft.mak_params?=; cd $(call bld_path,djbfft); ln -sf djbfft.a libdjbfft.a
202 audiofile.cfg_params?=--enable-shared=no --disable-doxygen-docs --enable-debug=no --enable-examples=no
203 audiofile.mak_params?=LIBS="-lm -lstdc++"
204 flac.cfg_vars?= CFLAGS+=" -O3 -funroll-loops " CPPFLAGS+=" -DNDEBUG " CXXFLAGS+=" -O2 "
205 flac.cfg_params?= --enable-shared=no --disable-doxygen-docs
206 flac.cflags?="$(call inc_path,libogg) $(call ld_path,libogg,src/.libs)"
207 ffnvcodec.cfg_vars=echo "exec true" > ./configure; chmod +x ./configure;
208 giflib.cfg_vars=echo "exec true" > ./configure; chmod +x ./configure;
209 lame.cfg_vars?= CFLAGS+=" -O"
210 lame.cfg_params?=--enable-shared=no
211 lame.mak_params?= ; cd $(call bld_path,lame,include); ln -sf . lame
212 libaom.cfg_vars?= mkdir aom.build && cd aom.build && $(call cmake_config,..)
213 libaom.cfg_params?= -DENABLE_TESTS=no -DCMAKE_BUILD_TYPE=Release -DENABLE_DOCS=no -DENABLE_SHARED=no -DCMAKE_INSTALL_LIBDIR=lib \
214 -DENABLE_EXAMPLES=no -DCMAKE_INSTALL_PREFIX=$(call bld_path,libaom)/usr/local
215 libaom.mak_params?= ; $(MAKE) -C libaom*/aom.build install
216 libsvtav1.cfg_vars?= mkdir libsvtav1.build && cd libsvtav1.build && $(call cmake_config,..)
217 libsvtav1.cfg_params?= -DENABLE_TESTS=no -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=no -DENABLE_DOCS=no -DENABLE_SHARED=no -DCMAKE_INSTALL_LIBDIR=lib \
218 -DENABLE_EXAMPLES=no -DCMAKE_INSTALL_PREFIX=$(call bld_path,libsvtav1)/usr/local
219 libsvtav1.mak_params?= ; $(MAKE) -C libsvtav1*/libsvtav1.build install
220 dav1d.cfg_vars?=echo "echo dav1d custom make" >> configure; chmod +x ./configure;
221 dav1d.mak_params?=; $(MAKE) -C dav1d* install DESTDIR="$(call bld_path,dav1d)"
222 libwebp.cfg_vars?= ./autogen.sh;
223 libwebp.cfg_params?= --prefix=$(call bld_path,libwebp)usr/local --enable-static --disable-shared --disable-libwebpdemux --disable-libwebpmux; \
225 mjpegtools.cflags?="$(call inc_path,libjpeg) $(call ld_path,libjpeg,build)"
226 mjpegtools.cfg_vars?= ./autogen.sh; export CXXFLAGS+="-std=c++11";
227 mjpegtools.cfg_params?= --enable-shared=no --without-libquicktime --without-libdv \
228 --without-libpng --without-dga --without-gtk --without-libsdl --without-sdlgfx
229 mjpegtools.mak_params?= all
230 ladspa.cfg_vars?= CFLAGS+=' -Dinline="" '; autoreconf -ifv && automake -caf;
231 ladspa.mak_params?=; $(MAKE) -C ladspa* install DESTDIR=$(call bld_path,ladspa)
232 libavc1394.cfg_vars?= PKG_CONFIG_PATH="$(call bld_path,libraw1394)";autoreconf -ifv -I m4 && automake -caf;
233 libavc1394.cflags?="$(call inc_path,libraw1394)"
234 libavc1394.ldflags?="$(call ld_path,libraw1394,src/.libs)"
235 libavc1394.cfg_params?= PKG_CONFIG_PATH="$(call bld_path,libraw1394)" --enable-shared=no
236 libavc1394.mak_params?=; cd $(call bld_path,libavc1394); ln -sf ../librom1394/rom1394.h libavc1394/.
237 libdv.cfg_vars?= autoreconf -ifv -I m4 && automake -caf;
238 libdv.cfg_params?= --disable-gtk --enable-shared=no
239 libiec61883.cfg_vars?=PKG_CONFIG_PATH=$(call bld_path,libraw1394); autoreconf -ifv && automake -caf;
240 libiec61883.cflags?="$(call inc_path,libraw1394)"
241 libiec61883.ldflags?="$(call ld_path,libraw1394,src/.libs)"
242 libiec61883.cfg_params?= PKG_CONFIG_PATH="$(call bld_path,libraw1394)" --enable-shared=no
243 libiec61883.mak_params?=; cd $(call bld_path,libiec61883,src); ln -sf . libiec61883
244 libjpeg.cfg_vars?= mkdir build && cd build && $(call cmake_config,..)
245 libjpeg.cfg_params?= -DENABLE_SHARED=no -DCMAKE_INSTALL_LIBDIR=lib
246 libjpeg.mak_params?= -C build all install DESTDIR=$(call bld_path,libjpeg)
247 libogg.cfg_vars?= autoreconf -ifv -I m4 && automake -caf;
248 libogg.cfg_params?= --enable-shared=no
249 libraw1394.cfg_params?= --enable-shared=no; ln -sf src libraw1394
250 libtheora.cfg_vars?=PKG_CONFIG_PATH=$(call bld_path,libogg):$(call bld_path,libvorbis); autoreconf -ifv -I m4 && automake -caf;
251 libiec61883.cflags?="$(call inc_path,libraw1394)"
252 libtheora.cflags?="$(call inc_path,libogg) $(call inc_path,libvorbis)"
253 libtheora.ldflags?="$(call ld_path,libvorbis,lib/.libs) $(call ld_path,libogg,src/.libs)"
254 libtheora.cfg_params?= --disable-examples --disable-spec --enable-shared=no
255 libuuid.cfg_vars?= autoreconf -ifv -I m4 && automake -caf;
256 libuuid.cfg_params?=--enable-shared=no
257 libvorbis.cfg_params?= --disable-oggtest --enable-shared=no
258 openjpeg.cfg_params?= -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_CODEC:BOOL=OFF
259 openjpeg.cfg_vars?=$(call cmake_config,.)
260 openjpeg.mak_params?= ; cd $(call bld_path,openjpeg,src/lib/openjp2); ln -sf . openjpeg-2.1
261 opencv.cfg_vars?=$(call cmake_config,.)
262 opencv.cfg_params?= -DBUILD_SHARED_LIBS:BOOL=OFF
263 openexr.cfg_vars?=true; \#
264 openexr.mak_vars?=true; \#
265 opus.cfg_params?= --disable-extra-programs
266 speech_tools.mak_params?=-j1
267 tiff.ldflags?="$(call ld_path,libjpeg,build)"
268 tiff.cflags?="$(call lnc_path,libjpeg)"
269 tiff.cfg_vars+=LIBS+=" -lpthread"; autoreconf -ifv -I m4 && automake -caf;
270 tiff.cfg_params+= --disable-libdeflate --disable-lerc --enable-shared=no --disable-zstd $(call if_pkg,libwebp,\
271 --with-webp-include-dir=$(call pkg_incl,libwebp)\
272 --with-webp-lib-dir=$(call pkg_libs,libwebp))\
273 $(call if_npkg,libwebp,--disable-webp)
274 twolame.cfg_params?=--enable-shared=no
275 x264.cfg_params?= --enable-static --enable-pic
276 x265.cfg_vars?=$(call cmake_config,source)
277 x265.cfg_params?= -DENABLE_SHARED=no -DENABLE_CLI=no
278 libvpx.cfg_params?= --enable-pic --disable-avx512 --enable-vp9-highbitdepth --disable-examples --disable-unit_tests
279 libdpx.cfg_vars?= libtoolize; aclocal; autoconf; automake -a;
280 libsndfile.cfg_params+= --disable-shared --enable-static --disable-sqlite --disable-mpeg
283 pkg_cfg=$(call bld_path,$(1),usr/local/lib/pkgconfig):
284 LV2_PKGCFG:=$(subst : ,:,$(foreach p,lv2 serd sord sratom lilv suil,$(call pkg_cfg,$(p))))
288 $(1).cfg_vars+=./waf --version; find .waf* -type f -name "*.py" | \
289 while read f; do sed -e '/StopIter/d' -i "$(DS)f"; done; \
290 echo 'exec ./waf configure "$(DS)@"' > ./configure; chmod +x \
291 ./configure; PKG_CONFIG_PATH=$(LV2_PKGCFG):$(PKG_CONFIG_PATH) LD_LIBRARY_PATH=$(LV2_LIBPATH)
293 CFLAGS="-I$(call bld_path,lv2) $(foreach f,$(2), $(call inc_path,$(f))) -fPIC -std=c99"\
294 LDFLAGS="-lm `pkg-config --libs x11` $(foreach f,$(2), $(call ld_path,$(f),usr/local/lib)) "
295 $(1).mak_vars=(echo "all:"; echo " ./waf -v build") > $(call bld_path,$(1),Makefile);
296 $(1).mak_params+=; ( cd $(1)*; ./waf install --destdir=$(call bld_path,$(1)) )
299 SYS_LIB:=$(notdir $(lastword $(wildcard /usr/lib /usr/lib32 /usr/lib64)))
300 SYS_LV2:=$(lastword $(wildcard /usr/$(SYS_LIB)/lv2 /usr/local/$(SYS_LIB)/lv2))
301 $(if $(SYS_LV2),,$(eval SYS_LV2:=/usr/$(SYS_LIB)/lv2))
302 lv2.cfg_params?= --lv2dir=$(SYS_LV2)
303 SYS_LV2_PATH:=/usr/$(SYS_LIB)/lv2: /usr/local/$(SYS_LIB)/lv2:
304 DFT_LV2_PATH:= /usr/lib64/lv2: /usr/lib/lv2: /usr/local/lib64/lv2: /usr/local/lib/lv2:
305 LV2_PATH:=$(subst : ,:,$(SYS_LV2_PATH)$(filter-out $(SYS_LV2_PATH),$(DFT_LV2_PATH)))
306 lilv.cfg_params?= --static --default-lv2-path=$(LV2_PATH)
307 sratom.cfg_params?= --static --no-shared
308 serd.cfg_params?= --static --no-shared
309 sord.cfg_params?= --static --no-shared
310 lilv.cfg_params?= --static --dyn-manifest
311 suil.cfg_params?= --static --no-qt --no-qt5
313 $(eval $(call waf-setup,lv2))
314 $(eval $(call waf-setup,serd))
315 $(eval $(call waf-setup,sord, serd))
316 $(eval $(call waf-setup,sratom, serd sord lv2))
317 $(eval $(call waf-setup,lilv, lv2 sratom serd sord))
318 $(eval $(call waf-setup,suil, lv2))
320 # add softlinks for legacy paths
321 waf_link=$(1).mak_params+=; (cd $(1)*; ln -s $(1)-0/$(1) usr/local/include/.)
322 $(foreach p,sratom serd sord lilv suil,$(eval $(call waf_link,$(p))))
325 $(foreach tgt,$(TARGETS), \
326 $(if $($(tgt).cflags),$(eval $(tgt).cfg_vars+=CFLAGS+=$($(tgt).cflags))))
327 $(foreach tgt,$(TARGETS), \
328 $(if $($(tgt).cppflags),$(eval $(tgt).cfg_vars+=CPPFLAGS+=$($(tgt).cppflags))))
329 $(foreach tgt,$(TARGETS), \
330 $(if $($(tgt).ldflags),$(eval $(tgt).cfg_vars+=LDFLAGS+=$($(tgt).ldflags))))
336 #$(eval $(call std-build,pkg,deps...))
338 ifeq ($(MAKECMDGOALS),rules)
344 uname := $(shell uname -o)
345 ifeq ($(uname), Android)
346 $(call rules,$(call std-build,libbthread))
348 $(call rules,$(call std-build,a52dec,djbfft))
349 $(call rules,$(call std-build,djbfft))
350 $(call rules,$(call std-build,audiofile))
351 $(call rules,$(call std-build,encore))
352 $(call rules,$(call std-build,esound,audiofile))
353 $(call rules,$(call std-build,ffmpeg, twolame lame openjpeg opus \
354 libtheora x264 x265 libvpx libaom libsvtav1 dav1d libwebp \
355 $(call if_want,NV, ffnvcodec)))
356 $(call rules,$(call std-build,fftw))
357 $(call rules,$(call std-build,flac,libogg))
358 $(call rules,$(call std-build,giflib))
359 $(call rules,$(call std-build,ilmBase, openexr))
360 $(call rules,$(call std-build,ladspa))
361 $(call rules,$(call std-build,lame))
362 $(call rules,$(call std-build,libaom))
363 $(call rules,$(call std-build,libsvtav1))
364 $(call rules,$(call std-build,dav1d))
365 $(call rules,$(call std-build,libwebp))
366 $(call rules,$(call std-build,libavc1394,libraw1394))
367 $(call rules,$(call std-build,libdv))
368 $(call rules,$(call std-build,libiec61883,libraw1394))
369 $(call rules,$(call std-build,libjpeg))
370 $(call rules,$(call std-build,libogg))
371 $(call rules,$(call std-build,libraw1394))
372 $(call rules,$(call std-build,libsndfile))
373 $(call rules,$(call std-build,libtheora, libogg libvorbis))
374 $(call rules,$(call std-build,libuuid))
375 $(call rules,$(call std-build,libvorbis))
376 $(call rules,$(call std-build,mjpegtools, libjpeg))
377 $(call rules,$(call std-build,opencv))
378 $(call rules,$(call std-build,openexr))
379 $(call rules,$(call std-build,openExr, ilmBase))
380 $(call rules,$(call std-build,openjpeg))
381 $(call rules,$(call std-build,opus))
382 $(call rules,$(call std-build,speech_tools))
383 $(call rules,$(call std-build,tiff, libwebp libjpeg))
384 $(call rules,$(call std-build,twolame))
385 $(call rules,$(call std-build,x264))
386 $(call rules,$(call std-build,x265))
387 $(call rules,$(call std-build,libvpx))
388 $(call rules,$(call std-build,lv2))
389 $(call rules,$(call std-build,serd))
390 $(call rules,$(call std-build,sord, serd))
391 $(call rules,$(call std-build,sratom, serd sord lv2))
392 $(call rules,$(call std-build,lilv, lv2 sratom serd sord))
393 $(call rules,$(call std-build,suil, lv2))
394 $(call rules,$(call std-build,ffnvcodec))
395 $(call rules,$(call std-build,libdpx))
397 # specialize festival, multiple tarballs
399 .PHONY: festival festival-configure festival-src
400 festival: $(call pkg-built,festival)
401 festival-configure: $(call pkg-config,festival)
402 festival-src: $(call pkg-source,festival)
404 rm -rf festival* $(BLD)/festival.*
406 $(call pkg-source,festival):
407 for f in src/festival* src/festlex_* src/festvox_*; do tar -xJf $$f; done
410 $(call pkg-config,festival): $(call pkg-source,festival) $(call pkg-built,speech_tools)
411 cd festival* && [ -f ./configure ] && \
415 $(call pkg-built,festival): $(call pkg-config,festival)
416 $(MAKE) -C festival* -j1
420 for f in $(static_pkgs); do rm -rf $$f*; done
424 cp -a $(ver_mjpegtools)/mpeg2enc/mpeg2enc $(BINDIR)/.
425 cp -a $(ver_mjpegtools)/mplex/mplex $(BINDIR)/.
428 find . -type f -name '*.o' -delete
430 # not WANT_CIN_3RDPARTY
437 @echo $($(subst val-,,$@))