| 1 | NAME = mutt |
|---|
| 2 | VERSION = 1.5.21 |
|---|
| 3 | GARTYPE = v2 |
|---|
| 4 | |
|---|
| 5 | EXTRA_MODULATORS = SLANG |
|---|
| 6 | MODULATIONS_SLANG = no yes |
|---|
| 7 | |
|---|
| 8 | DESCRIPTION = A text-based mail client for Unix operating systems |
|---|
| 9 | define BLURB |
|---|
| 10 | Mutt is a small but very powerful text-based MIME mail client. Mutt is |
|---|
| 11 | highly configurable, and is well suited to the mail power user with |
|---|
| 12 | advanced features like key bindings, keyboard macros, mail threading, |
|---|
| 13 | regular expression searches and a powerful pattern matching language for |
|---|
| 14 | selecting groups of messages. |
|---|
| 15 | endef |
|---|
| 16 | |
|---|
| 17 | VENDOR_URL = http://www.mutt.org |
|---|
| 18 | MASTER_SITES = $(SF_MIRRORS) |
|---|
| 19 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 20 | DISTFILES += CSWmutt.postmsg |
|---|
| 21 | UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz |
|---|
| 22 | |
|---|
| 23 | POSTMSG = $(docdir)/mutt/CSWmutt.postmsg |
|---|
| 24 | |
|---|
| 25 | LICENSE = COPYRIGHT |
|---|
| 26 | |
|---|
| 27 | PACKAGES += CSWmutt |
|---|
| 28 | SPKG_DESC_CSWmutt = Metapackage for mutt with ncurses- and slang-interface |
|---|
| 29 | RUNTIME_DEP_PKGS_CSWmutt += CSWmutt-ncurses |
|---|
| 30 | RUNTIME_DEP_PKGS_CSWmutt += CSWmutt-slang |
|---|
| 31 | PKGFILES_CSWmutt += $(POSTMSG) |
|---|
| 32 | ARCHALL_CSWmutt = 1 |
|---|
| 33 | |
|---|
| 34 | # These overrides are specific to the structure of the package |
|---|
| 35 | CHECKPKG_OVERRIDES_CSWmutt += surplus-dependency|CSWmutt-ncurses |
|---|
| 36 | CHECKPKG_OVERRIDES_CSWmutt += surplus-dependency|CSWmutt-slang |
|---|
| 37 | |
|---|
| 38 | PACKAGES += CSWmutt-base |
|---|
| 39 | SPKG_DESC_CSWmutt-base = $(DESCRIPTION) |
|---|
| 40 | # PKGFILES is catchall |
|---|
| 41 | RUNTIME_DEP_PKGS_CSWmutt-base += CSWlibintl8 |
|---|
| 42 | |
|---|
| 43 | # This warning from checkpkg is obviously wrong... |
|---|
| 44 | CHECKPKG_OVERRIDES_CSWmutt-base = missing-dependency|CSWperl |
|---|
| 45 | |
|---|
| 46 | PACKAGES += CSWmutt-ncurses |
|---|
| 47 | SPKG_DESC_CSWmutt-ncurses = Mutt mail client with ncurses interface |
|---|
| 48 | PKGFILES_CSWmutt-ncurses = $(bindir)/mutt-ncurses |
|---|
| 49 | RUNTIME_DEP_PKGS_CSWmutt-ncurses += CSWlibiconv2 |
|---|
| 50 | RUNTIME_DEP_PKGS_CSWmutt-ncurses += CSWlibncursesw5 |
|---|
| 51 | RUNTIME_DEP_PKGS_CSWmutt-ncurses += CSWlibssl1-0-0 |
|---|
| 52 | RUNTIME_DEP_PKGS_CSWmutt-ncurses += CSWlibintl8 |
|---|
| 53 | RUNTIME_DEP_PKGS_CSWmutt-ncurses += CSWlibgpg-error0 |
|---|
| 54 | RUNTIME_DEP_PKGS_CSWmutt-ncurses += CSWlibsasl2-2 |
|---|
| 55 | RUNTIME_DEP_PKGS_CSWmutt-ncurses += CSWlibgdbm4 |
|---|
| 56 | RUNTIME_DEP_PKGS_CSWmutt-ncurses += CSWlibidn11 |
|---|
| 57 | RUNTIME_DEP_PKGS_CSWmutt-ncurses += CSWgpgme |
|---|
| 58 | RUNTIME_DEP_PKGS_CSWmutt-ncurses += CSWmutt-base |
|---|
| 59 | CHECKPKG_OVERRIDES_CSWmutt-ncurses += surplus-dependency|CSWmutt-base |
|---|
| 60 | |
|---|
| 61 | PACKAGES += CSWmutt-slang |
|---|
| 62 | SPKG_DESC_CSWmutt-slang = Mutt mail client with slang interface |
|---|
| 63 | PKGFILES_CSWmutt-slang = $(bindir)/mutt-slang |
|---|
| 64 | RUNTIME_DEP_PKGS_CSWmutt-slang += CSWlibslang2 |
|---|
| 65 | RUNTIME_DEP_PKGS_CSWmutt-slang += CSWlibssl1-0-0 |
|---|
| 66 | RUNTIME_DEP_PKGS_CSWmutt-slang += CSWlibintl8 |
|---|
| 67 | RUNTIME_DEP_PKGS_CSWmutt-slang += CSWlibgpg-error0 |
|---|
| 68 | RUNTIME_DEP_PKGS_CSWmutt-slang += CSWlibsasl2-2 |
|---|
| 69 | RUNTIME_DEP_PKGS_CSWmutt-slang += CSWgpgme |
|---|
| 70 | RUNTIME_DEP_PKGS_CSWmutt-slang += CSWlibiconv2 |
|---|
| 71 | RUNTIME_DEP_PKGS_CSWmutt-slang += CSWlibgdbm4 |
|---|
| 72 | RUNTIME_DEP_PKGS_CSWmutt-slang += CSWlibidn11 |
|---|
| 73 | RUNTIME_DEP_PKGS_CSWmutt-slang += CSWmutt-base |
|---|
| 74 | CHECKPKG_OVERRIDES_CSWmutt-slang += surplus-dependency|CSWmutt-base |
|---|
| 75 | |
|---|
| 76 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/local|root/etc/opt/csw/Muttrc.CSW |
|---|
| 77 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/local|root/opt/csw/share/doc/mutt/reference.html |
|---|
| 78 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/local|root/opt/csw/share/doc/mutt/ChangeLog |
|---|
| 79 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/local|root/opt/csw/share/doc/mutt/INSTALL |
|---|
| 80 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/local|root/opt/csw/share/doc/mutt/configuration.html |
|---|
| 81 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/local|root/opt/csw/share/doc/mutt/samples/sample.muttrc |
|---|
| 82 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/share|root/opt/csw/share/doc/mutt/devel-notes.txt |
|---|
| 83 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/local|root/opt/csw/share/doc/mutt/mimesupport.html |
|---|
| 84 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/local|root/opt/csw/share/doc/mutt/manual.txt |
|---|
| 85 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/local|root/opt/csw/share/doc/mutt/manual.html |
|---|
| 86 | CHECKPKG_OVERRIDES_CSWmutt-base += file-with-bad-content|/usr/local|root/opt/csw/share/man/man5/muttrc.5 |
|---|
| 87 | CHECKPKG_OVERRIDES_CSWmutt-base += pkginfo-opencsw-repository-uncommitted |
|---|
| 88 | |
|---|
| 89 | REINPLACEMENTS += mailcap |
|---|
| 90 | REINPLACE_MATCH_mailcap = /usr/local/etc/mailcap |
|---|
| 91 | REINPLACE_WITH_mailcap = /opt/csw/etc/mailcap |
|---|
| 92 | REINPLACE_FILES_mailcap += init.c |
|---|
| 93 | REINPLACE_FILES_mailcap += doc/manual.xml |
|---|
| 94 | REINPLACE_FILES_mailcap += doc/mimesupport.html |
|---|
| 95 | |
|---|
| 96 | # Raise optimizer level unless this bug has been fixed: |
|---|
| 97 | # http://dev.mutt.org/trac/ticket/3347 |
|---|
| 98 | OPT_FLAGS_SOS = -xO4 |
|---|
| 99 | |
|---|
| 100 | sysconfdir = /etc/opt/csw |
|---|
| 101 | |
|---|
| 102 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 103 | CONFIGURE_ARGS += --enable-pop |
|---|
| 104 | CONFIGURE_ARGS += --enable-imap |
|---|
| 105 | CONFIGURE_ARGS += --enable-smtp |
|---|
| 106 | CONFIGURE_ARGS += --enable-gpgme |
|---|
| 107 | # Add IMAP header caching and SASL as requested per: |
|---|
| 108 | # http://www.opencsw.org/mantis/view.php?id=3726 |
|---|
| 109 | CONFIGURE_ARGS += --enable-hcache |
|---|
| 110 | CONFIGURE_ARGS += --with-sasl |
|---|
| 111 | CONFIGURE_ARGS += --with-ssl |
|---|
| 112 | CONFIGURE_ARGS += --enable-external-dotlock |
|---|
| 113 | |
|---|
| 114 | CONFIGURE_ARGS_SLANG-no = |
|---|
| 115 | CONFIGURE_ARGS_SLANG-yes = --with-slang=$(prefix) |
|---|
| 116 | CONFIGURE_ARGS += $(CONFIGURE_ARGS_SLANG-$(SLANG)) |
|---|
| 117 | |
|---|
| 118 | TEST_SCRIPTS = |
|---|
| 119 | |
|---|
| 120 | PRESERVECONF = $(sysconfdir)/mime.types |
|---|
| 121 | PRESERVECONF += $(sysconfdir)/Muttrc |
|---|
| 122 | |
|---|
| 123 | EXTRA_MERGE_EXCLUDE_FILES = .*\.dist |
|---|
| 124 | |
|---|
| 125 | MIGRATE_FILES_CSWmutt-base = mime.types Muttrc |
|---|
| 126 | |
|---|
| 127 | MERGE_SCRIPTS_isa-default-slang-no = copy-all |
|---|
| 128 | MERGE_SCRIPTS_isa-default-slang-yes = copy-all |
|---|
| 129 | |
|---|
| 130 | EXTRA_PAX_ARGS_slang-no = -s ",\.$(bindir)/mutt$$,.$(bindir)/mutt-ncurses,p" |
|---|
| 131 | EXTRA_PAX_ARGS_slang-yes = -s ",\.$(bindir)/mutt$$,.$(bindir)/mutt-slang,p" -m |
|---|
| 132 | EXTRA_PAX_ARGS = $(EXTRA_PAX_ARGS_slang-$(SLANG)) |
|---|
| 133 | |
|---|
| 134 | ALTERNATIVES_CSWmutt-ncurses = ncurses |
|---|
| 135 | ALTERNATIVES_CSWmutt-slang = slang |
|---|
| 136 | ALTERNATIVE_ncurses = $(bindir)/mutt mutt $(bindir)/mutt-ncurses 100 |
|---|
| 137 | ALTERNATIVE_slang = $(bindir)/mutt mutt $(bindir)/mutt-slang 200 |
|---|
| 138 | |
|---|
| 139 | include gar/category.mk |
|---|
| 140 | |
|---|
| 141 | post-merge: |
|---|
| 142 | ginstall -d $(PKGROOT)$(docdir)/mutt/ |
|---|
| 143 | ginstall $(WORKDIR)/CSWmutt.postmsg $(PKGROOT)$(docdir)/mutt/CSWmutt.postmsg |
|---|
| 144 | @$(MAKECOOKIE) |
|---|
| 145 | |
|---|