# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by scripts/Create-CopyPatch. # # T2 SDE: package/*/mutt/mutt.conf # Copyright (C) 2004 - 2020 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- var_append confopt ' ' '--enable-imap' var_append confopt ' ' '--enable-pop' var_append confopt ' ' '--enable-smtp' if atstage "native"; then var_append confopt ' ' '--enable-hcache' fi hook_add preconf 2 'autoreconf -vfi' pkginstalled openssl && var_append confopt ' ' '--with-ssl' pkginstalled cyrus-sasl2 && var_append confopt ' ' '--with-sasl=/usr/include' # add imap headercache support # NOTE: if it gets optional, no_autogen_for_headercache.patch too. var_insert_before_regex patchfiles " " "`match_source_file -p headercache`" ".*headercache.patch" # mutt will happily try to include sasl/* files, which will not work, it really needs sasl2 hook_add premake 3 'sed -i "s:#include :#include :" *.[ch] */*.[ch]; sed -i "s:#include :#include :" *.[ch] */*.[ch];'