e88179c5f9a6f0c6e2153206178c269c70da92d3
[vlc.git] / contrib / src / dvdread / rules.mak
1 # DVDREAD
2 LIBDVDREAD_VERSION := 5.0.3
3 LIBDVDREAD_URL := $(VIDEOLAN)/libdvdread/$(LIBDVDREAD_VERSION)/libdvdread-$(LIBDVDREAD_VERSION).tar.bz2
4
5 ifdef BUILD_DISCS
6 ifdef GPL
7 PKGS += dvdread
8 endif
9 endif
10 ifeq ($(call need_pkg,"dvdread > 5.0.2 "),)
11 PKGS_FOUND += dvdread
12 endif
13
14 $(TARBALLS)/libdvdread-$(LIBDVDREAD_VERSION).tar.bz2:
15         $(call download,$(LIBDVDREAD_URL))
16
17 .sum-dvdread: libdvdread-$(LIBDVDREAD_VERSION).tar.bz2
18
19 dvdread: libdvdread-$(LIBDVDREAD_VERSION).tar.bz2 .sum-dvdread
20         $(UNPACK)
21         cd $(UNPACK_DIR) && sed -i -e 's,Requires.private,Requires,g' misc/*.pc.in
22         cd $(UNPACK_DIR) && autoreconf -ivf
23         $(MOVE)
24
25 DEPS_dvdread = dvdcss
26
27 .dvdread: dvdread .dvdcss
28         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --with-libdvdcss
29         cd $< && $(MAKE) install
30         touch $@