Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libbsd
  3. PKG_VERSION:=0.11.7
  4. PKG_RELEASE:=2
  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_CPE_ID:=cpe:/a:freedesktop:libbsd
  11. PKG_INSTALL:=1
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_BUILD_DEPENDS := libmd
  14. PKG_FIXUP:=autoreconf
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/libbsd
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=common BSD library
  20. ABI_VERSION:=0
  21. endef
  22. define Package/libbsd/description
  23. 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.
  24. endef
  25. TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
  26. define Build/InstallDev
  27. $(INSTALL_DIR) $(1)/usr/lib
  28. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  29. $(INSTALL_DIR) $(1)/usr/include
  30. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.{la,so*} $(1)/usr/lib/
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbsd*.pc $(1)/usr/lib/pkgconfig/
  32. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  33. endef
  34. define Package/libbsd/install
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.so.* $(1)/usr/lib/
  37. endef
  38. $(eval $(call BuildPackage,libbsd))