source: packages/libs/newt/Makefile @ 26234

Last change on this file since 26234 was 26234, checked in by cshore, 6 years ago

[libs] [utils]: newt: Added source package newt which provides libnewt, a lightweight text console windowing library, and whiptail a lightweight dialog replacement. Depends on S-Lang library (slang2 source package)

File size: 1.7 KB
Line 
1#
2# Copyright (C) 2006-2011 OpenWrt.org
3# Copyright (C) 2011 SMBPhone Inc.
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=newt
12PKG_VERSION:=0.52.12
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=https://fedorahosted.org/releases/n/e/newt/
17PKG_MD5SUM:=51b04128d9e1bf000fa769c417b74486
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/libnewt
22  URL:=http://fedorahosted.org/newt/
23  SECTION:=libs
24  CATEGORY:=Libraries
25  TITLE:=Not Erik's Windowing Toolkit
26  DEPENDS:= +libslang2 +libpopt
27endef
28
29define Package/libnewt/description
30  Programming library for colour text mode widget-based user interfaces,
31  based on S-Lang.
32endef
33
34define Package/whiptail
35  URL:=http://fedorahosted.org/newt/
36  SECTION:=utils
37  CATEGORY:=Utilities
38  TITLE:=Dialog boxes from shell scripts
39  DEPENDS:= +libnewt
40endef
41
42define Package/whiptail/description
43  A lightweight replacement for the dialog command (dialog boxes from shell
44  scripts), based on libnewt.
45endef
46
47TARGET_CFLAGS += $(FPIC) -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib
48
49CONFIGURE_ARGS += \
50        --disable-nls \
51        --without-tcl \
52        --without-gpm-support
53
54define Package/libnewt/install
55        $(INSTALL_DIR) $(1)/usr/lib
56        $(CP) $(PKG_BUILD_DIR)/libnewt.so* $(1)/usr/lib/
57endef
58
59define Build/InstallDev
60        $(INSTALL_DIR) $(1)/usr/include
61        $(CP) $(PKG_BUILD_DIR)/newt.h $(1)/usr/include/
62
63        $(INSTALL_DIR) $(1)/usr/lib
64        $(CP) $(PKG_BUILD_DIR)/libnewt.{a,so*} $(1)/usr/lib/
65endef
66
67define Package/whiptail/install
68        $(INSTALL_DIR) $(1)/usr/bin
69        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whiptail $(1)/usr/bin/       
70endef
71
72$(eval $(call BuildPackage,libnewt))
73$(eval $(call BuildPackage,whiptail))
74
Note: See TracBrowser for help on using the repository browser.