aboutsummaryrefslogtreecommitdiff
path: root/comms/tkscanfax/Makefile
blob: c7a9f92d6fdb2f987b61ae536f6737857cc97b80 (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
# Created by: MITA Yoshio <mita@FreeBSD.org>
# $FreeBSD$

PORTNAME=	tkscanfax
PORTVERSION=	1.1.8
PORTREVISION=	1
PORTEPOCH=	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
USES+=		tk:wrapper

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} ${STAGEDIR}${TKSCANFAXDIR}
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${TKSCANFAXDIR})
.for file in tkfax tkscan
	${CHMOD} ${BINMODE} ${STAGEDIR}${TKSCANFAXDIR}/${file}
	${LN} -sf ${TKSCANFAXDIR}/${file} ${STAGEDIR}${PREFIX}/bin
.endfor

.include <bsd.port.mk>