diff options
author | makc <makc@FreeBSD.org> | 2009-08-29 15:15:12 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2009-08-29 15:15:12 +0800 |
commit | eb9e164f6c0e8f4067082ab7122a563b1d97ed7e (patch) | |
tree | e38ba7f64b20b67b86adf1c7660a7a041fa83b31 /devel | |
parent | 6b1b8d5e14040bbd8145cd81bdb1d32b93636803 (diff) | |
download | freebsd-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/Makefile | 10 |
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 |