2 # Copyright (C) 2011-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 ifeq ($(CONFIG_BUILD_NLS),y)
10 ICONV_PREFIX:=$(STAGING_DIR)/usr/lib/libiconv-full
13 INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-full
18 ICONV_PREFIX:=$(STAGING_DIR)/usr/lib/libiconv-stub
21 INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-stub
25 PKG_CONFIG_DEPENDS += CONFIG_BUILD_NLS
26 PKG_BUILD_DEPENDS += !BUILD_NLS:libiconv !BUILD_NLS:gettext
28 ICONV_DEPENDS:=+BUILD_NLS:libiconv-full
29 ICONV_CFLAGS:=-I$(ICONV_PREFIX)/include
30 ICONV_CPPFLAGS:=-I$(ICONV_PREFIX)/include
31 ICONV_LDFLAGS:=-L$(ICONV_PREFIX)/lib -Wl,-rpath-link=$(ICONV_PREFIX)/lib
33 INTL_DEPENDS:=+BUILD_NLS:libintl-full
34 INTL_CFLAGS:=-I$(INTL_PREFIX)/include
35 INTL_CPPFLAGS:=-I$(INTL_PREFIX)/include
36 INTL_LDFLAGS:=-L$(INTL_PREFIX)/lib -Wl,-rpath-link=$(INTL_PREFIX)/lib
38 TARGET_CFLAGS += $(ICONV_CFLAGS) $(INTL_CFLAGS)
39 TARGET_CPPFLAGS += $(ICONV_CPPFLAGS) $(INTL_CPPFLAGS)
40 TARGET_LDFLAGS += $(ICONV_LDFLAGS) $(INTL_LDFLAGS)