source: packages/net/umurmur/Makefile @ 25587

Last change on this file since 25587 was 25587, checked in by florian, 5 years ago

[package] muninlite: update to Version 1.0.4 (#8877)

Signed-off-by: Andreas Oeldenberger <Andreas.Oeldenberger@…>

File size: 2.4 KB
Line 
1#
2# Copyright (C) 2009-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=umurmur
10PKG_VERSION:=0.2.6
11PKG_RELEASE:=1
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=http://umurmur.googlecode.com/files/
15PKG_MD5SUM:=06dc224be5160e172574c9248682140b
16
17PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/umurmur/Default
22  SECTION:=net
23  CATEGORY:=Network
24  TITLE:=uMurmur
25  DEPENDS:=+libconfig
26  URL:=http://code.google.com/p/umurmur
27  MAINTAINER:=Martin Johansson <martin@fatbob.nu>
28endef
29
30define Package/umurmur/Default/description
31  Minimalistic Mumble server daemon.
32endef
33
34define Package/umurmur-openssl
35  $(call Package/umurmur/Default)
36  TITLE+= (with OpenSSL support)
37  DEPENDS+= +libopenssl
38  VARIANT:=openssl
39endef
40
41define Package/umurmur-openssl/description
42  $(call Package/umurmur/Default/description)
43  Uses OpenSSL library for SSL and crypto.
44endef
45
46define Package/umurmur-polarssl
47  $(call Package/umurmur/Default)
48  TITLE+= (with PolarSSL support)
49  DEPENDS+= +libpolarssl
50  VARIANT:=polarssl
51endef
52
53define Package/umurmur-polarssl/description
54  $(call Package/umurmur/Default/description)
55  Uses the PolarSSL library for SSL and crypto.
56endef
57
58define Build/Compile
59        CC="$(TARGET_CC)" \
60        CFLAGS="$(TARGET_CFLAGS)" \
61        LDFLAGS="$(TARGET_LDFLAGS)" \
62        $(MAKE) -C $(PKG_BUILD_DIR)/src all
63endef
64
65define Package/umurmur-openssl/conffiles
66/etc/umurmur.conf
67endef
68
69Package/umurmur-polarssl/conffiles = $(Package/umurmur-openssl/conffiles)
70
71define Package/umurmur-openssl/install
72        $(INSTALL_DIR) $(1)/usr/bin
73        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/umurmurd $(1)/usr/bin/
74        $(INSTALL_DIR) $(1)/etc
75        $(INSTALL_CONF) $(PKG_BUILD_DIR)/openwrt/files/umurmur.conf $(1)/etc/
76        $(INSTALL_DIR) $(1)/etc/init.d
77        $(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/files/umurmur.init $(1)/etc/init.d/umurmur
78        $(INSTALL_DIR) $(1)/etc/umurmur
79endef
80
81Package/umurmur-polarssl/install = $(Package/umurmur-openssl/install)
82
83ifeq ($(BUILD_VARIANT),openssl)
84  TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
85  TARGET_LDFLAGS += -lcrypto -lssl
86endif
87
88ifeq ($(BUILD_VARIANT),polarssl)
89  TARGET_CFLAGS += -DUSE_POLARSSL -I$(STAGING_DIR)/usr/include
90  TARGET_LDFLAGS += -lpolarssl
91endif
92
93$(eval $(call BuildPackage,umurmur-openssl))
94$(eval $(call BuildPackage,umurmur-polarssl))
Note: See TracBrowser for help on using the repository browser.