cache the played songs to ~/.mpdascache.
endef
+EXTRA_CPPFLAGS:=\
+ -I$(STAGING_DIR)/usr/lib/libintl/include \
+ -I$(STAGING_DIR)/usr/lib/libiconv/include \
+
+EXTRA_LDFLAGS:=\
+ -L$(STAGING_DIR)/usr/lib/libintl/lib \
+ -L$(STAGING_DIR)/usr/lib/libiconv/lib \
+
MAKE_FLAGS += \
- $(TARGET_CONFIGURE_OPTS) \
- $(1) \
+ CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
+ LDFLAGS="$(TARGET_LDPFLAGS) $(EXTRA_LDFLAGS)" \
define Package/mpdas/install
$(INSTALL_DIR) $(1)/etc
--- /dev/null
+--- a/Makefile
++++ b/Makefile
+@@ -7,8 +7,8 @@ PREFIX = /usr/local
+ MANPREFIX = ${PREFIX}/man/man1
+ CONFIG = $(PREFIX)/etc
+
+-CXXFLAGS += `pkg-config --cflags libmpd libcurl`
+-LIBS = `pkg-config --libs libmpd libcurl`
++CXXFLAGS += $(CPPFLAGS) `pkg-config --cflags libmpd libcurl`
++LIBS = $(LDFLAGS) `pkg-config --libs libmpd libcurl`
+
+ CXXFLAGS += -DCONFDIR="\"$(CONFIG)\"" -DVERSION="\"$(VERSION)\""
+