Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_MIRROR_HASH:=29c62a600128e9189b1b2e1aea568546178eedf739527f657873b3b773072ecb
  17. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  18. PKG_LICENSE:=LGPL-2.1
  19. PKG_LICENSE_FILES:=COPYING AUTHORS
  20. PKG_FIXUP:=autoreconf
  21. PKG_REMOVE_FILES:=autogen.sh
  22. PKG_BUILD_PARALLEL:=1
  23. PKG_INSTALL:=1
  24. include $(INCLUDE_DIR)/package.mk
  25. include $(INCLUDE_DIR)/host-build.mk
  26. define Package/musl-fts
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. TITLE:=fts implementation for musl libc
  30. URL:=https://github.com/pullmoll/musl-fts
  31. DEPENDS:= +libpthread
  32. endef
  33. define Package/musl-fts/description
  34. 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.
  35. endef
  36. HOST_CONFIGURE_ARGS += --disable-shared --with-pic
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/fts.h $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfts.so* $(1)/usr/lib/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/musl-fts.pc $(1)/usr/lib/pkgconfig/
  43. endef
  44. define Package/musl-fts/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfts.so* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,musl-fts))
  49. $(eval $(call HostBuild))