[package] firewall:
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libipfix
11 PKG_VERSION:=r51
12 PKG_RELEASE:=1
13
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)
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define 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
27 endef
28
29 TARGET_CFLAGS += \
30 -ffunction-sections -fdata-sections
31
32 define 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
40 endef
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(1)
44 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
45 endef
46
47 $(eval $(call BuildPackage,libipfix))