aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/mh/Makefile
blob: e3e217b7060f6d4b1d7215503e54338a0ad6d615 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Created by: Akito FUJITA <fujita@zoo.ncl.omron.co.jp>
# $FreeBSD$

PORTNAME=   mh
PORTVERSION=    ${VERSION}.j${JP_VERSION}
PORTREVISION=   1
CATEGORIES= japanese mail
MASTER_SITES=   ${MASTER_SITE_LOCAL} \
        ftp://ftp.laic.u-hyogo.ac.jp/pub/net/mh/
MASTER_SITE_SUBDIR= motoyuki
DISTNAME=   ${PORTNAME}-${VERSION}-JP-${JP_VERSION}

MAINTAINER= motoyuki@FreeBSD.org
COMMENT=    Rand MH mail handling system + Japanese patches

BUILD_DEPENDS=  jless:${PORTSDIR}/japanese/less
RUN_DEPENDS=    jless:${PORTSDIR}/japanese/less

VERSION=    6.8.4
JP_VERSION= 3.05

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-batchmode \
        --enable-apop=${PREFIX}/etc/pop.auth --enable-rpop
MAKE_JOBS_UNSAFE=   yes
CFLAGS+=    -Wno-return-type

MAN1=   ali.1 anno.1 bbc.1 burst.1 comp.1 dist.1 folder.1 forw.1 inc.1 mark.1 \
    mh-chart.1 mh.1 mhl.1 mhmail.1 mhn.1 mhook.1 mhparam.1 mhpath.1 \
    msgchk.1 msh.1 next.1 packf.1 pgped.1 pick.1 prev.1 prompter.1 rcvstore.1 \
    refile.1 repl.1 rmf.1 rmm.1 scan.1 send.1 show.1 slocal.1 sortm.1 \
    vmh.1 whatnow.1 whom.1
MAN5=   mh-alias.5 mh-format.5 mh-mail.5 mh-profile.5 mh-sequence.5 mh-tailor.5
MAN8=   ap.8 conflict.8 dp.8 fmtdump.8 install-mh.8 post.8
MANLANG=    "" ja
MANCOMPRESSED=  yes
USE_LDCONFIG=   yes

DOCDIR=     ${PREFIX}/share/doc/${PKGBASE}
READMES=    00.READ.ME.1ST CHANGES.JP COMMANDS.JP FAQ.JP FEATURES.JP \
        INSTALL.JP OPTIONS.JP READ-ME.JP TODO.JP

CONFLICTS=  nmh-[0-9]*

.include <bsd.port.pre.mk>

post-patch:
    ${REINPLACE_CMD} -e "s/-O /${CFLAGS} /g" ${WRKSRC}/configure

.if !defined(NOPORTDOCS)
pre-install:
    ${MKDIR} ${PREFIX}/share/doc/ja-mh
.endif

.if !defined(NOPORTDOCS)
post-install:
    ${MKDIR} ${DOCDIR}
    (cd ${WRKSRC}/doc-JP; ${INSTALL_DATA} ${READMES} ${DOCDIR})
.endif

.include <bsd.port.post.mk>