X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=openwrt%2FMakefile;fp=openwrt%2FMakefile;h=cb5fe9e788e4279ae4f1c92c8790b62dc9f80898;hb=340771883dfd2bb0c85590880612477e9187e55f;hp=0000000000000000000000000000000000000000;hpb=5191e1cb38d24ebf5c180ac7911893ca8bc4031f;p=umurmur.git diff --git a/openwrt/Makefile b/openwrt/Makefile new file mode 100644 index 0000000..cb5fe9e --- /dev/null +++ b/openwrt/Makefile @@ -0,0 +1,51 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=umurmur +PKG_VERSION:=0.1.3 +PKG_RELEASE:=1 + +PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) + +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 +endef + +define Package/umurmur/description + Minimalistic Mumble server daemon. +endef + +TARGET_CFLAGS := \ + -DWRT_TARGET \ + $(TARGET_CFLAGS) + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) + $(CP) ./src/* $(PKG_BUILD_DIR)/ +endef + +define Build/CompileTarget + CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)"\ + $(MAKE) -C $(PKG_BUILD_DIR)/umurmur.$(1)/umurmur \ + all +endef + +define Package/umurmur/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/umurmurd $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/etc + $(INSTALL_CONF) ./files/umurmur.conf $(1)/etc/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/umurmur.init $(1)/etc/init.d/umurmur + $(INSTALL_DIR) $(1)/etc/umurmur +endef + +$(eval $(call BuildPackage,umurmur)) +