liblo: moved to github
[openwrt.org/packages.git] / net / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# Copyright (C) 2009-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
 
PKG_NAME:=umurmur
PKG_VERSION:=0.2.14
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://umurmur.googlecode.com/files
PKG_MD5SUM:=e22121b4b91f4c9de43f858f6defa0b0
 
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
 
include $(INCLUDE_DIR)/package.mk
 
define Package/umurmur/Default
  SECTION:=net
  CATEGORY:=Network
  SUBMENU:=Instant Messaging
  TITLE:=uMurmur
  DEPENDS:=+libconfig +libprotobuf-c
  URL:=http://code.google.com/p/umurmur
  MAINTAINER:=Martin Johansson <martin@fatbob.nu>
endef
 
define Package/umurmur/Default/description
  Minimalistic Mumble server daemon.
endef
 
define Package/umurmur-openssl
  $(call Package/umurmur/Default)
  TITLE+= (with OpenSSL support)
  DEPENDS+= +libopenssl
  VARIANT:=openssl
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
  VARIANT:=polarssl
endef
 
define Package/umurmur-polarssl/description
  $(call Package/umurmur/Default/description)
  Uses the PolarSSL library for SSL and crypto.
endef
 
define Build/Compile
        CC="$(TARGET_CC)" \
        CFLAGS="$(TARGET_CFLAGS)" \
        LDFLAGS="$(TARGET_LDFLAGS)" \
        $(MAKE) -C $(PKG_BUILD_DIR)/src all
endef
 
define Package/umurmur-openssl/conffiles
/etc/umurmur.conf
endef
 
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
endef
 
Package/umurmur-polarssl/install = $(Package/umurmur-openssl/install)
 
ifeq ($(BUILD_VARIANT),openssl)
  CONFIGURE_ARGS += \
        --with-ssl=openssl
endif
 
ifeq ($(BUILD_VARIANT),polarssl)
  CONFIGURE_ARGS += \
        --with-ssl=polarssl
endif
 
$(eval $(call BuildPackage,umurmur-openssl))
$(eval $(call BuildPackage,umurmur-polarssl))
 
comments