Makefile 1.2 KB

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