3 UPNP_URL := $(SF)/pupnp/libupnp-$(UPNP_VERSION).tar.bz2
7 $(TARBALLS)/libupnp-$(UPNP_VERSION).tar.bz2:
8 $(call download,$(UPNP_URL))
10 .sum-upnp: libupnp-$(UPNP_VERSION).tar.bz2
13 DEPS_upnp += pthreads $(DEPS_pthreads)
14 LIBUPNP_ECFLAGS = -DPTW32_STATIC_LIB
17 upnp: libupnp-$(UPNP_VERSION).tar.bz2 .sum-upnp
20 $(APPLY) $(SRC)/upnp/libupnp-configure.patch
21 $(APPLY) $(SRC)/upnp/libupnp-win32.patch
22 $(APPLY) $(SRC)/upnp/libupnp-win64.patch
30 cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3 -DUPNP_STATIC_LIB $(LIBUPNP_ECFLAGS)" ./configure --disable-samples --without-documentation --disable-webserver $(HOSTCONF)
31 cd $< && $(MAKE) install