Added dependency libraries to ensure configure can find and use librrd.so
[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 endef
23
24 define Build/Prepare
25 mkdir -p $(PKG_BUILD_DIR)
26 $(CP) ./src/* $(PKG_BUILD_DIR)
27 endef
28
29 define Build/Compile
30 $(MAKE) -C $(PKG_BUILD_DIR) \
31 $(TARGET_CONFIGURE_OPTS) \
32 CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include" \
33 all
34 endef
35
36 define Package/pipacs/install
37 $(INSTALL_DIR) $(1)/usr/bin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pipacs $(1)/usr/bin/
39 endef
40
41 $(eval $(call BuildPackage,pipacs))