| 1 | NAME = tin |
|---|
| 2 | VERSION = 2.0.1 |
|---|
| 3 | GARTYPE = v2 |
|---|
| 4 | |
|---|
| 5 | DESCRIPTION = Terminal-based news reader |
|---|
| 6 | define BLURB |
|---|
| 7 | tin is an easy-to-use USENET news reader for the console using NNTP. |
|---|
| 8 | It supports threading, scoring, different charsets, and many other |
|---|
| 9 | useful things. It has also support for different languages. |
|---|
| 10 | endef |
|---|
| 11 | |
|---|
| 12 | MASTER_SITES = ftp://ftp.tin.org/pub/news/clients/tin/stable/ |
|---|
| 13 | DISTFILES = $(NAME)-$(VERSION).tar.bz2 |
|---|
| 14 | DISTFILES += COPYING |
|---|
| 15 | |
|---|
| 16 | BUILD_DEP_PKGS += CSWperl |
|---|
| 17 | BUILD_DEP_PKGS += CSWlibpcre-dev |
|---|
| 18 | BUILD_DEP_PKGS += CSWggettext-dev |
|---|
| 19 | BUILD_DEP_PKGS += CSWlibidn-dev |
|---|
| 20 | BUILD_DEP_PKGS += CSWlibicu-dev |
|---|
| 21 | BUILD_DEP_PKGS += CSWlibiconv-dev |
|---|
| 22 | BUILD_DEP_PKGS += CSWlibncurses-dev |
|---|
| 23 | BUILD_DEP_PKGS += CSWlibgsasl-dev |
|---|
| 24 | |
|---|
| 25 | RUNTIME_DEP_PKGS_CSWtin += CSWperl |
|---|
| 26 | RUNTIME_DEP_PKGS_CSWtin += CSWlibpcre0 |
|---|
| 27 | RUNTIME_DEP_PKGS_CSWtin += CSWlibintl8 |
|---|
| 28 | RUNTIME_DEP_PKGS_CSWtin += CSWlibidn11 |
|---|
| 29 | RUNTIME_DEP_PKGS_CSWtin += CSWlibicuuc48 |
|---|
| 30 | RUNTIME_DEP_PKGS_CSWtin += CSWlibiconv2 |
|---|
| 31 | RUNTIME_DEP_PKGS_CSWtin += CSWlibncursesw5 |
|---|
| 32 | RUNTIME_DEP_PKGS_CSWtin += CSWlibgsasl7 |
|---|
| 33 | |
|---|
| 34 | VENDOR_URL = http://www.tin.org/ |
|---|
| 35 | |
|---|
| 36 | # Old default is |
|---|
| 37 | # #define TIN_DEFAULTS_BUILTIN "/etc/opt/tin","/etc/tin","/etc","/usr/local/lib/tin","/usr/local/lib","/usr/local/etc/tin","/usr/local/etc","/usr/lib/tin","/usr/lib",NULL |
|---|
| 38 | REINPLACEMENTS += tin_defaults_builtin |
|---|
| 39 | REINPLACE_MATCH_tin_defaults_builtin = (\#define\s+TIN_DEFAULTS_BUILTIN\s+).* |
|---|
| 40 | REINPLACE_WITH_tin_defaults_builtin = $$1 "/etc/opt/csw/tin","/opt/csw/etc/tin",NULL |
|---|
| 41 | REINPLACE_FILES_tin_defaults_builtin += include/tin.h |
|---|
| 42 | |
|---|
| 43 | MAILCAP_PATH = ~/.mailcap:/etc/opt/csw/mailcap:/opt/csw/etc/mailcap |
|---|
| 44 | NEWS_PATH = /var/opt/csw/spool/news |
|---|
| 45 | |
|---|
| 46 | # Old default is |
|---|
| 47 | # ./src/rfc1524.c:#define DEFAULT_MAILCAPS "~/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap:/etc/mail/mailcap" |
|---|
| 48 | REINPLACEMENTS += default_mailcaps |
|---|
| 49 | REINPLACE_MATCH_default_mailcaps = (\#define\s+DEFAULT_MAILCAPS\s+).* |
|---|
| 50 | REINPLACE_WITH_default_mailcaps = $$1 "$(MAILCAP_PATH)" |
|---|
| 51 | REINPLACE_FILES_default_mailcaps += src/rfc1524.c |
|---|
| 52 | |
|---|
| 53 | # These need to be adjusted: |
|---|
| 54 | |
|---|
| 55 | # unstable9s% strings work/solaris9-sparc/pkgroot/opt/csw/share/man/man1/tin.1 | grep /usr/local |
|---|
| 56 | # 30 6 * * * /usr/local/bin/tin \-u |
|---|
| 57 | # .IR /usr/local/etc/mailcap |
|---|
| 58 | # .IR /usr/local/share/locale/${LC_MESSAGES}/LC_MESSAGES/tin.mo |
|---|
| 59 | |
|---|
| 60 | # unstable9s% strings work/solaris9-sparc/pkgroot/opt/csw/share/man/man5/tin.5 | grep /usr/local |
|---|
| 61 | # .IR /usr/local/etc/mailcap |
|---|
| 62 | # \fI/usr/lib/news\fR, \fI/var/lib/news\fR, \fI/usr/local/lib/news\fR or |
|---|
| 63 | # .IR /usr/local/share/locale/$LC_MESSAGES/LC_MESSAGES/tin.mo |
|---|
| 64 | |
|---|
| 65 | REINPLACEMENTS += tindir |
|---|
| 66 | REINPLACE_MATCH_tindir = /usr/local/bin/tin |
|---|
| 67 | REINPLACE_WITH_tindir = $(bindir)/tin |
|---|
| 68 | REINPLACE_FILES_tindir += doc/tin.1 |
|---|
| 69 | |
|---|
| 70 | REINPLACEMENTS += mailcap |
|---|
| 71 | REINPLACE_MATCH_mailcap = /usr/local/etc/mailcap |
|---|
| 72 | REINPLACE_WITH_mailcap = $(MAILCAP_PATH) |
|---|
| 73 | REINPLACE_FILES_mailcap += doc/tin.1 |
|---|
| 74 | REINPLACE_FILES_mailcap += doc/tin.5 |
|---|
| 75 | |
|---|
| 76 | REINPLACEMENTS += locale |
|---|
| 77 | REINPLACE_MATCH_locale = /usr/local/share/locale |
|---|
| 78 | REINPLACE_WITH_locale = $(sharedstatedir)/locale |
|---|
| 79 | REINPLACE_FILES_locale += doc/tin.1 |
|---|
| 80 | REINPLACE_FILES_locale += doc/tin.5 |
|---|
| 81 | |
|---|
| 82 | REINPLACEMENTS += news_path |
|---|
| 83 | REINPLACE_MATCH_news_path = \\fI/usr/lib/news.*news\\fR |
|---|
| 84 | REINPLACE_WITH_news_path = \\fI$(NEWS_PATH)\\fR |
|---|
| 85 | REINPLACE_FILES_news_path += doc/tin.5 |
|---|
| 86 | |
|---|
| 87 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 88 | CONFIGURE_ARGS += --with-coffee |
|---|
| 89 | CONFIGURE_ARGS += --enable-ipv6 |
|---|
| 90 | CONFIGURE_ARGS += --with-screen=ncursesw --with-curses-dir=$(prefix) |
|---|
| 91 | CONFIGURE_ARGS += --with-pcre=$(prefix) |
|---|
| 92 | CONFIGURE_ARGS += --x-includes=/usr/openwin/include |
|---|
| 93 | CONFIGURE_ARGS += --x-libraries=/usr/openwin/lib |
|---|
| 94 | CONFIGURE_ARGS += --with-x --with-Xaw3d |
|---|
| 95 | CONFIGURE_ARGS += --with-libdir=$(libdir)/news |
|---|
| 96 | CONFIGURE_ARGS += --with-spooldir=$(NEWS_PATH) |
|---|
| 97 | |
|---|
| 98 | # tin requires to run 'make build' |
|---|
| 99 | BUILD_ARGS = build |
|---|
| 100 | |
|---|
| 101 | # tin doesn't have a test target |
|---|
| 102 | TEST_SCRIPTS = |
|---|
| 103 | |
|---|
| 104 | # These are provided by CSWmutt-base |
|---|
| 105 | EXTRA_MERGE_EXCLUDE_FILES += $(mandir)/man5/mmdf\.5 |
|---|
| 106 | EXTRA_MERGE_EXCLUDE_FILES += $(mandir)/man5/mbox\.5 |
|---|
| 107 | |
|---|
| 108 | include gar/category.mk |
|---|
| 109 | |
|---|
| 110 | post-extract-modulated: |
|---|
| 111 | @# This is most certainly an upstream typo |
|---|
| 112 | -cp po/Makefile.inn po/Makefile.in |
|---|