change dependency on libncurses (from strict depend to select)
[openwrt/svn-archive/archive.git] / utils / pipacs / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pipacs
12 PKG_RELEASE:=2
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/pipacs
19 SECTION:=utils
20 CATEGORY:=Utilities
21 TITLE:=UNIX socket accounting/wiewer program
22 DESCRIPTION:=An UNIX socket accounting/wiewer program.\\\
23 This is version 2.
24 endef
25
26 define Build/Prepare
27 mkdir -p $(PKG_BUILD_DIR)
28 $(CP) ./src/* $(PKG_BUILD_DIR)
29 endef
30
31 define Build/Compile
32 $(MAKE) -C $(PKG_BUILD_DIR) \
33 $(TARGET_CONFIGURE_OPTS) \
34 CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include" \
35 all
36 endef
37
38 define Package/pipacs/install
39 mkdir -p $(1)/usr/bin
40 install -m0755 $(PKG_BUILD_DIR)/pipacs $(1)/usr/bin
41 endef
42
43 $(eval $(call BuildPackage,pipacs))