Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libbsd
  3. PKG_VERSION:=0.8.7
  4. PKG_RELEASE:=3
  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. ABI_VERSION:=0
  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) $(1)/usr/lib
  23. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  24. $(INSTALL_DIR) $(1)/usr/include
  25. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.{la,so*} $(1)/usr/lib/
  26. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbsd*.pc $(1)/usr/lib/pkgconfig/
  27. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  28. endef
  29. define Package/libbsd/install
  30. $(INSTALL_DIR) $(1)/usr/lib
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.so.* $(1)/usr/lib/
  32. endef
  33. $(eval $(call BuildPackage,libbsd))