aboutsummaryrefslogtreecommitdiffstats
path: root/misc/timediff
diff options
context:
space:
mode:
authorcpm <cpm@FreeBSD.org>2016-09-01 22:25:22 +0800
committercpm <cpm@FreeBSD.org>2016-09-01 22:25:22 +0800
commit36a864bc8ea6472d045083d7d1c3291e6dd66df3 (patch)
tree26a141549a2187370c941a6f095a955858833135 /misc/timediff
parente4b229e2d86327a05d376a5c823acf39ebd297e9 (diff)
downloadfreebsd-ports-gnome-36a864bc8ea6472d045083d7d1c3291e6dd66df3.tar.gz
freebsd-ports-gnome-36a864bc8ea6472d045083d7d1c3291e6dd66df3.tar.zst
freebsd-ports-gnome-36a864bc8ea6472d045083d7d1c3291e6dd66df3.zip
- Really fix Makefile
Reported by: mat
Diffstat (limited to 'misc/timediff')
-rw-r--r--misc/timediff/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/misc/timediff/Makefile b/misc/timediff/Makefile
index b1cb3d180bb3..fd1715d8f46b 100644
--- a/misc/timediff/Makefile
+++ b/misc/timediff/Makefile
@@ -3,7 +3,7 @@
PORTNAME= timediff
PORTVERSION= 0.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= misc
MAINTAINER= naito.yuichiro@gmail.com
@@ -20,8 +20,14 @@ PLIST_FILES= sbin/timediff
NO_ARCH= yes
NO_BUILD= yes
+do-patch:
+.for file in timediff
+ ${SED} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/${file} \
+ > ${WRKDIR}/${file:T}
+.endfor
+
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/timediff \
+ ${INSTALL_SCRIPT} ${WRKDIR}/timediff \
${STAGEDIR}${PREFIX}/sbin
.include <bsd.port.mk>