aboutsummaryrefslogtreecommitdiffstats
path: root/comms/tkscanfax/Makefile
blob: 473bf85ab457e28ff68d8491ec937d40cc7b59c2 (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
# New ports collection makefile for:    tkscanfax
# Date created:         11 Mai 2002
# Whom:             MITA Yoshio <mita@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   tkscanfax
PORTVERSION=    1.1.8
PORTEPOCH=  1
PORTREVISION=   1
CATEGORIES= comms tk
MASTER_SITES=   http://shino.pos.to/linux/tkscanfax/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Tcl/Tk frontend for fax scan/receive/send program (command is tkfax)

WRKSRC=     ${WRKDIR}/${PORTNAME}1

NO_BUILD=   yes
USE_TK_WRAPPER= yes

PLIST_SUB=  TKSCANFAXDIR="${TKSCANFAXDIR:S,^${PREFIX}/,,}"

TKSCANFAXDIR=   ${PREFIX}/lib/tkscanfax1

post-patch:
    @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -i '' -e \
        's|/usr/local/lib|${PREFIX}/lib|g'

do-install:
    @${MKDIR} ${TKSCANFAXDIR}
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${TKSCANFAXDIR})
.for file in tkfax tkscan
    ${CHMOD} ${BINMODE} ${TKSCANFAXDIR}/${file}
    ${CHOWN} ${BINOWN}:${BINGRP} ${TKSCANFAXDIR}/${file}
    ${LN} -sf ${TKSCANFAXDIR}/${file} ${PREFIX}/bin
.endfor

.include <bsd.port.mk>