2 # Copyright (C) 2006-2011 OpenWrt.org
3 # Copyright (C) 2011 SMBPhone Inc.
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://fedorahosted.org/releases/n/e/newt/
17 PKG_MD5SUM:=51b04128d9e1bf000fa769c417b74486
19 include $(INCLUDE_DIR)/package.mk
21 define Package/libnewt
22 URL:=http://fedorahosted.org/newt/
25 TITLE:=Not Erik's Windowing Toolkit
26 DEPENDS:= +libslang2 +libpopt
29 define Package/libnewt/description
30 Programming library for colour text mode widget-based user interfaces,
34 define Package/whiptail
35 URL:=http://fedorahosted.org/newt/
38 TITLE:=Dialog boxes from shell scripts
42 define Package/whiptail/description
43 A lightweight replacement for the dialog command (dialog boxes from shell
44 scripts), based on libnewt.
47 TARGET_CFLAGS += $(FPIC) -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib
54 MAKE_FLAGS += AR="$(TARGET_CROSS)ar"
56 define Package/libnewt/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_BUILD_DIR)/libnewt.so* $(1)/usr/lib/
61 define Build/InstallDev
62 $(INSTALL_DIR) $(1)/usr/include
63 $(CP) $(PKG_BUILD_DIR)/newt.h $(1)/usr/include/
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_BUILD_DIR)/libnewt.{a,so*} $(1)/usr/lib/
69 define Package/whiptail/install
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(INSTALL_BIN) $(PKG_BUILD_DIR)/whiptail $(1)/usr/bin/
74 $(eval $(call BuildPackage,libnewt))
75 $(eval $(call BuildPackage,whiptail))