You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2017 Lucian Cristian <lucian.cristian@gmail.com>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. # updated to work with latest source from abrasive
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=musl-fts
  10. PKG_VERSION:=1.2.7
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/pullmoll/musl-fts.git
  14. PKG_SOURCE_VERSION:=0bde52df588e8969879a2cae51c3a4774ec62472
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  16. PKG_MAINTAINER:= Lucian Cristian <lucian.cristian@gmail.com>
  17. PKG_LICENSE:=LGPL-2.1
  18. PKG_LICENSE_FILES:=COPYING AUTHORS
  19. PKG_FIXUP:=autoreconf
  20. PKG_REMOVE_FILES:=autogen.sh
  21. PKG_BUILD_PARALLEL:=1
  22. PKG_INSTALL:=1
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/musl-fts
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=fts implementation for musl libc
  28. URL:=https://github.com/pullmoll/musl-fts
  29. DEPENDS:= +libpthread
  30. endef
  31. define Package/musl-fts/description
  32. The musl-fts package implements the fts(3) functions fts_open, fts_read, fts_children, fts_set and fts_close, which are missing in musl libc.
  33. endef
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/include
  36. $(CP) $(PKG_INSTALL_DIR)/usr/include/fts.h $(1)/usr/include/
  37. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfts.so* $(1)/usr/lib/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/musl-fts.pc $(1)/usr/lib/pkgconfig/
  40. endef
  41. define Package/musl-fts/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfts.so* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,musl-fts))