Date:2010-07-09 03:39:11 (13 years 5 months ago)
Author:Xiangfu Liu
Commit:f5fb358d2f5846e2f2ec84b87dea99dcd1422890
Message:[new package][hnb] hierarchical notebook. by Jirka

Files: hnb/Makefile (1 diff)
hnb/patches/Makefile-hnb.patch (1 diff)

Change Details

hnb/Makefile
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_BIN) $(PKG_BUILD_DIR)/src/hnb $(1)/usr/bin/
39endef
40
41$(eval $(call BuildPackage,hnb))
hnb/patches/Makefile-hnb.patch
1--- hnb-1.9.17/Makefile 2003-03-10 03:22:23.000000000 +0100
2@@ -2,8 +2,8 @@
3 src/hnb: src/*.c src/*.h src/*.inc src/hnbrc.inc
4     (cd src;make)
5 install: src/hnb
6- install -D src/hnb /usr/local/bin/hnb
7- install -D -m444 doc/hnb.1 /usr/local/man/man1/hnb.1
8+ #install -D src/hnb /usr/bin/hnb
9+ #install -D -m444 doc/hnb.1 /usr/man/man1/hnb.1
10 clean:
11     (cd src;make clean)
12     (cd util;make clean)

Archive Download the corresponding diff file



interactive