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.

68 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2008-2014 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:=2
  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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_FIXUP:=autoreconf
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/pthsem
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=GNU pth extended with semaphore support
  26. URL:=http://www.auto.tuwien.ac.at/~mkoegler/index.php/pth
  27. endef
  28. define Package/pthsem/description
  29. GNU pth is a user mode multi threading library.
  30. pthsem is an extend version, with support for semaphores added. It can be installed parallel to a normal pth.
  31. endef
  32. MAKE_FLAGS += \
  33. OPTIM="$(TARGET_CFLAGS)" \
  34. CFLAGS="$(TARGET_CFLAGS)" \
  35. DESTDIR="$(PKG_INSTALL_DIR)"
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(2)/bin
  38. $(INSTALL_BIN) \
  39. $(PKG_INSTALL_DIR)/usr/bin/pthsem-config \
  40. $(2)/bin/
  41. $(SED) \
  42. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  43. $(2)/bin/pthsem-config
  44. $(INSTALL_DIR) $(1)/usr/include
  45. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h \
  46. $(1)/usr/include/
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.{a,la,so*} \
  49. $(1)/usr/lib/
  50. endef
  51. define Package/pthsem/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.so.* $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,pthsem))