Contribs: update dvdread to 6.0.1
[vlc.git] / contrib / src / dvdread / rules.mak
blob837e0c241f57660edcbf08bfab19b20845e60d32
1 # DVDREAD
2 LIBDVDREAD_VERSION := 6.0.1
3 LIBDVDREAD_URL := $(VIDEOLAN)/libdvdread/$(LIBDVDREAD_VERSION)/libdvdread-$(LIBDVDREAD_VERSION).tar.bz2
5 ifdef BUILD_DISCS
6 ifdef GPL
7 PKGS += dvdread
8 endif
9 endif
10 ifeq ($(call need_pkg,"dvdread >= 6.0.0"),)
11 PKGS_FOUND += dvdread
12 endif
14 $(TARBALLS)/libdvdread-$(LIBDVDREAD_VERSION).tar.bz2:
15 $(call download,$(LIBDVDREAD_URL))
17 .sum-dvdread: libdvdread-$(LIBDVDREAD_VERSION).tar.bz2
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 $(MOVE)
24 DEPS_dvdread = dvdcss
26 .dvdread: dvdread .dvdcss
27 $(REQUIRE_GPL)
28 $(RECONF) -I m4
29 cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --with-libdvdcss
30 cd $< && $(MAKE) install
31 touch $@