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.

60 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2008-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=pthsem
  9. PKG_VERSION:=2.0.8
  10. PKG_RELEASE:=3
  11. PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
  12. PKG_LICENSE:=LGPL-2.1+
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=http://www.auto.tuwien.ac.at/~mkoegler/pth/
  16. PKG_MD5SUM:=9144b26dcc27e67498d63dd5456f934c
  17. PKG_FIXUP:=autoreconf
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/pthsem
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=GNU pth extended with semaphore support
  25. URL:=http://www.auto.tuwien.ac.at/~mkoegler/index.php/pth
  26. endef
  27. define Package/pthsem/description
  28. GNU pth is a user mode multi threading library.
  29. pthsem is an extend version, with support for semaphores added. It can be installed parallel to a normal pth.
  30. endef
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pthsem-config $(1)/usr/bin/
  34. $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/pthsem-config
  35. $(INSTALL_DIR) $(1)/usr/include
  36. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.{a,la,so*} $(1)/usr/lib/
  39. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/pthsem.pc $(1)/usr/lib/pkgconfig/
  41. $(INSTALL_DIR) $(2)/bin
  42. $(LN) ../../usr/bin/pthsem-config $(2)/bin/
  43. endef
  44. define Package/pthsem/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.so.* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,pthsem))