packages/net/umurmur/Makefile
florian 556b8e3707 [package] add umurmur (#6196)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@18483 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-22 16:21:34 +00:00

57 lines
1.3 KiB
Makefile

#
# Copyright (C) 2009 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.1.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://umurmur.googlecode.com/files/
PKG_MD5SUM:=f72b6f0aee7fdba31cd4faa9fb01ab6d
include $(INCLUDE_DIR)/package.mk
define Package/umurmur
SECTION:=net
CATEGORY:=Network
TITLE:=uMurmur
DEPENDS:=+libopenssl +libconfig
URL:=http://code.google.com/p/umurmur
MAINTAINER:=Martin Johansson <martin@fatbob.nu>
endef
define Package/umurmur/description
Minimalistic Mumble server daemon.
endef
TARGET_CFLAGS := \
-DWRT_TARGET \
-I$(STAGING_DIR)/usr/include \
$(TARGET_CFLAGS)
define Build/Compile
CC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
$(MAKE) -C $(PKG_BUILD_DIR)/src \
all
endef
define Package/umurmur/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)/files/umurmur.conf $(1)/etc/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/umurmur.init $(1)/etc/init.d/umurmur
$(INSTALL_DIR) $(1)/etc/umurmur
endef
$(eval $(call BuildPackage,umurmur))