minidlna: fix build with newer musl
authorRosen Penev <redacted>
Fri, 20 Mar 2020 05:28:15 +0000 (22:28 -0700)
committerRosen Penev <redacted>
Fri, 20 Mar 2020 06:44:41 +0000 (23:44 -0700)
The configure script is totally broken and does not check for
clock_gettime. Define it manually.

Signed-off-by: Rosen Penev <redacted>
multimedia/minidlna/Makefile

index 80d24f816571bfdc4f7e7039985b81fda903038e..fb69aa4f9ff99a59bc79beaab9b3471b032b045a 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT