define Build/Configure
endef
+TARGET_CFLAGS += $(FPIC)
+
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu,form}.{a,so*} $(1)/usr/lib/
endef
-define Build/UninstallDev
- rm -rf \
- $(1)/usr/include/curses.h \
- $(1)/usr/include/ncurses.h \
- $(1)/usr/include/ncurses_dll.h \
- $(1)/usr/include/menu.h \
- $(1)/usr/include/panel.h \
- $(1)/usr/include/term{,cap}.h \
- $(1)/usr/include/unctrl.h \
- $(1)/usr/include/form.h \
- $(1)/usr/include/eti.h \
- $(1)/usr/lib/libcurses.so \
- $(1)/usr/lib/lib{ncurses,panel,menu,form}.{a,so*}
-endef
-
$(eval $(call BuildPackage,libncurses))