summaryrefslogtreecommitdiff
path: root/package/libs
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-10 10:05:22 +0200
committerFelix Fietkau <nbd@nbd.name>2016-05-10 10:12:01 +0200
commitdd16b7748d58f1f75c07bbe5986361a47cb84c32 (patch)
treeef249d4424fbd972a6800cf5161fca5f7db5cd62 /package/libs
parentdf8ca9a5c4d87903ddca15d1a6c60f43b15656fe (diff)
downloadmtk-20170518-dd16b7748d58f1f75c07bbe5986361a47cb84c32.zip
mtk-20170518-dd16b7748d58f1f75c07bbe5986361a47cb84c32.tar.gz
mtk-20170518-dd16b7748d58f1f75c07bbe5986361a47cb84c32.tar.bz2
ncurses: install pkg-config files to fix util-linux build breakage
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/libs')
-rw-r--r--package/libs/ncurses/Makefile11
1 files changed, 4 insertions, 7 deletions
diff --git a/package/libs/ncurses/Makefile b/package/libs/ncurses/Makefile
index c5b130a..25b3807 100644
--- a/package/libs/ncurses/Makefile
+++ b/package/libs/ncurses/Makefile
@@ -49,6 +49,7 @@ CONFIGURE_ARGS += \
--enable-echo \
--enable-const \
--enable-overwrite \
+ --enable-pc-files \
--disable-rpath \
--without-ada \
--without-debug \
@@ -85,6 +86,7 @@ MAKE_FLAGS += \
BUILD_CC="$(HOSTCC)" \
HOSTCC="$(HOSTCC)" \
HOSTCCFLAGS="" \
+ PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig \
libs
define Build/Install/Default
@@ -118,13 +120,8 @@ define Package/libncursesw/install
endef
define Build/InstallDev
- $(INSTALL_DIR) $(1)/usr/include
- $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
-
- $(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu,form}w.{a,so*} $(1)/usr/lib/
-
- $(INSTALL_DIR) $(1)/usr/bin $(2)/bin
+ $(CP) $(PKG_INSTALL_DIR)/* $(1)
+ $(INSTALL_DIR) $(2)/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ncursesw5-config $(2)/bin/
$(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' -e 's/$$$$INCS //g' \
$(2)/bin/ncursesw5-config