[packages] mpdas: fix mpdas linking against libiconv & libintl
git-svn-id: svn://svn.openwrt.org/openwrt/packages@18917 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
86b5322a62
commit
a38c0dcf36
@ -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
|
||||
|
13
sound/mpdas/patches/001-flags.patch
Normal file
13
sound/mpdas/patches/001-flags.patch
Normal file
@ -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)\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user