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.

103 lines
2.5 KiB

  1. #
  2. # Copyright (C) 2009-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:=umurmur
  9. PKG_VERSION:=0.2.16
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=git://github.com/umurmur/umurmur.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_VERSION:=0.2.16
  16. PKG_INSTALL:=1
  17. PKG_FIXUP:=autoreconf
  18. PKG_MAINTAINER:=Martin Johansson <martin@fatbob.nu>
  19. PKG_LICENSE:=BSD-3-Clause
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/umurmur/Default
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=Instant Messaging
  26. TITLE:=uMurmur
  27. DEPENDS:=+libconfig +libprotobuf-c
  28. URL:=http://code.google.com/p/umurmur
  29. MAINTAINER:=Martin Johansson <martin@fatbob.nu>
  30. endef
  31. define Package/umurmur/Default/description
  32. Minimalistic Mumble server daemon.
  33. endef
  34. define Package/umurmur-openssl
  35. $(call Package/umurmur/Default)
  36. TITLE+= (with OpenSSL support)
  37. DEPENDS+= +libopenssl
  38. VARIANT:=openssl
  39. endef
  40. define Package/umurmur-openssl/description
  41. $(call Package/umurmur/Default/description)
  42. Uses OpenSSL library for SSL and crypto.
  43. endef
  44. define Package/umurmur-polarssl
  45. $(call Package/umurmur/Default)
  46. TITLE+= (with PolarSSL support)
  47. DEPENDS+= +libpolarssl
  48. VARIANT:=polarssl
  49. endef
  50. define Package/umurmur-polarssl/description
  51. $(call Package/umurmur/Default/description)
  52. Uses the PolarSSL library for SSL and crypto.
  53. endef
  54. define Build/Compile
  55. CC="$(TARGET_CC)" \
  56. CFLAGS="$(TARGET_CFLAGS)" \
  57. LDFLAGS="$(TARGET_LDFLAGS)" \
  58. $(MAKE) -C $(PKG_BUILD_DIR)/src all
  59. endef
  60. define Package/umurmur-openssl/conffiles
  61. /etc/umurmur.conf
  62. endef
  63. Package/umurmur-polarssl/conffiles = $(Package/umurmur-openssl/conffiles)
  64. define Package/umurmur-openssl/install
  65. $(INSTALL_DIR) $(1)/usr/bin
  66. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/umurmurd $(1)/usr/bin/
  67. $(INSTALL_DIR) $(1)/etc
  68. $(INSTALL_CONF) $(PKG_BUILD_DIR)/openwrt/files/umurmur.conf $(1)/etc/
  69. $(INSTALL_DIR) $(1)/etc/init.d
  70. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/files/umurmur.init $(1)/etc/init.d/umurmur
  71. $(INSTALL_DIR) $(1)/etc/umurmur
  72. endef
  73. Package/umurmur-polarssl/install = $(Package/umurmur-openssl/install)
  74. ifeq ($(BUILD_VARIANT),openssl)
  75. CONFIGURE_ARGS += \
  76. --with-ssl=openssl
  77. endif
  78. ifeq ($(BUILD_VARIANT),polarssl)
  79. CONFIGURE_ARGS += \
  80. --with-ssl=polarssl
  81. endif
  82. $(eval $(call BuildPackage,umurmur-openssl))
  83. $(eval $(call BuildPackage,umurmur-polarssl))