aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2009-08-29 15:15:12 +0800
committermakc <makc@FreeBSD.org>2009-08-29 15:15:12 +0800
commiteb9e164f6c0e8f4067082ab7122a563b1d97ed7e (patch)
treee38ba7f64b20b67b86adf1c7660a7a041fa83b31 /devel
parent6b1b8d5e14040bbd8145cd81bdb1d32b93636803 (diff)
downloadfreebsd-ports-gnome-eb9e164f6c0e8f4067082ab7122a563b1d97ed7e.tar.gz
freebsd-ports-gnome-eb9e164f6c0e8f4067082ab7122a563b1d97ed7e.tar.zst
freebsd-ports-gnome-eb9e164f6c0e8f4067082ab7122a563b1d97ed7e.zip
Respect LOCALBASE
PR: based on ports/138187 Submitted by: amdmi3
Diffstat (limited to 'devel')
-rw-r--r--devel/cmake/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/cmake/Makefile b/devel/cmake/Makefile
index 881cb56c4a75..6719f278c404 100644
--- a/devel/cmake/Makefile
+++ b/devel/cmake/Makefile
@@ -37,8 +37,14 @@ MAN1= ccmake.1 \
ctest.1
post-patch:
- @${GREP} -rl '/usr/X11R6' ${WRKSRC}/Modules ${WRKSRC}/Tests | \
- ${XARGS} ${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g'
+ @(${FIND} ${WRKSRC}/Modules -name "*.cmake" -print0; \
+ ${FIND} ${WRKSRC}/Tests -name "CMakeLists.txt" -print0 ) | \
+ ${XARGS} -0 -n 100 ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g; \
+ s,/usr/X11R6,${LOCALBASE},g'
+ @${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
+ ${WRKSRC}/Source/cmLocalGenerator.cxx \
+ ${WRKSRC}/Source/CPack/cmCPackGenerator.cxx \
+ ${WRKSRC}/bootstrap
@${REINPLACE_CMD} -e 's,/opt/kde4,${LOCALBASE}/kde4,g' \
${WRKSRC}/Modules/FindKDE4.cmake