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.

65 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2021 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:=openpgm
  9. PKG_VERSION:=5.3.128
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL_FILE:=release-5-3-128
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_URL_FILE).tar.gz
  13. PKG_SOURCE_URL:=https://codeload.github.com/steve-o/openpgm/tar.gz
  14. PKG_HASH:=8d707ef8dda45f4a7bc91016d7f2fed6a418637185d76c7ab30b306499c6d393
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_URL_FILE)
  16. PKG_FIXUP:=autoreconf
  17. MAKE_PATH:=openpgm/pgm
  18. PKG_AUTOMAKE_PATHS:=$(MAKE_PATH)
  19. PKG_MAINTAINER:=Ye Holmes <yeholmes@outlook.com>
  20. PKG_LICENSE:=LGPL-2.1-or-later
  21. PKG_LICENSE_FILES:=$(MAKE_PATH)/LICENSE
  22. PKG_CPE_ID:=cpe:/a:openpgm:openpgm
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/openpgm
  25. TITLE:=OpenPGM, an implementation of the PGM protocol
  26. URL:=http://openpgm.googlecode.com/
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. endef
  30. define Package/openpgm/description
  31. OpenPGM is a library implementing the PGM reliable multicast
  32. network protocol. For more information about OpenPGM, see:
  33. http://openpgm.googlecode.com/
  34. endef
  35. CONFIGURE_VARS += ac_cv_file__proc_cpuinfo=yes \
  36. ac_cv_file__dev_rtc=no ac_cv_file__dev_hpet=no
  37. CONFIGURE_ARGS += --enable-static=no --enable-shared=yes
  38. define Build/Configure
  39. $(call Build/Configure/Default,,,$(MAKE_PATH))
  40. endef
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include/pgm
  43. $(CP) $(PKG_BUILD_DIR)/$(MAKE_PATH)/include/pgm/* $(1)/usr/include/pgm/
  44. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  45. $(CP) $(PKG_BUILD_DIR)/$(MAKE_PATH)/.libs/libpgm*.so* $(1)/usr/lib/
  46. $(CP) $(PKG_BUILD_DIR)/$(MAKE_PATH)/openpgm-5.3.pc $(1)/usr/lib/pkgconfig/
  47. endef
  48. define Package/openpgm/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_BUILD_DIR)/$(MAKE_PATH)/.libs/libpgm*.so* $(1)/usr/lib/
  51. endef
  52. $(eval $(call BuildPackage,openpgm))