minidlna: fix linking with libintl if present
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 11 Jul 2013 13:09:08 +0000 (15:09 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 11 Jul 2013 13:09:33 +0000 (15:09 +0200)
Fixes http://autobuild.buildroot.net/results/3b7/3b71243716dc193a11508a69265cdd0120bd13ed

There's unfortunately not any easy way of adding extra libraries to LIBS,
so we need to list them all here.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/minidlna/minidlna.mk

index 1dd65fa809433ff9ec3814a57d19809250782df5..10e3b33b67d643631ebe21ebcc3e14aaf97ace4b 100644 (file)
@@ -19,12 +19,18 @@ MINIDLNA_CFLAGS=$(TARGET_CFLAGS) \
        -I"$(STAGING_DIR)/usr/include/libavcodec" \
        -I"$(STAGING_DIR)/usr/include/libavformat"
 
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+MINIDLNA_DEPENDENCIES += gettext
+# we need to link with libintl
+MINIDLNA_MAKE_OPTS += LIBS='-lpthread -lexif -ljpeg -lsqlite3 -lavformat -lavutil -lavcodec -lid3tag -lFLAC -logg -lvorbis -lintl'
+endif
+
 define MINIDLNA_BUILD_CMDS
        PREFIX=$(STAGING_DIR)/usr \
                $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(MINIDLNA_CFLAGS)" -C $(@D) depend
        $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
-               CFLAGS="$(MINIDLNA_CFLAGS)" -C $(@D) all
+               CFLAGS="$(MINIDLNA_CFLAGS)" $(MINIDLNA_MAKE_OPTS) -C $(@D) all
 endef
 
 define MINIDLNA_INSTALL_TARGET_CMDS