Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libbsd
  3. PKG_VERSION:=0.3.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=http://libbsd.freedesktop.org/releases
  7. #PKG_MD5SUM:=d0870f2de55d59c1c8419f36e8fac150
  8. PKG_LICENSE:=BSD-4-Clause
  9. PKG_LICENSE_FILES:=COPYING
  10. include $(INCLUDE_DIR)/package.mk
  11. PKG_INSTALL:=1
  12. define Package/libbsd
  13. SECTION:=libs
  14. CATEGORY:=Libraries
  15. DEPENDS:=@USE_EGLIBC
  16. TITLE:=common BSD library
  17. endef
  18. define Package/libbsd/description
  19. This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project.
  20. endef
  21. define Build/InstallDev
  22. $(INSTALL_DIR) \
  23. $(1)/lib \
  24. $(1)/usr/include
  25. $(CP) \
  26. $(PKG_INSTALL_DIR)/lib/libbsd.so* \
  27. $(1)/lib/
  28. $(CP) \
  29. $(PKG_INSTALL_DIR)/usr/include/* \
  30. $(1)/usr/include/
  31. ( cd $(1)/lib ; ln -s libbsd.so.$(PKG_VERSION) libbsd.so )
  32. endef
  33. define Package/libbsd/install
  34. $(INSTALL_DIR) \
  35. $(1)/lib
  36. $(CP) \
  37. $(PKG_INSTALL_DIR)/lib/libbsd.so* \
  38. $(1)/lib/
  39. ( cd $(1)/lib ; ln -s libbsd.so.$(PKG_VERSION) libbsd.so )
  40. endef
  41. $(eval $(call BuildPackage,libbsd))