aboutsummaryrefslogtreecommitdiffstats
path: root/comms/efax/Makefile
blob: 4816d48fef0f5179ac070af8e92d9a576ed476c9 (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
# Created by: MITA Yoshio <mita@FreeBSD.org>
# $FreeBSD$

PORTNAME=   efax-0.9a
PORTVERSION=    001114a7
PORTREVISION=   5
CATEGORIES= comms
MASTER_SITES=   http://shino.pos.to/linux/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Fax send/receive program

RUN_DEPENDS=    xloadimage:${PORTSDIR}/x11/xloadimage

USE_GMAKE=  YES
MAN1=       fax.1 \
        efax.1 \
        efix.1
DOCSDIR=    ${PREFIX}/share/doc/efax
PORTDOCS=   COPYING README printcap.sample efax.html fax.html
MAKE_ENV=   INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
        INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
        INSTALL_DATA="${INSTALL_DATA}"

CONFLICTS=  efax-gtk-*

OPTIONS_DEFINE= DOCS

post-build:
    ${MV} ${WRKSRC}/fax ${WRKSRC}/fax.orig
    ${CAT} ${WRKSRC}/fax.orig | ${SED} -e s!%%PREFIX%%!${PREFIX}!g > \
        ${WRKSRC}/fax

.include <bsd.port.options.mk>

post-install:
    ${INSTALL_DATA} ${WRKSRC}/efax.rc.sample ${PREFIX}/etc
    ${INSTALL_DATA} ${WRKSRC}/efax.rc.sample.ja ${PREFIX}/etc
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
    @${ECHO_CMD}
    @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
    @${ECHO_CMD}

.include <bsd.port.mk>