2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
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)
20 include $(INCLUDE_DIR)/package.mk
22 define Package/libipfix
25 TITLE:=IP Flow Information Export Library
26 URL:=http://www.fokus.fraunhofer.de/de/net/more_about/download/ipfixlib.html
31 -ffunction-sections -fdata-sections
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" \
39 $(TARGET_CROSS)ranlib $(PKG_INSTALL_DIR)/usr/lib/libipfix.a
40 $(TARGET_CROSS)ranlib $(PKG_INSTALL_DIR)/usr/lib/libmisc.a
43 define Build/InstallDev
45 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
48 $(eval $(call BuildPackage,libipfix))