Root/hnb/Makefile

Source at commit 1b3135c created 8 years 1 month ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=hnb
4PKG_VERSION:=1.9.17
5
6PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
7PKG_SOURCE_URL:=@SF/$(PKG_NAME)
8
9PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10
11PKG_INSTALL:=1
12
13include $(INCLUDE_DIR)/package.mk
14
15define Package/hnb
16    TITLE:=hnb
17    SECTION:=utils
18    CATEGORY:=Utilities
19    DEPENDS:=+libncurses
20    URL:=http://hnb.sourceforge.net/
21endef
22
23define Package/hnb/description
24    Powerfull outline editor/notebook for text console.
25endef
26
27define Build/Configure
28        $(call Build/Compile/Default, \
29              CFLAGS="-I$(STAGING_DIR)/usr/include -I. -I./src -I./src/libcli -I./libcli -I$(PKG_BUILD_DIR) -DHAVE_CONFIG_H " \
30              LIBS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib libcli/libcli.a -lm -lncurses" \
31        )
32endef
33
34
35
36define Package/hnb/install
37    $(INSTALL_DIR) $(1)/usr/bin
38    $(INSTALL_DIR) $(1)/root
39    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/hnb $(1)/usr/bin/
40    $(INSTALL_DATA) ./files/hnbrc.example $(1)/root/.hnbrc
41endef
42
43$(eval $(call BuildPackage,hnb))
44

Archive Download this file



interactive