Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libbsd
  3. PKG_VERSION:=0.10.0
  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:=34b8adc726883d0e85b3118fa13605e179a62b31ba51f676136ecb2d0bc1a887
  8. PKG_LICENSE:=BSD-4-Clause
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_INSTALL:=1
  11. PKG_BUILD_PARALLEL:=1
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/libbsd
  14. SECTION:=libs
  15. CATEGORY:=Libraries
  16. TITLE:=common BSD library
  17. ABI_VERSION:=0
  18. endef
  19. define Package/libbsd/description
  20. 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.
  21. endef
  22. define Build/InstallDev
  23. $(INSTALL_DIR) $(1)/usr/lib
  24. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  25. $(INSTALL_DIR) $(1)/usr/include
  26. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.{la,so*} $(1)/usr/lib/
  27. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbsd*.pc $(1)/usr/lib/pkgconfig/
  28. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  29. endef
  30. define Package/libbsd/install
  31. $(INSTALL_DIR) $(1)/usr/lib
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.so.* $(1)/usr/lib/
  33. endef
  34. $(eval $(call BuildPackage,libbsd))