Root/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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libipfix
11PKG_VERSION:=r51
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
16PKG_MD5SUM:=0e5b2871ea20ac48eda3f6006c5dba28
17PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/libipfix
22  SECTION:=libs
23  CATEGORY:=Libraries
24  TITLE:=IP Flow Information Export Library
25  URL:=http://www.fokus.fraunhofer.de/de/net/more_about/download/ipfixlib.html
26  BUILDONLY:=1
27endef
28
29TARGET_CFLAGS += \
30    -ffunction-sections -fdata-sections
31
32define Build/Compile
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" \
37        all install
38    $(TARGET_CROSS)ranlib $(PKG_INSTALL_DIR)/usr/lib/libipfix.a
39    $(TARGET_CROSS)ranlib $(PKG_INSTALL_DIR)/usr/lib/libmisc.a
40endef
41
42define Build/InstallDev
43    $(INSTALL_DIR) $(1)
44    $(CP) $(PKG_INSTALL_DIR)/* $(1)/
45endef
46
47$(eval $(call BuildPackage,libipfix))
48

Archive Download this file



interactive