mirror of
https://github.com/Heleguo/lede.git
synced 2025-12-18 20:01:51 +00:00
ncurses: enable pc files in the host build
This commit is contained in:
parent
bee33b4ab3
commit
cf27e6dd75
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_NAME:=ncurses
|
PKG_NAME:=ncurses
|
||||||
PKG_CPE_ID:=cpe:/a:gnu:ncurses
|
PKG_CPE_ID:=cpe:/a:gnu:ncurses
|
||||||
PKG_VERSION:=6.4
|
PKG_VERSION:=6.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
||||||
@ -52,7 +52,7 @@ define Package/libncurses-dev
|
|||||||
TITLE:=Development files for the ncurses library
|
TITLE:=Development files for the ncurses library
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
TARGET_CFLAGS += $(FPIC) -std=gnu17
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-echo \
|
--enable-echo \
|
||||||
@ -82,6 +82,7 @@ CONFIGURE_VARS += \
|
|||||||
HOST_CFLAGS += $(HOST_FPIC)
|
HOST_CFLAGS += $(HOST_FPIC)
|
||||||
|
|
||||||
HOST_CONFIGURE_ARGS += \
|
HOST_CONFIGURE_ARGS += \
|
||||||
|
--enable-pc-files \
|
||||||
--without-cxx \
|
--without-cxx \
|
||||||
--without-cxx-binding \
|
--without-cxx-binding \
|
||||||
--without-ada \
|
--without-ada \
|
||||||
@ -123,7 +124,9 @@ ifneq ($(HOST_OS),FreeBSD)
|
|||||||
)
|
)
|
||||||
for file in \
|
for file in \
|
||||||
a/ansi \
|
a/ansi \
|
||||||
|
a/alacritty \
|
||||||
d/dumb \
|
d/dumb \
|
||||||
|
f/foot \
|
||||||
l/linux \
|
l/linux \
|
||||||
r/rxvt \
|
r/rxvt \
|
||||||
r/rxvt-unicode \
|
r/rxvt-unicode \
|
||||||
@ -178,6 +181,8 @@ define Build/InstallDev
|
|||||||
$(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' -e 's/$$$$INCS //g' \
|
$(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' -e 's/$$$$INCS //g' \
|
||||||
$(2)/bin/ncursesw6-config
|
$(2)/bin/ncursesw6-config
|
||||||
ln -sf $(STAGING_DIR)/host/bin/ncursesw6-config $(1)/usr/bin/ncursesw6-config
|
ln -sf $(STAGING_DIR)/host/bin/ncursesw6-config $(1)/usr/bin/ncursesw6-config
|
||||||
|
$(SED) 's,$(TOOLCHAIN_DIR),$(STAGING_DIR),g' \
|
||||||
|
$(1)/usr/lib/pkgconfig/ncursesw.pc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user