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.

67 lines
1.6 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_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. MAKE_FLAGS += \
  32. OPTIM="$(TARGET_CFLAGS)" \
  33. CFLAGS="$(TARGET_CFLAGS)" \
  34. DESTDIR="$(PKG_INSTALL_DIR)"
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(2)/bin
  37. $(INSTALL_BIN) \
  38. $(PKG_INSTALL_DIR)/usr/bin/pthsem-config \
  39. $(2)/bin/
  40. $(SED) \
  41. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  42. $(2)/bin/pthsem-config
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h \
  45. $(1)/usr/include/
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.{a,la,so*} \
  48. $(1)/usr/lib/
  49. endef
  50. define Package/pthsem/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpthsem.so.* $(1)/usr/lib/
  53. endef
  54. $(eval $(call BuildPackage,pthsem))