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.

106 lines
2.6 KiB

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