Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libbsd
  3. PKG_VERSION:=0.3.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=http://libbsd.freedesktop.org/releases
  7. #PKG_MD5SUM:=d0870f2de55d59c1c8419f36e8fac150
  8. include $(INCLUDE_DIR)/package.mk
  9. PKG_INSTALL:=1
  10. define Package/libbsd
  11. SECTION:=libs
  12. CATEGORY:=Libraries
  13. DEPENDS:=@!USE_UCLIBC
  14. TITLE:=common BSD library
  15. endef
  16. define Package/libbsd/description
  17. 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.
  18. endef
  19. define Build/InstallDev
  20. $(INSTALL_DIR) \
  21. $(1)/lib \
  22. $(1)/usr/include
  23. $(CP) \
  24. $(PKG_INSTALL_DIR)/lib/libbsd.so* \
  25. $(1)/lib/
  26. $(CP) \
  27. $(PKG_INSTALL_DIR)/usr/include/* \
  28. $(1)/usr/include/
  29. ( cd $(1)/lib ; ln -s libbsd.so.$(PKG_VERSION) libbsd.so )
  30. endef
  31. define Package/libbsd/install
  32. $(INSTALL_DIR) \
  33. $(1)/lib
  34. $(CP) \
  35. $(PKG_INSTALL_DIR)/lib/libbsd.so* \
  36. $(1)/lib/
  37. ( cd $(1)/lib ; ln -s libbsd.so.$(PKG_VERSION) libbsd.so )
  38. endef
  39. $(eval $(call BuildPackage,libbsd))