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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
).
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
16 PKG_MD5SUM
:=0e5b2871ea20ac48eda3f6006c5dba28
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
).
$(PKG_VERSION
)
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libipfix
24 TITLE
:=IP Flow Information Export Library
25 URL
:=http
://www.fokus.fraunhofer.de
/de
/net
/more_about
/download
/ipfixlib.html
30 -ffunction-sections
-fdata-sections
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
34 CCOPT
="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \
35 prefix="$(PKG_INSTALL_DIR)/usr" \
36 exec_prefix="$(PKG_INSTALL_DIR)/usr" \
38 $(TARGET_CROSS
)ranlib
$(PKG_INSTALL_DIR
)/usr
/lib
/libipfix.a
39 $(TARGET_CROSS
)ranlib
$(PKG_INSTALL_DIR
)/usr
/lib
/libmisc.a
42 define Build
/InstallDev
44 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
47 $(eval
$(call BuildPackage
,libipfix
))