5dc36bd6c59fd8e89387e1d8576709580ffe631b
[vlc.git] / contrib / src / bluray / rules.mak
1 # LIBBLURAY
2
3 BLURAY_VERSION := 0.6.1
4 BLURAY_URL := http://ftp.videolan.org/pub/videolan/libbluray/$(BLURAY_VERSION)/libbluray-$(BLURAY_VERSION).tar.bz2
5
6 ifdef BUILD_DISCS
7 PKGS += bluray
8 endif
9 ifeq ($(call need_pkg,"libbluray >= 0.3.0"),)
10 PKGS_FOUND += bluray
11 endif
12
13 DEPS_bluray = libxml2 $(DEPS_libxml2) freetype2 $(DEPS_freetype2)
14
15 BLURAY_CONF = --disable-examples  \
16               --disable-debug     \
17               --enable-libxml2    \
18               --enable-bdjava
19
20 $(TARBALLS)/libbluray-$(BLURAY_VERSION).tar.bz2:
21         $(call download,$(BLURAY_URL))
22
23 .sum-bluray: libbluray-$(BLURAY_VERSION).tar.bz2
24
25 bluray: libbluray-$(BLURAY_VERSION).tar.bz2 .sum-bluray
26         $(UNPACK)
27         $(MOVE)
28
29 .bluray: bluray
30         cd $< && ./bootstrap
31         cd $< && $(HOSTVARS) ./configure $(BLURAY_CONF) $(HOSTCONF)
32         cd $< && $(MAKE) install
33         touch $@