contrib: using make -C should spread the threads from "make -j" properly
[vlc.git] / contrib / src / qtsvg / rules.mak
blob7e00e30db6546f5472aa4c914f72973a2144d3df
1 # Qt
3 QTSVG_VERSION := 5.6.3
4 QTSVG_URL := https://download.qt.io/official_releases/qt/5.6/$(QTSVG_VERSION)/submodules/qtsvg-opensource-src-$(QTSVG_VERSION).tar.xz
6 DEPS_qtsvg += qt $(DEPS_qt)
8 ifdef HAVE_WIN32
9 PKGS += qtsvg
10 endif
12 ifeq ($(call need_pkg,"Qt5Svg"),)
13 PKGS_FOUND += qtsvg
14 endif
16 $(TARBALLS)/qtsvg-$(QTSVG_VERSION).tar.xz:
17 $(call download,$(QTSVG_URL))
19 .sum-qtsvg: qtsvg-$(QTSVG_VERSION).tar.xz
21 qtsvg: qtsvg-$(QTSVG_VERSION).tar.xz .sum-qtsvg
22 $(UNPACK)
23 mv qtsvg-opensource-src-$(QTSVG_VERSION) qtsvg-$(QTSVG_VERSION)
24 $(APPLY) $(SRC)/qtsvg/0001-Force-the-usage-of-QtZlib-header.patch
25 $(MOVE)
27 .qtsvg: qtsvg
28 cd $< && $(PREFIX)/bin/qmake
29 # Make && Install libraries
30 cd $< && $(MAKE)
31 cd $< && $(MAKE) -C src sub-plugins-install_subtargets sub-svg-install_subtargets
32 mv $(PREFIX)/plugins/iconengines/libqsvgicon.a $(PREFIX)/lib/
33 mv $(PREFIX)/plugins/imageformats/libqsvg.a $(PREFIX)/lib/
34 cd $(PREFIX)/lib/pkgconfig; sed -i \
35 -e 's/d\.a/.a/g' \
36 -e 's/-lQt\([^ ]*\)d/-lQt\1/g' \
37 -e '/Libs:/ s/-lQt5Svg/-lqsvg -lqsvgicon -lQt5Svg/ ' \
38 Qt5Svg.pc
39 touch $@