Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #
  2. # Copyright (C) 2009-2013 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:=libnetfilter_cttimeout
  9. PKG_VERSION:=1.0.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:= \
  13. http://www.netfilter.org/projects/libnetfilter_cttimeout/files/ \
  14. PKG_HASH:=aeab12754f557cba3ce2950a2029963d817490df7edb49880008b34d7ff8feba
  15. PKG_FIXUP:=autoreconf
  16. PKG_LICENSE:=GPL-2.0+
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libnetfilter-cttimeout
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+libmnl
  23. TITLE:=API to the in-kernel connection tracking timeout infrastructure
  24. URL:=http://www.netfilter.org/projects/libnetfilter_cttimeout/
  25. endef
  26. define Package/libnetfilter-cttimeout/description
  27. libnetfilter_cttimeout is a userspace library providing a programming
  28. interface (API) to the in-kernel connection tracking timeout handling.
  29. This library is currently used by conntrack-tools.
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. CONFIGURE_ARGS += \
  33. --enable-static \
  34. --enable-shared \
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include/libnetfilter_cttimeout
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)/usr/include/libnetfilter_cttimeout/*.h \
  39. $(1)/usr/include/libnetfilter_cttimeout/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cttimeout.{so*,a,la} \
  43. $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnetfilter_cttimeout.pc \
  47. $(1)/usr/lib/pkgconfig/
  48. endef
  49. define Package/libnetfilter-cttimeout/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/libnetfilter_cttimeout.so.* \
  53. $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,libnetfilter-cttimeout))