Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libbsd
  3. PKG_VERSION:=0.11.7
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  6. PKG_SOURCE_URL:=https://libbsd.freedesktop.org/releases
  7. PKG_HASH:=9baa186059ebbf25c06308e9f991fda31f7183c0f24931826d83aa6abd8a0261
  8. PKG_LICENSE:=BSD-4-Clause
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_INSTALL:=1
  11. PKG_BUILD_PARALLEL:=1
  12. PKG_BUILD_DEPENDS := libmd
  13. PKG_FIXUP:=autoreconf
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/libbsd
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=common BSD library
  19. ABI_VERSION:=0
  20. endef
  21. define Package/libbsd/description
  22. 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.
  23. endef
  24. define Build/InstallDev
  25. $(INSTALL_DIR) $(1)/usr/lib
  26. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  27. $(INSTALL_DIR) $(1)/usr/include
  28. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.{la,so*} $(1)/usr/lib/
  29. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbsd*.pc $(1)/usr/lib/pkgconfig/
  30. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  31. endef
  32. define Package/libbsd/install
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.so.* $(1)/usr/lib/
  35. endef
  36. $(eval $(call BuildPackage,libbsd))