2011-02-02 09:26:19 +08:00
|
|
|
#
|
2012-07-11 18:05:00 +08:00
|
|
|
# Copyright (C) 2011-2012 OpenWrt.org
|
2011-02-02 09:26:19 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
# iconv full
|
|
|
|
ifeq ($(CONFIG_BUILD_NLS),y)
|
|
|
|
ICONV_PREFIX:=$(STAGING_DIR)/usr/lib/libiconv-full
|
|
|
|
ICONV_FULL:=1
|
|
|
|
|
|
|
|
INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-full
|
|
|
|
INTL_FULL:=1
|
|
|
|
|
|
|
|
# iconv stub
|
|
|
|
else
|
|
|
|
ICONV_PREFIX:=$(STAGING_DIR)/usr/lib/libiconv-stub
|
|
|
|
ICONV_FULL:=
|
|
|
|
|
|
|
|
INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-stub
|
|
|
|
INTL_FULL:=
|
|
|
|
endif
|
|
|
|
|
|
|
|
PKG_CONFIG_DEPENDS += CONFIG_BUILD_NLS
|
2018-01-08 03:41:06 +08:00
|
|
|
PKG_BUILD_DEPENDS += !BUILD_NLS:libiconv !BUILD_NLS:gettext
|
2011-02-02 09:26:19 +08:00
|
|
|
|
|
|
|
ICONV_DEPENDS:=+BUILD_NLS:libiconv-full
|
|
|
|
ICONV_CFLAGS:=-I$(ICONV_PREFIX)/include
|
|
|
|
ICONV_CPPFLAGS:=-I$(ICONV_PREFIX)/include
|
2015-09-07 16:03:34 +08:00
|
|
|
ICONV_LDFLAGS:=-L$(ICONV_PREFIX)/lib -Wl,-rpath-link=$(ICONV_PREFIX)/lib
|
2011-02-02 09:26:19 +08:00
|
|
|
|
|
|
|
INTL_DEPENDS:=+BUILD_NLS:libintl-full
|
|
|
|
INTL_CFLAGS:=-I$(INTL_PREFIX)/include
|
|
|
|
INTL_CPPFLAGS:=-I$(INTL_PREFIX)/include
|
2015-09-07 16:03:34 +08:00
|
|
|
INTL_LDFLAGS:=-L$(INTL_PREFIX)/lib -Wl,-rpath-link=$(INTL_PREFIX)/lib
|
2011-02-02 09:26:19 +08:00
|
|
|
|
|
|
|
TARGET_CFLAGS += $(ICONV_CFLAGS) $(INTL_CFLAGS)
|
2015-04-01 16:31:38 +08:00
|
|
|
TARGET_CPPFLAGS += $(ICONV_CPPFLAGS) $(INTL_CPPFLAGS)
|
2011-02-02 09:26:19 +08:00
|
|
|
TARGET_LDFLAGS += $(ICONV_LDFLAGS) $(INTL_LDFLAGS)
|