summaryrefslogtreecommitdiff
path: root/package/msmtp/msmtp.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/msmtp/msmtp.mk')
-rw-r--r--package/msmtp/msmtp.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/msmtp/msmtp.mk b/package/msmtp/msmtp.mk
new file mode 100644
index 000000000..2c712293d
--- /dev/null
+++ b/package/msmtp/msmtp.mk
@@ -0,0 +1,28 @@
+#############################################################
+#
+# msmtp
+#
+#############################################################
+
+MSMTP_VERSION = 1.4.27
+MSMTP_SITE = http://downloads.sourceforge.net/project/msmtp/msmtp/$(MSMTP_VERSION)
+MSMTP_SOURCE = msmtp-$(MSMTP_VERSION).tar.bz2
+
+MSMTP_DEPENDENCIES += host-pkg-config
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+MSMTP_CONF_OPT += --with-ssl=openssl
+MSMTP_DEPENDENCIES += openssl
+else ifeq ($(BR2_PACKAGE_GNUTLS),y)
+MSMTP_CONF_OPT += --with-ssl=gnutls
+MSMTP_DEPENDENCIES += gnutls
+else
+MSMTP_CONF_OPT += --with-ssl=no
+endif
+
+MSMTP_CONF_OPT += \
+ --without-libidn \
+ --without-libgsasl \
+ --without-gnome-keyring
+
+$(eval $(call AUTOTARGETS))