rules.mak 592 Bytes
Newer Older
1
2
# mfx (Media SDK)

3
mfx_GITURL := https://github.com/lu-zero/mfx_dispatch.git
4
MFX_GITHASH := 7adf2e463149adf6820de745a4d9e5d9a1ba8763
5
6
7
8

ifeq ($(call need_pkg,"mfx"),)
PKGS_FOUND += mfx
endif
9
10
ifdef HAVE_WIN32
PKGS += mfx
11
12
endif

13
$(TARBALLS)/mfx-$(MFX_GITHASH).tar.xz:
14
	$(call download_git,$(mfx_GITURL),,$(MFX_GITHASH))
15

16
.sum-mfx: mfx-$(MFX_GITHASH).tar.xz
17
	$(call check_githash,$(MFX_GITHASH))
18
19
	touch $@

20
mfx: mfx-$(MFX_GITHASH).tar.xz .sum-mfx
21
22
23
24
25
26
27
28
	$(UNPACK)
	cd $(UNPACK_DIR) && autoreconf -ivf
	$(MOVE)

.mfx: mfx
	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
	cd $< && $(MAKE) install
	touch $@