From: Nicolas Thill Date: Thu, 24 Dec 2009 06:44:40 +0000 (+0000) Subject: [packages] mpdas: fix mpdas linking against libiconv & libintl X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1df9a64cc5785df5711086ee67faeca16ecd7683;p=openwrt%2Fsvn-archive%2Farchive.git [packages] mpdas: fix mpdas linking against libiconv & libintl SVN-Revision: 18917 --- diff --git a/sound/mpdas/Makefile b/sound/mpdas/Makefile index ad21cf2d92..79f267c9a3 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 0000000000..f136683dde --- /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)\"" +