Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_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. TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
  25. define Build/InstallDev
  26. $(INSTALL_DIR) $(1)/usr/lib
  27. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  28. $(INSTALL_DIR) $(1)/usr/include
  29. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.{la,so*} $(1)/usr/lib/
  30. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbsd*.pc $(1)/usr/lib/pkgconfig/
  31. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  32. endef
  33. define Package/libbsd/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.so.* $(1)/usr/lib/
  36. endef
  37. $(eval $(call BuildPackage,libbsd))