summaryrefslogtreecommitdiff
path: root/package/mutt
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-10-20 07:58:13 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-10-22 22:31:26 +0200
commit26e2aca4359bc7cff080c8446a67b838a5026d15 (patch)
tree404eafc8d39d46286fc41118e9d511f873b6ce8d /package/mutt
parent75114af47a5f090b59b80d511472493b93c2e2c6 (diff)
ssl: rework ssl support
Use libressl as default, where SSL is required. Allow to choose openssl. Disable SSL where not strictly required to build.
Diffstat (limited to 'package/mutt')
-rw-r--r--package/mutt/Makefile22
1 files changed, 18 insertions, 4 deletions
diff --git a/package/mutt/Makefile b/package/mutt/Makefile
index 95fce9cf9..9d21efceb 100644
--- a/package/mutt/Makefile
+++ b/package/mutt/Makefile
@@ -9,11 +9,20 @@ PKG_RELEASE:= 1
PKG_HASH:= 3af0701e57b9e1880ed3a0dee34498a228939e854a16cdccd24e5e502626fd37
PKG_DESCR:= mail text client
PKG_SECTION:= net/mail
-PKG_DEPENDS:= libncurses libopenssl
-PKG_BUILDDEP:= ncurses openssl
+PKG_DEPENDS:= libncurses
+PKG_BUILDDEP:= ncurses
PKG_URL:= http://www.mutt.org/
PKG_SITES:= http://distfiles.openadk.org/
+PKG_CHOICES_MUTT:= WITHOUT_SSL WITH_LIBRESSL WITH_OPENSSL
+PKGCD_WITHOUT_SSL:= use no ssl
+PKGCD_WITH_LIBRESSL:= use libressl for crypto
+PKGCB_WITH_LIBRESSL:= libressl
+PKGCS_WITH_LIBRESSL:= libressl ca-certificates
+PKGCD_WITH_OPENSSL:= use openssl for crypto
+PKGCB_WITH_OPENSSL:= openssl
+PKGCS_WITH_OPENSSL:= libopenssl ca-certificates
+
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
include ${ADK_TOPDIR}/mk/package.mk
@@ -25,8 +34,13 @@ CONFIGURE_ARGS+= --includedir=${WRKBUILD}/. \
--oldincludedir=${WRKBUILD}/. \
--with-homespool="~/Maildir" \
--enable-pop \
- --enable-imap \
- --with-ssl
+ --enable-imap
+
+ifeq ($(ADK_PACKAGE_MUTT_WITHOUT_SSL),y)
+CONFIGURE_ARGS+= --without-ssl
+else
+CONFIGURE_ARGS+= --with-ssl
+endif
mutt-install:
${INSTALL_DIR} ${IDIR_MUTT}/usr/bin