]> git.sesse.net Git - vlc/blob - contrib/src/upnp/rules.mak
contrib: syntax
[vlc] / contrib / src / upnp / rules.mak
1 # UPNP
2 UPNP_VERSION := 1.6.13
3 UPNP_URL := $(SF)/pupnp/libupnp-$(UPNP_VERSION).tar.bz2
4
5 $(TARBALLS)/libupnp-$(UPNP_VERSION).tar.bz2:
6         $(call download,$(UPNP_URL))
7
8 .sum-upnp: libupnp-$(UPNP_VERSION).tar.bz2
9
10 ifdef HAVE_WIN32
11 DEPS_upnp += pthreads $(DEPS_pthreads)
12 LIBUPNP_ECFLAGS = -DPTW32_STATIC_LIB
13 endif
14
15 upnp: libupnp-$(UPNP_VERSION).tar.bz2 .sum-upnp
16         $(UNPACK)
17 ifdef HAVE_WIN32
18         $(APPLY) $(SRC)/upnp/libupnp-configure.patch
19         $(APPLY) $(SRC)/upnp/libupnp-win32.patch
20 endif
21         $(MOVE)
22
23 .upnp: upnp
24         cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3 -DUPNP_STATIC_LIB $(LIBUPNP_ECFLAGS)" ./configure --disable-samples --without-documentation --disable-webserver $(HOSTCONF)
25         cd $< && $(MAKE) install
26         touch $@