mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
42 lines
1.0 KiB
Makefile
42 lines
1.0 KiB
Makefile
# UPNP
|
|
UPNP_VERSION := 1.14.13
|
|
UPNP_URL := https://github.com/pupnp/pupnp/archive/release-$(UPNP_VERSION).tar.gz
|
|
|
|
PKGS += upnp
|
|
ifeq ($(call need_pkg,"libupnp >= 1.14.2"),)
|
|
PKGS_FOUND += upnp
|
|
endif
|
|
|
|
$(TARBALLS)/pupnp-release-$(UPNP_VERSION).tar.gz:
|
|
$(call download,$(UPNP_URL))
|
|
|
|
.sum-upnp: pupnp-release-$(UPNP_VERSION).tar.gz
|
|
|
|
upnp: pupnp-release-$(UPNP_VERSION).tar.gz .sum-upnp
|
|
$(UNPACK)
|
|
ifeq ($(OS),Windows_NT)
|
|
$(APPLY) $(SRC)/upnp/libupnp-windows.patch
|
|
endif
|
|
$(UPDATE_AUTOCONFIG) && cd $(UNPACK_DIR) && mv config.guess config.sub
|
|
$(MOVE)
|
|
|
|
PUPNP_OPTIONS=--disable-largefile --disable-samples --disable-device --disable-webserver --without-documentation
|
|
ifdef HAVE_IOS
|
|
PUPNP_OPTIONS+= --disable-reuseaddr
|
|
else
|
|
ifdef HAVE_MACOSX
|
|
PUPNP_OPTIONS+= --disable-reuseaddr
|
|
endif
|
|
endif
|
|
|
|
.upnp: upnp
|
|
ifdef HAVE_WIN32
|
|
$(RECONF)
|
|
cd $< && $(HOSTVARS) CFLAGS="-DUPNP_STATIC_LIB" ./configure $(PUPNP_OPTIONS) $(HOSTCONF)
|
|
else
|
|
$(RECONF)
|
|
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -DUPNP_STATIC_LIB" ./configure $(PUPNP_OPTIONS) $(HOSTCONF)
|
|
endif
|
|
cd $< && $(MAKE) install
|
|
touch $@
|