summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-12-22 00:06:41 +0000
committerlioux <lioux@FreeBSD.org>2002-12-22 00:06:41 +0000
commita4db74301c8fa312e976291571f2447bb9283c5a (patch)
treef948e9ba049e8dcb110b8de625496d1e2202422a /x11
parenta170c9fe2293ca311a828b398b913f1996f7eb37 (diff)
downloadFreeBSD-ports-a4db74301c8fa312e976291571f2447bb9283c5a.zip
FreeBSD-ports-a4db74301c8fa312e976291571f2447bb9283c5a.tar.gz
Nasty hack to force newer timestamps on cache. Required to enable
correct building of KDE i18n ports. Only used in those. Submitted by: bento Reviewed by: Lauri Watts <lauri@kde.org> Approved by: FreeBSD KDE Team <kde@FreeBSD.org>
Diffstat (limited to 'x11')
-rw-r--r--x11/kde3/Makefile.kde8
-rw-r--r--x11/kde4/Makefile.kde8
2 files changed, 16 insertions, 0 deletions
diff --git a/x11/kde3/Makefile.kde b/x11/kde3/Makefile.kde
index fe30441..702ba2e 100644
--- a/x11/kde3/Makefile.kde
+++ b/x11/kde3/Makefile.kde
@@ -17,6 +17,14 @@ _NO_KDE_FINAL= yes
_NO_KDE_NDEBUG= yes
DISTNAME= ${PORTNAME}-${PKGNAMEPREFIX:S/-$//}-${PORTVERSION}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PKGNAMEPREFIX:S/-$//}
+
+# nasty hack to force newer timestamps on cache
+# required to enable correct building
+.if !target(post-extract)
+post-extract:
+ @${FIND} ${WRKDIR} -type f -name index.cache.bz2 \
+ | ${XARGS} -n 10 -x ${TOUCH}
+.endif
.endif
# KDE_DIST_VERSION (PORTVERSION)
diff --git a/x11/kde4/Makefile.kde b/x11/kde4/Makefile.kde
index fe30441..702ba2e 100644
--- a/x11/kde4/Makefile.kde
+++ b/x11/kde4/Makefile.kde
@@ -17,6 +17,14 @@ _NO_KDE_FINAL= yes
_NO_KDE_NDEBUG= yes
DISTNAME= ${PORTNAME}-${PKGNAMEPREFIX:S/-$//}-${PORTVERSION}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PKGNAMEPREFIX:S/-$//}
+
+# nasty hack to force newer timestamps on cache
+# required to enable correct building
+.if !target(post-extract)
+post-extract:
+ @${FIND} ${WRKDIR} -type f -name index.cache.bz2 \
+ | ${XARGS} -n 10 -x ${TOUCH}
+.endif
.endif
# KDE_DIST_VERSION (PORTVERSION)
OpenPOWER on IntegriCloud