Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libbsd
  3. PKG_VERSION:=0.8.7
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  6. PKG_HASH:=f548f10e5af5a08b1e22889ce84315b1ebe41505b015c9596bad03fd13a12b31
  7. PKG_SOURCE_URL:=https://libbsd.freedesktop.org/releases
  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. TITLE:=common BSD library
  16. endef
  17. define Package/libbsd/description
  18. 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.
  19. endef
  20. define Build/InstallDev
  21. $(INSTALL_DIR) $(1)/usr/lib
  22. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  23. $(INSTALL_DIR) $(1)/usr/include
  24. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.{la,so*} $(1)/usr/lib/
  25. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbsd*.pc $(1)/usr/lib/pkgconfig/
  26. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  27. endef
  28. define Package/libbsd/install
  29. $(INSTALL_DIR) $(1)/usr/lib
  30. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.so* $(1)/usr/lib/
  31. endef
  32. $(eval $(call BuildPackage,libbsd))