1
0

Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #
  2. # Copyright (C) 2014-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mailsend
  9. PKG_VERSION:=1.17b15
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/muquit/mailsend/archive/$(PKG_VERSION)
  13. PKG_MD5SUM:=60103c411a8627e893d35e7836f904e8
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=COPYRIGHT
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/mailsend/default
  20. SECTION:=mail
  21. CATEGORY:=Mail
  22. TITLE:=A command-line mail sender
  23. URL:=https://github.com/muquit/mailsend
  24. endef
  25. define Package/mailsend-nossl
  26. $(call Package/mailsend/default)
  27. TITLE+= (without SSL)
  28. VARIANT:=nossl
  29. endef
  30. define Package/mailsend
  31. $(call Package/mailsend/default)
  32. TITLE+= (with SSL)
  33. DEPENDS:=+libopenssl
  34. VARIANT:=ssl
  35. endef
  36. ifeq ($(BUILD_VARIANT),ssl)
  37. CONFIGURE_ARGS+= --with-openssl=$(STAGING_DIR)/usr
  38. endif
  39. define Package/mailsend/description
  40. $(call Package/mailsend-nossl/description)
  41. .
  42. SSL supported is provided by OpenSSL.
  43. endef
  44. define Package/mailsend-nossl/description
  45. Mailsend is a simple command line program to send mail via SMTP protocol.
  46. endef
  47. define Build/Compile
  48. $(MAKE) -C $(PKG_BUILD_DIR)
  49. endef
  50. define Package/mailsend/install
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mailsend $(1)/usr/bin/
  53. endef
  54. Package/mailsend-nossl/install=$(Package/mailsend/install)
  55. $(eval $(call BuildPackage,mailsend))
  56. $(eval $(call BuildPackage,mailsend-nossl))