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