Remove unused function
[umurmur.git] / openwrt / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=umurmur_12x
4 PKG_VERSION:=0.2.0
5 PKG_RELEASE:=1
6
7 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
8
9 include $(INCLUDE_DIR)/package.mk
10
11
12 define Package/umurmur_12x
13         SECTION:=net
14         CATEGORY:=Network
15         TITLE:=uMurmur_12x
16         DEPENDS:=+libopenssl +libconfig
17         URL:=http://code.google.com/p/umurmur
18         MAINTAINER:=Martin Johansson <martin@fatbob.nu>
19 endef
20
21 define Package/umurmur_12x/description
22         Minimalistic Mumble server daemon.
23 endef
24
25 TARGET_CFLAGS := \
26         -DWRT_TARGET \
27         $(TARGET_CFLAGS)
28
29 define Build/Prepare
30         mkdir -p $(PKG_BUILD_DIR)
31         $(CP) ./src/* $(PKG_BUILD_DIR)/
32 endef
33
34 define Build/CompileTarget
35         CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)"\
36         $(MAKE) -C $(PKG_BUILD_DIR)/umurmur_12x.$(1)/umurmur_12x \
37                 all
38 endef
39
40 define Package/umurmur_12x/install
41         $(INSTALL_DIR) $(1)/usr/bin
42         $(INSTALL_BIN) $(PKG_BUILD_DIR)/umurmur_12x $(1)/usr/bin/
43         $(INSTALL_DIR) $(1)/etc
44         $(INSTALL_CONF) ./files/umurmur.conf $(1)/etc/
45         $(INSTALL_DIR) $(1)/etc/init.d
46         $(INSTALL_BIN) ./files/umurmur.init $(1)/etc/init.d/umurmur_12x
47         $(INSTALL_DIR) $(1)/etc/umurmur
48 endef
49
50 $(eval $(call BuildPackage,umurmur_12x))
51