From: Rosen Penev Date: Fri, 20 Mar 2020 05:28:15 +0000 (-0700) Subject: minidlna: fix build with newer musl X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=269ec782eb472b2deccfb3fddc8d297c24e990e0;p=openwrt-packages.git minidlna: fix build with newer musl The configure script is totally broken and does not check for clock_gettime. Define it manually. Signed-off-by: Rosen Penev --- diff --git a/multimedia/minidlna/Makefile b/multimedia/minidlna/Makefile index 80d24f816..fb69aa4f9 100644 --- a/multimedia/minidlna/Makefile +++ b/multimedia/minidlna/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=minidlna -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://git.code.sf.net/p/minidlna/git @@ -48,7 +48,7 @@ define Package/minidlna/conffiles /etc/config/minidlna endef -CONFIGURE_ARGS +=\ +CONFIGURE_ARGS += \ --with-libiconv-prefix="$(ICONV_PREFIX)" \ --with-libintl-prefix="$(INTL_PREFIX)" \ --with-os-name="OpenWrt Linux" \ @@ -57,6 +57,8 @@ CONFIGURE_ARGS +=\ --with-db-path="/var/run/minidlna" \ --with-log-path="/var/log" +TARGET_CFLAGS += -DHAVE_CLOCK_GETTIME + define Package/minidlna/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/minidlnad $(1)/usr/sbin/minidlnad