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.

66 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=npth
  3. PKG_VERSION:=1.6
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=https://gnupg.org/ftp/gcrypt/$(PKG_NAME)
  7. PKG_HASH:=1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1
  8. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  9. PKG_LICENSE:=LGPL-2.1-or-later
  10. PKG_LICENSE_FILES:=COPYING.LIB
  11. PKG_FIXUP:=autoreconf
  12. PKG_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/libnpth
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=The New GNU Portable Threads Library
  19. URL:=https://gnupg.org/software/npth/index.html
  20. DEPENDS:=+libgpg-error
  21. endef
  22. define Package/libnpth/description
  23. nPth is a library to provide the GNU Pth API and thus a non-preemptive threads implementation.
  24. endef
  25. define Build/InstallDev
  26. $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
  27. $(INSTALL_BIN) \
  28. $(PKG_INSTALL_DIR)/usr/bin/npth-config \
  29. $(2)/bin/
  30. $(SED) \
  31. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  32. $(2)/bin/npth-config
  33. ln -sf $(STAGING_DIR)/host/bin/npth-config $(1)/usr/bin/npth-config
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(INSTALL_DATA) \
  36. $(PKG_INSTALL_DIR)/usr/include/npth.h \
  37. $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/lib/libnpth.{la,so*} \
  41. $(1)/usr/lib/
  42. $(INSTALL_DIR) $(1)/usr/share/aclocal
  43. $(INSTALL_DATA) \
  44. $(PKG_INSTALL_DIR)/usr/share/aclocal/npth.m4 \
  45. $(1)/usr/share/aclocal/
  46. endef
  47. define Package/libnpth/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) \
  50. $(PKG_INSTALL_DIR)/usr/lib/libnpth.so.* \
  51. $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,libnpth))