add wireless measurement probe infrastructure, developed at Fraunhofer FOKUS
[openwrt/svn-archive/archive.git] / package / libipfix / 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:=libipfix
12 PKG_VERSION:=r51
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
17 PKG_MD5SUM:=0e5b2871ea20ac48eda3f6006c5dba28
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libipfix
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=IP Flow Information Export Library
26 URL:=http://www.fokus.fraunhofer.de/de/net/more_about/download/ipfixlib.html
27 BUILDONLY:=1
28 endef
29
30 TARGET_CFLAGS += \
31 -ffunction-sections -fdata-sections
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \
36 prefix="$(PKG_INSTALL_DIR)/usr" \
37 exec_prefix="$(PKG_INSTALL_DIR)/usr" \
38 all install
39 $(TARGET_CROSS)ranlib $(PKG_INSTALL_DIR)/usr/lib/libipfix.a
40 $(TARGET_CROSS)ranlib $(PKG_INSTALL_DIR)/usr/lib/libmisc.a
41 endef
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)
45 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
46 endef
47
48 $(eval $(call BuildPackage,libipfix))