aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-06-23 15:09:57 +0800
committerbapt <bapt@FreeBSD.org>2016-06-23 15:09:57 +0800
commitcf2bbb4a33f9194c9d5726ec791b235e8c2d0119 (patch)
tree627e59cacacc004136cc757b12ed601b59e00721 /comms
parentf522dfe669cf11f752ae963dbe12b4e3d4fbaa63 (diff)
downloadfreebsd-ports-graphics-cf2bbb4a33f9194c9d5726ec791b235e8c2d0119.tar.gz
freebsd-ports-graphics-cf2bbb4a33f9194c9d5726ec791b235e8c2d0119.tar.zst
freebsd-ports-graphics-cf2bbb4a33f9194c9d5726ec791b235e8c2d0119.zip
Prefer relative links to make packages more relocation friendly
Diffstat (limited to 'comms')
-rw-r--r--comms/tkscanfax/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/comms/tkscanfax/Makefile b/comms/tkscanfax/Makefile
index c7a9f92d6fd..5c84abc5ad7 100644
--- a/comms/tkscanfax/Makefile
+++ b/comms/tkscanfax/Makefile
@@ -3,7 +3,7 @@
PORTNAME= tkscanfax
PORTVERSION= 1.1.8
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= comms tk
MASTER_SITES= http://shino.pos.to/linux/tkscanfax/
@@ -16,20 +16,20 @@ WRKSRC= ${WRKDIR}/${PORTNAME}1
NO_BUILD= yes
USES+= tk:wrapper
-PLIST_SUB= TKSCANFAXDIR="${TKSCANFAXDIR:S,^${PREFIX}/,,}"
+PLIST_SUB= TKSCANFAXDIR="${TKSCANFAXDIR}"
-TKSCANFAXDIR= ${PREFIX}/lib/tkscanfax1
+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}${TKSCANFAXDIR}
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${TKSCANFAXDIR})
+ @${MKDIR} ${STAGEDIR}${PREFIX}${TKSCANFAXDIR}
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}${TKSCANFAXDIR})
.for file in tkfax tkscan
- ${CHMOD} ${BINMODE} ${STAGEDIR}${TKSCANFAXDIR}/${file}
- ${LN} -sf ${TKSCANFAXDIR}/${file} ${STAGEDIR}${PREFIX}/bin
+ ${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}${TKSCANFAXDIR}/${file}
+ ${LN} -sf ../${TKSCANFAXDIR}/${file} ${STAGEDIR}${PREFIX}/bin
.endfor
.include <bsd.port.mk>