Makefile 1.2 KB

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