2009-11-22 16:21:34 +00:00
|
|
|
#
|
2012-01-24 16:38:35 +00:00
|
|
|
# Copyright (C) 2009-2012 OpenWrt.org
|
2009-11-22 16:21:34 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=umurmur
|
2012-05-28 00:17:24 +00:00
|
|
|
PKG_VERSION:=0.2.10
|
|
|
|
PKG_RELEASE:=1
|
2009-11-22 16:21:34 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2012-05-28 00:17:24 +00:00
|
|
|
PKG_SOURCE_URL:=http://umurmur.googlecode.com/files
|
|
|
|
PKG_MD5SUM:=4d71a699bddce3df0996b5dd0a279b47
|
2010-02-27 18:45:42 +00:00
|
|
|
|
2010-03-14 03:26:58 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
2009-11-22 16:21:34 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-02-27 18:45:42 +00:00
|
|
|
define Package/umurmur/Default
|
2009-11-22 16:21:34 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 08:17:47 +00:00
|
|
|
SUBMENU:=Instant Messaging
|
2009-11-22 16:21:34 +00:00
|
|
|
TITLE:=uMurmur
|
2011-11-25 02:23:54 +00:00
|
|
|
DEPENDS:=+libconfig +libprotobuf-c
|
2009-11-22 16:21:34 +00:00
|
|
|
URL:=http://code.google.com/p/umurmur
|
|
|
|
MAINTAINER:=Martin Johansson <martin@fatbob.nu>
|
|
|
|
endef
|
|
|
|
|
2010-02-27 18:45:42 +00:00
|
|
|
define Package/umurmur/Default/description
|
2009-11-22 16:21:34 +00:00
|
|
|
Minimalistic Mumble server daemon.
|
|
|
|
endef
|
|
|
|
|
2010-02-27 18:45:42 +00:00
|
|
|
define Package/umurmur-openssl
|
|
|
|
$(call Package/umurmur/Default)
|
|
|
|
TITLE+= (with OpenSSL support)
|
|
|
|
DEPENDS+= +libopenssl
|
2010-03-14 03:26:58 +00:00
|
|
|
VARIANT:=openssl
|
2010-02-27 18:45:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/umurmur-openssl/description
|
|
|
|
$(call Package/umurmur/Default/description)
|
|
|
|
Uses OpenSSL library for SSL and crypto.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/umurmur-polarssl
|
|
|
|
$(call Package/umurmur/Default)
|
|
|
|
TITLE+= (with PolarSSL support)
|
|
|
|
DEPENDS+= +libpolarssl
|
2010-03-14 03:26:58 +00:00
|
|
|
VARIANT:=polarssl
|
2010-02-27 18:45:42 +00:00
|
|
|
endef
|
2009-11-22 16:21:34 +00:00
|
|
|
|
2010-02-27 18:45:42 +00:00
|
|
|
define Package/umurmur-polarssl/description
|
|
|
|
$(call Package/umurmur/Default/description)
|
|
|
|
Uses the PolarSSL library for SSL and crypto.
|
|
|
|
endef
|
2009-11-22 16:21:34 +00:00
|
|
|
|
2010-02-27 18:45:42 +00:00
|
|
|
define Build/Compile
|
|
|
|
CC="$(TARGET_CC)" \
|
2010-03-14 03:26:58 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
2010-02-27 18:45:42 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/src all
|
2010-03-14 03:26:58 +00:00
|
|
|
endef
|
2010-02-27 18:45:42 +00:00
|
|
|
|
2010-03-14 03:26:58 +00:00
|
|
|
define Package/umurmur-openssl/conffiles
|
2010-02-27 18:45:42 +00:00
|
|
|
/etc/umurmur.conf
|
|
|
|
endef
|
|
|
|
|
2010-03-14 03:26:58 +00:00
|
|
|
Package/umurmur-polarssl/conffiles = $(Package/umurmur-openssl/conffiles)
|
|
|
|
|
|
|
|
define Package/umurmur-openssl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/umurmurd $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/openwrt/files/umurmur.conf $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/files/umurmur.init $(1)/etc/init.d/umurmur
|
|
|
|
$(INSTALL_DIR) $(1)/etc/umurmur
|
2010-02-27 18:45:42 +00:00
|
|
|
endef
|
|
|
|
|
2010-03-14 03:26:58 +00:00
|
|
|
Package/umurmur-polarssl/install = $(Package/umurmur-openssl/install)
|
2010-02-27 18:45:42 +00:00
|
|
|
|
2010-03-14 03:26:58 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),openssl)
|
2012-01-24 16:38:35 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-ssl=openssl
|
2010-02-27 18:45:42 +00:00
|
|
|
endif
|
|
|
|
|
2010-03-14 03:26:58 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),polarssl)
|
2012-01-24 16:38:35 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-ssl=polarssl
|
2010-03-14 03:26:58 +00:00
|
|
|
endif
|
2010-02-27 18:45:42 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,umurmur-openssl))
|
|
|
|
$(eval $(call BuildPackage,umurmur-polarssl))
|