aboutsummaryrefslogtreecommitdiffstats
path: root/mail/tkrat2/Makefile
blob: 703625237e571d684d97d134db317578a330fa53 (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
62
63
64
65
66
67
# Created by: Stephen J. Roznowski <sjr@home.net>
# $FreeBSD$

PORTNAME=   tkrat
PORTVERSION=    2.1.5
PORTREVISION=   5
CATEGORIES= mail tk
MASTER_SITES=   http://tkrat.org/downloads/stable/ \
        ftp://ftp.tkrat.org/pub/tkrat/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Mail user agent for X with a Tcl/Tk user interface

LICENSE=    BSD3CLAUSE

LIB_DEPENDS=    libtcl84.so:${PORTSDIR}/lang/tcl84 \
        libtk84.so:${PORTSDIR}/x11-toolkits/tk84 \
        libc-client4.so:${PORTSDIR}/mail/cclient

USE_XORG=   x11 xt

GNU_CONFIGURE=  yes

CONFIGURE_ARGS= --with-tcl-config=${PREFIX}/lib/tcl8.4 \
        --with-tk-config=${PREFIX}/lib/tk8.4 \
        --with-tcl-include=${PREFIX}/include/tcl8.4 \
        --with-tk-include=${PREFIX}/include/tk8.4 \
        --prefix=${PREFIX}
MAKE_ARGS+= -j2 -B

OPTIONS_DEFINE= DOCS

DOCFILES=   CONFIGURATION COPYRIGHT README doc/interface doc/userprocs \
        doc/userproc.example

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     Build fails on sparc64
.endif

post-patch:
    @${REINPLACE_CMD} '-e s|@INSTALL_PREFIX@|${STAGEDIR}${PREFIX}|g' \
        ${WRKSRC}/lib/Makefile.in ${WRKSRC}/util/Makefile.in \
        ${WRKSRC}/tkrat/Makefile.in ${WRKSRC}/misc/Makefile.in \
        ${WRKSRC}/doc/Makefile.in
    @${REINPLACE_CMD} '-e s|@libdir@|/lib|g' \
        ${WRKSRC}/lib/Makefile.in ${WRKSRC}/util/Makefile.in
    @${REINPLACE_CMD} '-e s|@datadir@|/share|g' \
        ${WRKSRC}/util/Makefile.in ${WRKSRC}/tkrat/Makefile.in \
        ${WRKSRC}/misc/Makefile.in
    @${REINPLACE_CMD} '-e s|@bindir@|/bin|g' ${WRKSRC}/tkrat/Makefile.in
    @${REINPLACE_CMD} '-e s|@mandir@|/man|g' ${WRKSRC}/doc/Makefile.in

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${DOCFILES}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/ratatosk
    ${INSTALL_DATA} ${FILESDIR}/ratatoskrc ${STAGEDIR}${PREFIX}/lib/ratatosk
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/tkrat/ratatosk2.1.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/tkrat/blt_busy1.0.so

.include <bsd.port.post.mk>