libupnp: enable reuseaddr
authorRosen Penev <rosenp@gmail.com>
Mon, 23 Mar 2020 23:37:50 +0000 (16:37 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 24 May 2020 00:35:20 +0000 (17:35 -0700)
Helps applications restart safely.

Disabled optssdp. Not used by anything.

Disabled scriptsupport. Not used by anything.

Made all configure options explicit.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from 8e065c147f7822ca32e053a1da7cc500d0dae2fb)
Added some extra stuff from master.

libs/libupnp/Makefile

index 441839836641fbd735fe6b335d43bf478eb71662..f3ab296ea558868ab76077f65e7a1955aaad8e5b 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libupnp
 PKG_VERSION:=1.8.7
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=@SF/pupnp
@@ -48,11 +48,28 @@ define Package/libupnp-sample/description
 TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/
 endef
 
-TARGET_CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -flto
+CONFIGURE_ARGS += \
+       --enable-client \
+       --enable-device \
+       --enable-gena \
+       --enable-reuseaddr \
+       --enable-gena \
+       --enable-webserver \
+       --enable-ssdp \
+       --enable-soap \
+       --enable-tools \
+       --enable-blocking_tcp_connections \
+       --enable-samples \
+       --disable-debug \
+       --disable-optssdp \
+       --disable-unspecified_server \
+       --disable-open_ssl \
+       --disable-scriptsupport \
+       --disable-postwrite
+
+TARGET_CFLAGS += -flto
 TARGET_LDFLAGS += -flto
 
-CONFIGURE_VARS += ac_cv_lib_compat_ftime=no
-
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/