X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=openwrt%2FMakefile.openssl;fp=openwrt%2FMakefile.openssl;h=f989ee7ca70273bd99142398196238f593e54579;hb=a605362cab90bdc81604fee1cbcbfbfe7849935d;hp=0000000000000000000000000000000000000000;hpb=c9d37432d72c2f4f4645236006438e5841c30d5f;p=umurmur.git diff --git a/openwrt/Makefile.openssl b/openwrt/Makefile.openssl new file mode 100644 index 0000000..f989ee7 --- /dev/null +++ b/openwrt/Makefile.openssl @@ -0,0 +1,52 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=umurmur-openssl +PKG_VERSION:=0.2.0 +PKG_RELEASE:=1 + +PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) + +include $(INCLUDE_DIR)/package.mk + + +define Package/umurmur-openssl + SECTION:=net + CATEGORY:=Network + TITLE:=uMurmur + DEPENDS:=+libopenssl +libconfig + URL:=http://code.google.com/p/umurmur + MAINTAINER:=Martin Johansson +endef + +define Package/umurmur-openssl/description + Minimalistic Mumble server daemon. + Uses OpenSSL library for SSL and crypto. +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-openssl/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-openssl)) +