qt: add device preferences for mmdevice
[vlc.git] / contrib / src / shout / rules.mak
blob500420cbe2e89eda09eae4c01171d5e19da10d7a
1 # shout
3 SHOUT_VERSION := 2.4.1
4 SHOUT_URL := http://downloads.us.xiph.org/releases/libshout/libshout-$(SHOUT_VERSION).tar.gz
6 ifdef BUILD_ENCODERS
7 ifdef BUILD_NETWORK
8 PKGS += shout
9 endif
10 endif
11 ifeq ($(call need_pkg,"shout >= 2.1"),)
12 PKGS_FOUND += shout
13 endif
15 $(TARBALLS)/libshout-$(SHOUT_VERSION).tar.gz:
16 $(call download_pkg,$(SHOUT_URL),shout)
18 .sum-shout: libshout-$(SHOUT_VERSION).tar.gz
20 # TODO: fix socket stuff on POSIX and Linux
21 libshout: libshout-$(SHOUT_VERSION).tar.gz .sum-shout
22 $(UNPACK)
23 $(APPLY) $(SRC)/shout/bsd.patch
24 $(APPLY) $(SRC)/shout/libshout-arpa.patch
25 $(APPLY) $(SRC)/shout/fix-xiph_openssl.patch
26 $(call pkg_static,"shout.pc.in")
27 $(UPDATE_AUTOCONFIG)
28 $(MOVE)
30 DEPS_shout = ogg $(DEPS_ogg) theora $(DEPS_theora) speex $(DEPS_speex)
31 DEPS_shout += vorbis $(DEPS_vorbis)
33 SHOUT_CONF :=
35 ifdef HAVE_WIN32
36 SHOUT_CONF += "--disable-thread"
37 endif
38 ifdef HAVE_ANDROID
39 SHOUT_CONF += "--disable-thread"
40 endif
42 .shout: libshout
43 $(RECONF)
44 cd $< && $(HOSTVARS) ./configure --without-openssl $(SHOUT_CONF) $(HOSTCONF)
45 cd $< && $(MAKE) install
46 touch $@