Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Copyright (C) 2006-2008 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:=libnl
  10. PKG_VERSION:=1.1
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://people.suug.ch/~tgr/libnl/files/
  14. PKG_MD5SUM:=ae970ccd9144e132b68664f98e7ceeb1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/libnl
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=netlink socket library
  20. URL:=http://people.suug.ch/~tgr/libnl/
  21. endef
  22. define Package/libnl/description
  23. This package contains a library for applications dealing with netlink sockets
  24. endef
  25. define Build/Compile
  26. $(call Build/Compile/Default)
  27. make -C $(PKG_BUILD_DIR) \
  28. DESTDIR="$(PKG_INSTALL_DIR)" \
  29. install
  30. endef
  31. ifneq ($(CONFIG_LINUX_2_6_23)$(CONFIG_LINUX_2_6_24),)
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)
  34. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  35. mkdir -p $(1)/usr/include/libnl
  36. $(CP) $(PKG_BUILD_DIR)/include/linux $(1)/usr/include/libnl/
  37. endef
  38. define Package/libnl/install
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libnl.so.* $(1)/usr/lib/
  41. endef
  42. endif
  43. $(eval $(call BuildPackage,libnl))