From: Nicolas Thill Date: Thu, 24 Dec 2009 06:44:40 +0000 (+0000) Subject: mpdas: fix mpdas linking against libiconv & libintl X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fbc79cff3f8fc644593577f3de12ab5212f97dff;p=openwrt%2Fsvn-archive%2Fpackages.git mpdas: fix mpdas linking against libiconv & libintl SVN-Revision: 18917 --- diff --git a/sound/mpdas/Makefile b/sound/mpdas/Makefile index ad21cf2d9..79f267c9a 100644 --- a/sound/mpdas/Makefile +++ b/sound/mpdas/Makefile @@ -32,9 +32,17 @@ define Package/mpdas/description 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 diff --git a/sound/mpdas/patches/001-flags.patch b/sound/mpdas/patches/001-flags.patch new file mode 100644 index 000000000..f136683dd --- /dev/null +++ b/sound/mpdas/patches/001-flags.patch @@ -0,0 +1,13 @@ +--- 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)\"" +