# Created by: MITA Yoshio # $FreeBSD: head/comms/tkscanfax/Makefile 417461 2016-06-25 11:26:18Z antoine $ PORTNAME= tkscanfax PORTVERSION= 1.1.8 PORTREVISION= 2 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}" TKSCANFAXDIR= lib/tkscanfax1 post-patch: @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -i '' -e \ 's|/usr/local/lib|${PREFIX}/lib|g' do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${TKSCANFAXDIR} @(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${TKSCANFAXDIR}) .for file in tkfax tkscan ${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/${TKSCANFAXDIR}/${file} ${LN} -sf ../${TKSCANFAXDIR}/${file} ${STAGEDIR}${PREFIX}/bin .endfor .include