contribs: use libplacebo on Windows
[vlc.git] / contrib / src / libplacebo / rules.mak
blob89fe4728fd7b96e892dead774cdc1c19e1fe731a
1 # libplacebo
3 PLACEBO_VERSION := 0.1.2
4 PLACEBO_URL := https://github.com/haasn/libplacebo/archive/v$(PLACEBO_VERSION).tar.gz
5 PLACEBO_ARCHIVE = libplacebo-$(PLACEBO_VERSION).tar.gz
7 ifdef HAVE_WIN32
8 LIBPLACEBO_WIN32 = HAVE_WIN32=1
9 endif
11 PKGS += libplacebo
12 ifeq ($(call need_pkg,"libplacebo"),)
13 PKGS_FOUND += libplacebo
14 endif
16 PLACEBOCONF := --prefix="$(PREFIX)" \
17 --libdir lib \
18 --default-library static
20 $(TARBALLS)/$(PLACEBO_ARCHIVE):
21 $(call download_pkg,$(PLACEBO_URL),libplacebo)
23 .sum-libplacebo: $(PLACEBO_ARCHIVE)
25 libplacebo: $(PLACEBO_ARCHIVE) .sum-libplacebo
26 $(UNPACK)
27 $(APPLY) $(SRC)/libplacebo/0001-build-use-a-Makefile.patch
28 ifdef HAVE_WIN32
29 $(APPLY) $(SRC)/libplacebo/0002-build-fix-win32-build.patch
30 endif
31 $(MOVE)
33 .libplacebo: libplacebo
34 cd $< && rm -rf ./build
35 # we don't want to depend on meson/ninja for VLC 3.0
36 #cd $< && $(HOSTVARS) meson $(PLACEBOCONF) build
37 #cd $< && cd build && ninja install
38 cd $< && $(HOSTVARS_PIC) PREFIX=$(PREFIX) $(LIBPLACEBO_WIN32) make install
39 touch $@